@@ -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
646646void ofAddon::clear (){
0 commit comments