Create define for build question
Posted: Thu Apr 11, 2019 5:42 pm
I want to be able to dynamically create a define for builds. I'm planning to have a build script that will write...
CXXFLAGS=-Dmydefine to a component.mk file. If i write it in my root project directory it seems to do nothing. If I write to my main project subdirectory it works, but doesn't work in a parallel folder components subdirectory. For example....
MyRootFolder
<tab>mainFolder
<tab>components/sensorsFolder
<tab>components/audioFolder
So the component.mk in mainFolder works for those files. But it appears I would have to modify component.mk in all the component subfolders. I'm looking for a simpler method that would cover the entire project.
CXXFLAGS=-Dmydefine to a component.mk file. If i write it in my root project directory it seems to do nothing. If I write to my main project subdirectory it works, but doesn't work in a parallel folder components subdirectory. For example....
MyRootFolder
<tab>mainFolder
<tab>components/sensorsFolder
<tab>components/audioFolder
So the component.mk in mainFolder works for those files. But it appears I would have to modify component.mk in all the component subfolders. I'm looking for a simpler method that would cover the entire project.