I’d like to set the compiler defines to -DBLUB as well as -DFOO=1.
Currently I only have:
env.Append("CPPDEFINES", ["BLUB", "VALUE2"])
I now would like to include a third define via “FOO” : 1 and thus use CPPDEFINES as a dictionary so I can later on test quite easy
env["CPPDEFINES"].get("FOO") == 1
or so. Everything I attempted leads to syntax errors or strange errors.
Could one explain the strange ways to do this in python to me?
If you need to specify a value for any single define,
CPPDEFINESmust be a dictionary.From the scons User Manual:
For your example, I suggest:
or