@@ -223,7 +223,7 @@ void ofAddon::addReplaceStringVector(vector<LibraryBinary> & variable, string va
223223 }
224224 }
225225
226-
226+
227227 if (prefix == " " || v.find (pathToOF.string ()) == 0 || fs::path{v}.is_absolute ()) {
228228 variable.push_back ( { v, " " , " " } );
229229 } else {
@@ -399,7 +399,7 @@ void ofAddon::parseConfig(){
399399 if (!fs::exists (fileName)) return ;
400400
401401 int lineNum = 0 ;
402-
402+
403403 for (auto & originalLine : fileToStrings (fileName)) {
404404 lineNum++;
405405 string line = originalLine;
@@ -471,8 +471,8 @@ void ofAddon::parseConfig(){
471471
472472
473473bool ofAddon::fromFS (const fs::path & path, const string & platform){
474- // alert("ofAddon::fromFS path : " + path.string());
475-
474+ // alert("ofAddon::fromFS path : " + path.string());
475+
476476 clear ();
477477 this ->platform = platform;
478478
@@ -494,17 +494,17 @@ bool ofAddon::fromFS(const fs::path & path, const string & platform){
494494
495495 // MARK: srcFiles to fs::path
496496 // not possible today because there are string based exclusion functions
497-
497+
498498 fs::path parentFolder = path.parent_path ();
499-
499+
500500 for (auto & s : srcFiles) {
501501 fs::path sFS { s };
502502 fs::path folder;
503503 if (isLocalAddon) {
504504// folder = sFS.parent_path();
505505// folder = fs::path { "local_addons" } / sFS.parent_path().filename();
506506 folder = fs::path { " local_addons" } / fs::relative (sFS .parent_path (), parentFolder);
507- // alert ("isLocal folder=" + folder.string(), 36);
507+ // alert ("isLocal folder=" + folder.string(), 36);
508508 } else {
509509 sFS = fixPath (s);
510510 s = sFS .string ();
@@ -517,7 +517,7 @@ bool ofAddon::fromFS(const fs::path & path, const string & platform){
517517 // here addonPath is the same as path.
518518 getPropsRecursively (addonPath, propsFiles, platform);
519519 }
520-
520+
521521 // TODO: Remove comments
522522// int i = 0;
523523// for (auto & s : propsFiles) {
@@ -536,18 +536,18 @@ bool ofAddon::fromFS(const fs::path & path, const string & platform){
536536
537537 fs::path libsPath = path / " libs" ;
538538 vector < fs::path > libFiles;
539-
539+
540540// alert ("libsPath " + libsPath.string());
541541 if (fs::exists (libsPath)) {
542542// alert ("exists");
543543 getLibsRecursively (libsPath, libFiles, libs, platform);
544544 if (platform == " osx" || platform == " ios" ){
545545 getFrameworksRecursively (libsPath, frameworks, platform);
546-
546+
547547
548548 }
549549// if(platform == "vs" || platform == "msys2"){
550- if (platform == " vs" || platform == " msys2"
550+ if (platform == " vs" || platform == " msys2"
551551 || platform == " vscode"
552552 || platform == " linux"
553553 || platform == " linux64"
@@ -558,7 +558,7 @@ bool ofAddon::fromFS(const fs::path & path, const string & platform){
558558 getDllsRecursively (libsPath, dllsToCopy, platform);
559559 }
560560 }
561-
561+
562562 // TODO: this is not needed even if it is local addon but project is outside OF root path
563563 // Absolute paths will be used in this case too.
564564 // Maybe it is the same situation for all others fixPath occurences?
@@ -582,7 +582,7 @@ bool ofAddon::fromFS(const fs::path & path, const string & platform){
582582 srcFiles.emplace_back (s.string ());
583583 filesToFolders[s.string ()] = folder.string ();
584584 }
585-
585+
586586 // FIXME: This is flawed logic, frameworks acquired here will always come from filesystem, config is not yet parsed
587587 // so addons will never be system.
588588 for (const auto & f : frameworks) {
@@ -600,7 +600,7 @@ bool ofAddon::fromFS(const fs::path & path, const string & platform){
600600 ; // do we need to do anything here?
601601 } else {
602602 // if addon is local, it is relative to the project folder, and if it is not, it is related to the project folder, ex: addons/ofxSvg
603-
603+
604604 // FIXME:: Cleanup the mess
605605 fs::path rel = fs::relative (f, isLocalAddon ? pathToProject : pathToOF);
606606 fs::path folder = rel.parent_path ();
@@ -609,16 +609,16 @@ bool ofAddon::fromFS(const fs::path & path, const string & platform){
609609 fs::path fFS { f };
610610 folder = fs::path { " local_addons" } / fs::relative (fFS .parent_path (), parentFolder);
611611 }
612-
612+
613613// alert (f);
614614// alert (folder.string());
615615 filesToFolders[f] = folder.string ();
616616 }
617617 }
618618
619-
620619
621-
620+
621+
622622 // paths that are needed for the includes.
623623 std::list < fs::path > paths;
624624
@@ -638,18 +638,18 @@ bool ofAddon::fromFS(const fs::path & path, const string & platform){
638638 paths.emplace_back ( isLocalAddon ? path : fixPath (path) );
639639 }
640640 }
641-
642641
643642
644-
643+
644+
645645 paths.sort ();
646646
647647 for (auto & p : paths) {
648648 includePaths.emplace_back (p.string ());
649649 }
650-
650+
651651 parseConfig ();
652-
652+
653653// alert ("--- LIST LIBS", 35);
654654// for (auto & l : libs) {
655655// alert (l.path, 35);
0 commit comments