platformio-build.py 339 B

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