[Scons-users] Can I filter the objects in env.Program

William Deegan bill at baddogconsulting.com
Fri Mar 1 13:37:21 EST 2013



On Feb 28, 2013, at 8:26 PM, prife <goprife at gmail.com> wrote:


> hi, our open-source project use SCons to construct sources.

> for historical reasons, in our BSPs, the SConstruct looks like:

>

>

> # STM32 firemare library building script

> objs = objs + SConscript( GetCurrentDir() + '/Libraries/SConscript', variant_dir='build/bsp/Libraries', duplicate=0)

> if GetDepend('RT_USING_RTGUI'):

> objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0)

> # build program

> env.Program(TARGET, objs)

>

> Now, we want to modify the elments in objs when running env.Program without modifying the existing code(SConstructs in so many BSPs).

> I mean , is there an the hook in env.Program?


So do you only want to change the list of obis in the SConstruct?
And in what way do you want to modify them?

-Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130301/22baaae5/attachment.html>


More information about the Scons-users mailing list