1import os 2 3Import("env") 4 5env.Append(CPPDEFINES=["UNITY_INCLUDE_CONFIG_H"]) 6 7# import "unity_config.h" folder to the library builder 8try: 9 Import("projenv") 10 11 projenv.Append(CPPDEFINES=["UNITY_INCLUDE_CONFIG_H"]) 12 for p in projenv["CPPPATH"]: 13 p = projenv.subst(p) 14 if os.path.isfile(os.path.join(p, "unity_config.h")): 15 env.Prepend(CPPPATH=[p]) 16except: 17 pass 18