[Scons-users] How to deal with a list of targets in a Command builder?
Dirk Bächle
tshortik at gmx.de
Mon Feb 9 17:06:38 EST 2015
Carsten,
On 09.02.2015 22:45, Carsten Fuchs wrote:
> Hi Dirk,
>
> Am 09.02.2015 um 14:14 schrieb Dirk Baechle:
>> You'll have to define a custom Emitter for your "CAwe" Builder, have a
>> look at http://www.scons.org/wiki/ToolsForFools for a simple example.
>
> Many thanks for your quick reply! :-)
>
you're welcome...and here is another one. ;)
> [...]
>
> The problem is that Emitters apparently can only add files that are well
> known ahead of time.
Yes, this is a kind of prerequisite...otherwise you won't be able to do a full correct build in a single run. At least not with
SCons. ;) For a little more info on this topic you might want to study the recent thread
https://pairlist4.pair.net/pipermail/scons-users/2015-January/003349.html
>
> [...]
>
> Anyways, if there is a solution to the unknown, general case, I'd still
> like to hear more about it!
>
There are some approaches like the http://www.scons.org/wiki/DynamicSourceGenerator , but I'm not sure how well they work with the
Glob() command. Again it's the two different phases that are causing trouble...while the Glob() within your SConscripts is run in
the parsing phase, the sources from your generator will get added later, during the actual build phase. This clearly opens the door
to all kinds of messy and incorrect builds, from my personal view...so I don't really recommend to take this road (but maybe I'm wrong).
Regards,
Dirk
More information about the Scons-users
mailing list