Skip to content

Commit 8e2150e

Browse files
committed
ofAddon: comment out fromXML is failing in osx and it's not used anymore
1 parent ac2a547 commit 8e2150e

2 files changed

Lines changed: 25 additions & 25 deletions

File tree

ofxProjectGenerator/src/addons/ofAddon.cpp

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -611,36 +611,36 @@ void ofAddon::fromFS(string path, string platform){
611611

612612
}
613613

614-
void ofAddon::fromXML(string installXmlName){
615-
clear();
616-
pugi::xml_document doc;
617-
pugi::xml_parse_result result = doc.load_file(ofToDataPath(installXmlName).c_str());
618-
619-
// this is src to add:
620-
pugi::xpath_node_set add = doc.select_nodes("//add/src/folder/file");
621-
for (pugi::xpath_node_set::const_iterator it = add.begin(); it != add.end(); ++it){
622-
pugi::xpath_node node = *it;
623-
//std::cout << "folder name " << node.node().parent().attribute("name").value() << " : ";
624-
//std::cout << "src: " << node.node().child_value() << endl;
625-
}
614+
//void ofAddon::fromXML(string installXmlName){
615+
// clear();
616+
// pugi::xml_document doc;
617+
// pugi::xml_parse_result result = doc.load_file(ofToDataPath(installXmlName).c_str());
626618

619+
// // this is src to add:
620+
// pugi::xpath_node_set add = doc.select_nodes("//add/src/folder/file");
621+
// for (pugi::xpath_node_set::const_iterator it = add.begin(); it != add.end(); ++it){
622+
// pugi::xpath_node node = *it;
623+
// //std::cout << "folder name " << node.node().parent().attribute("name").value() << " : ";
624+
// //std::cout << "src: " << node.node().child_value() << endl;
625+
// }
627626

628-
add = doc.select_nodes("//include/path");
629-
for (pugi::xpath_node_set::const_iterator it = add.begin(); it != add.end(); ++it){
630-
pugi::xpath_node node = *it;
631-
//std::cout << "include: " << node.node().child_value() << endl;
632-
}
633627

628+
// add = doc.select_nodes("//include/path");
629+
// for (pugi::xpath_node_set::const_iterator it = add.begin(); it != add.end(); ++it){
630+
// pugi::xpath_node node = *it;
631+
// //std::cout << "include: " << node.node().child_value() << endl;
632+
// }
634633

635-
add = doc.select_nodes("//link/lib[@compiler='codeblocks']");
636-
// this has to be smarter I guess...
637-
for (pugi::xpath_node_set::const_iterator it = add.begin(); it != add.end(); ++it){
638-
pugi::xpath_node node = *it;
639-
//std::cout << "link: " << node.node().child_value() << endl;
640-
}
641634

635+
// add = doc.select_nodes("//link/lib[@compiler='codeblocks']");
636+
// // this has to be smarter I guess...
637+
// for (pugi::xpath_node_set::const_iterator it = add.begin(); it != add.end(); ++it){
638+
// pugi::xpath_node node = *it;
639+
// //std::cout << "link: " << node.node().child_value() << endl;
640+
// }
642641

643-
}
642+
643+
//}
644644

645645

646646
void ofAddon::clear(){

ofxProjectGenerator/src/addons/ofAddon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ofAddon {
1919
ofAddon();
2020

2121
void fromFS(std::string path, std::string platform);
22-
void fromXML(std::string installXmlName);
22+
// void fromXML(std::string installXmlName);
2323
void clear();
2424

2525
// this is source files:

0 commit comments

Comments
 (0)