135375f98Sopenharmony_ciimport os
235375f98Sopenharmony_ci
335375f98Sopenharmony_ciImport("env")
435375f98Sopenharmony_ci
535375f98Sopenharmony_cienv.Append(CPPDEFINES=["UNITY_INCLUDE_CONFIG_H"])
635375f98Sopenharmony_ci
735375f98Sopenharmony_ci# import "unity_config.h" folder to the library builder
835375f98Sopenharmony_citry:
935375f98Sopenharmony_ci    Import("projenv")
1035375f98Sopenharmony_ci
1135375f98Sopenharmony_ci    projenv.Append(CPPDEFINES=["UNITY_INCLUDE_CONFIG_H"])
1235375f98Sopenharmony_ci    for p in projenv["CPPPATH"]:
1335375f98Sopenharmony_ci        p = projenv.subst(p)
1435375f98Sopenharmony_ci        if os.path.isfile(os.path.join(p, "unity_config.h")):
1535375f98Sopenharmony_ci            env.Prepend(CPPPATH=[p])
1635375f98Sopenharmony_ciexcept:
1735375f98Sopenharmony_ci    pass
18