[Scons-users] target-specific variables

William Blevins wblevins001 at gmail.com
Thu Feb 16 13:00:26 EST 2017


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170216/1f77d8d9/attachment.html>


More information about the Scons-users mailing list