[Scons-users] target-specific variables

Stefan Seefeld stefan at seefeld.name
Thu Feb 16 12:07:05 EST 2017


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...



More information about the Scons-users mailing list