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