Skip to content

Commit

Permalink
feature ADDON_FRAMEWORKS_EXCLUDE to exclude
Browse files Browse the repository at this point in the history
frameworks from libs folder
  • Loading branch information
danzeeeman committed Dec 17, 2019
1 parent 5f9f625 commit d459eec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ofxProjectGenerator/src/addons/ofAddon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ bool ofAddon::checkCorrectVariable(string variable, ConfigParseState state){
variable == "ADDON_FRAMEWORKS" ||
variable == "ADDON_SOURCES" || variable == "ADDON_OBJC_SOURCES" || variable == "ADDON_CPP_SOURCES" || variable == "ADDON_HEADER_SOURCES" ||
variable == "ADDON_DATA" ||
variable == "ADDON_LIBS_EXCLUDE" || variable == "ADDON_SOURCES_EXCLUDE" || variable == "ADDON_INCLUDES_EXCLUDE" ||
variable == "ADDON_LIBS_EXCLUDE" || variable == "ADDON_SOURCES_EXCLUDE" || variable == "ADDON_INCLUDES_EXCLUDE" || variable == "ADDON_FRAMEWORKS_EXCLUDE" ||
variable == "ADDON_DLLS_TO_COPY" ||
variable == "ADDON_DEFINES");
case Unknown:
Expand Down Expand Up @@ -325,6 +325,10 @@ void ofAddon::parseVariableValue(string variable, string value, bool addToValue,
addReplaceStringVector(excludeIncludes,value,"",addToValue);
}

if (variable == "ADDON_FRAMEWORKS_EXCLUDE") {
addReplaceStringVector(excludeFrameworks, value, "", addToValue);
}

if (variable == "ADDON_DEFINES") {
addReplaceStringVector(defines, value, "", addToValue);
}
Expand Down Expand Up @@ -433,6 +437,7 @@ void ofAddon::parseConfig(){
exclude(objcsrcFiles,excludeSources);
exclude(headersrcFiles,excludeSources);
exclude(propsFiles, excludeSources);
exclude(frameworks, excludeFrameworks);
exclude(libs,excludeLibs);

ofLogVerbose("ofAddon") << "libs after exclusions " << libs.size();
Expand Down
1 change: 1 addition & 0 deletions ofxProjectGenerator/src/addons/ofAddon.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class ofAddon {
std::vector<std::string> excludeLibs;
std::vector<std::string> excludeSources;
std::vector<std::string> excludeIncludes;
std::vector<std::string> excludeFrameworks;
};

#endif /* OFADDON_H_ */

0 comments on commit d459eec

Please sign in to comment.