[Scons-users] Let directory depend on file? (auto generated sources)

Dirk Bächle tshortik at gmx.de
Wed Nov 26 12:59:06 EST 2014


On 26.11.2014 18:11, Stijn De Ruyck wrote:
> Hi Dirk,
>
> Well, I kind of suspected using Dir('autogen') as target was a bit of 
> wishful thinking :) but SCons has amazed me so far, so I didn't hurt 
> to try :p
> I had to leave the office afterwards and won't be back until next 
> week, but I sure would like to come up with a solution by the time I 
> get back...
>
> The problem with what you're suggesting is that I don't really know 
> what files installModel.sh (which calls another binary) will generate 
> in the autogen directory. I

If you have no idea, how is SCons supposed to know? ;)

At some point you have to feed information into the system, about how 
new files get generated from your ".odl" source. In SCons this is done 
via an Emitter that parses the source file and returns the list of files 
to expect. If you'd like to work this, I can help you with it...and it's 
not that difficult at all (check http://scons.org/wiki/ToolsForFools ).

Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20141126/1f2d4642/attachment-0001.html>


More information about the Scons-users mailing list