I want to set the compiler to -DBLUB and also -DFOO = 1 .
Currently, I only have:
env.Append("CPPDEFINES", ["BLUB", "VALUE2"])
Now I want to include the third definition through "FOO": 1 and thus use CPPDEFINES as a dictionary so that I can run the test quite easily in the future
env["CPPDEFINES"].get("FOO") == 1
or so. Everything I tried leads to syntax errors or strange errors. Can anyone explain weird ways to do this in python for me?
source
share