@@ -367,31 +367,6 @@ void visualStudioProject::addDefine(std::string define, LibType libType)
367367{
368368 pugi::xpath_node_set items = doc.select_nodes (" //ItemDefinitionGroup" );
369369 for (int i = 0 ; i<items.size (); i++) {
370- pugi::xml_node additionalOptions;
371- bool found = false ;
372- std::string condition (items[i].node ().attribute (" Condition" ).value ());
373- if (libType == RELEASE_LIB && condition.find (" Debug" ) != std::string::npos) {
374- additionalOptions = items[i].node ().child (" ClCompile" ).child (" AdditionalOptions" );
375- found = true ;
376- }
377- else if (libType == DEBUG_LIB && condition.find (" Release" ) != std::string::npos) {
378- additionalOptions = items[i].node ().child (" ClCompile" ).child (" AdditionalOptions" );
379- found = true ;
380- }
381- if (!found) continue ;
382- if (!additionalOptions) {
383- items[i].node ().child (" ClCompile" ).append_child (" PreprocessorDefinitions" ).append_child (pugi::node_pcdata).set_value (define.c_str ());
384- }
385- else {
386- additionalOptions.first_child ().set_value ((std::string (additionalOptions.first_child ().value ()) + " " + define).c_str ());
387- }
388- }
389- }
390-
391- void visualStudioProject::addPreprocessorDefinitions (std::string define, LibType libType)
392- {
393- pugi::xpath_node_set items = doc.select_nodes (" //ItemDefinitionGroup" );
394- for (int i = 0 ; i < items.size (); i++) {
395370 pugi::xml_node additionalOptions;
396371 bool found = false ;
397372 std::string condition (items[i].node ().attribute (" Condition" ).value ());
@@ -491,9 +466,4 @@ void visualStudioProject::addAddon(ofAddon & addon){
491466 addDefine (addon.defines [i], DEBUG_LIB);
492467 }
493468
494- for (int i = 0 ; i < (int )addon.preprocessorDefinitions .size (); i++) {
495- ofLogVerbose () << " adding addon preprocessorDefinitions: " << addon.preprocessorDefinitions [i];
496- addPreprocessorDefinitions (addon.preprocessorDefinitions [i], RELEASE_LIB);
497- addPreprocessorDefinitions (addon.preprocessorDefinitions [i], DEBUG_LIB);
498- }
499469}
0 commit comments