Files
third_party_unity/platformio-build.py
黄国辉 9b846b9885 update unity 2.6.0
Signed-off-by: 黄国辉 <huangguohui6@huawei.com>
2024-05-13 17:57:44 +08:00

18 lines
397 B
Python

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