[Scons-dev] How to add a library to a link list?

William Deegan bill at baddogconsulting.com
Sat Aug 18 20:20:26 EDT 2012


I'd go with JB's solution.
Although your ['game','$LIBS'] may work, it's depending on LIBS being recursively expanded. (Which is more confusing.. IMO)

-Bill


On Aug 18, 2012, at 9:42 AM, edA-qa mort-ora-y <eda-qa at disemia.com> wrote:


> This also seems to work:

>

> baseEnv.Program( 'basic-test',

> [ 'game_test.cpp' ],

> LIBS = [ 'game', '$LIBS']

> )

>

> Is it supposed to work (I don't know Python too well)

>

>

> On 18/08/12 16:44, Jean-Baptiste Lab wrote:

>> Probably something like:

>>

>> baseEnv.Program( 'basic-test',

>> [ 'game_test.cpp' ],

>> LIBS = baseEnv['LIBS'] + ['game']

>> )

>>

>> JB

>>

>> On 18 August 2012 16:33, edA-qa mort-ora-y <eda-qa at disemia.com> wrote:

>>> I'm having a problem that when I specify LIB=['mine'] in a Program

>>> target the libraries configured by CheckLib are no longer included. How

>>> can I add my library to the list of ones which are already there?

>>>

>>> This library is built earlier in the build process.

>>>

>>> This includes my library but no others:

>>>

>>> baseEnv.Program( 'basic-test',

>>> [ 'game_test.cpp' ],

>>> LIBS = ['game']

>>> )

>>>

>>> Whereas this doesn't include my library, but includes the others:

>>>

>>> baseEnv.Program( 'basic-test',

>>> [ 'game_test.cpp' ],

>>> )

>>>

>>>

>>> --

>>> edA-qa mort-ora-y

>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

>>> Sign: Please digitally sign your emails.

>>> Encrypt: I'm also happy to receive encrypted mail.

>>>

>>>

>>> _______________________________________________

>>> Scons-dev mailing list

>>> Scons-dev at scons.org

>>> http://two.pairlist.net/mailman/listinfo/scons-dev

>>>

>> _______________________________________________

>> Scons-dev mailing list

>> Scons-dev at scons.org

>> http://two.pairlist.net/mailman/listinfo/scons-dev

>>

>>

>

>

> --

> edA-qa mort-ora-y

> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

> Sign: Please digitally sign your emails.

> Encrypt: I'm also happy to receive encrypted mail.

>

> _______________________________________________

> Scons-dev mailing list

> Scons-dev at scons.org

> http://two.pairlist.net/mailman/listinfo/scons-dev




More information about the Scons-dev mailing list