File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -657,9 +657,7 @@ def configure_exceptions(sdk_params):
657
657
"WITH_POSIX" ,
658
658
"UNITY_INCLUDE_CONFIG_H" ,
659
659
("IDF_VER" , '\\ "%s\\ "' %
660
- platform .get_package_version ("framework-espidf" )),
661
- ("PROJECT_VER" , '\\ "%s\\ "' % "1.0.0" ),
662
- ("PROJECT_NAME" , '\\ "%s\\ "' % basename (env .subst ("$PROJECT_DIR" )))
660
+ platform .get_package_version ("framework-espidf" ))
663
661
664
662
],
665
663
@@ -697,6 +695,18 @@ def configure_exceptions(sdk_params):
697
695
]
698
696
)
699
697
698
+ cppdefines = env .Flatten (env .get ("CPPDEFINES" , []))
699
+
700
+ if "PROJECT_NAME" not in cppdefines :
701
+ env .Append (
702
+ CPPDEFINES = [
703
+ ("PROJECT_NAME" , '\\ "%s\\ "' % basename (env .subst ("$PROJECT_DIR" )))
704
+ ]
705
+ )
706
+
707
+ if "PROJECT_VER" not in cppdefines :
708
+ env .Append (CPPDEFINES = [("PROJECT_VER" , '\\ "%s\\ "' % "1.0.0" )])
709
+
700
710
#
701
711
# ESP-IDF doesn't need assembler-with-cpp option
702
712
#
You can’t perform that action at this time.
0 commit comments