[Scons-users] target-specific variables
Bill Deegan
bill at baddogconsulting.com
Thu Feb 16 13:19:56 EST 2017
Setting the variables in the Environment is really only a good idea if the
settings are for MANY builder invocations.
Rarely is it wise to set something like LIBS Environment wide.
On Thu, Feb 16, 2017 at 10:00 AM, William Blevins <wblevins001 at gmail.com>
wrote:
> Cloning is the straightforward way. Keep in mind that a clone creates an
> override wrapper so its relatively cheap.
>
> On Feb 16, 2017 12:07 PM, "Stefan Seefeld" <stefan at seefeld.name> wrote:
>
>> Hello,
>>
>> I have some build logic that does builds a shared library:
>>
>> env.AppendUnique(CPPDEFINES=...)
>>
>> env.SharedLibrary(...)
>>
>>
>> Is there a simple way to append to CPPDEFINES only in the scope of the
>> SharedLibrary object ? If I pass the CPPDEFINES keyword argument to the
>> SharedLibrary() call, it will override all previous values. Is there a
>> way to append to the existing list instead ? Or do I need to clone the
>> entire environment for this ?
>>
>>
>> Thanks,
>>
>> Stefan
>>
>> --
>>
>> ...ich hab' noch einen Koffer in Berlin...
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170216/51dd6c1a/attachment.html>
More information about the Scons-users
mailing list