@@ -773,6 +773,14 @@ void ofAddon::addToFolder(const fs::path& path, const fs::path & parentFolder){
773773 filesToFolders[path] = folder;
774774}
775775
776+
777+ void ofAddon::prepareForWrite () {
778+ removeDuplicates (libs);
779+ removeDuplicates (libFiles);
780+ removeDuplicates (frameworks);
781+ removeDuplicates (xcframeworks);
782+ }
783+
776784void ofAddon::parseLibsPath (const fs::path & libsPath, const fs::path & parentFolder) {
777785 if (!fs::exists (libsPath)) {
778786// alert("file not found " + libsPath.string(), 35);
@@ -781,7 +789,7 @@ void ofAddon::parseLibsPath(const fs::path & libsPath, const fs::path & parentFo
781789// alert ("parseLibsPath " + libsPath.string() + ", parent=" + parentFolder.string(), 35);
782790
783791
784- if (platform == " osx" || platform == " macos" ){
792+ if (platform == " osx" || platform == " macos" || platform == " ios " || platform == " tvos " ){
785793 // Horrible hack to make it work with the bad idea of renaming osx to macos
786794 getLibsRecursively (libsPath, libFiles, libs, " macos" );
787795 getLibsRecursively (libsPath, libFiles, libs, " osx" );
@@ -802,15 +810,6 @@ void ofAddon::parseLibsPath(const fs::path & libsPath, const fs::path & parentFo
802810 getLibsRecursively (libsPath, libFiles, libs, platform);
803811 }
804812
805- if (// platform == "osx" ||
806- platform == " ios" ||
807- platform == " tvos" ){// } ||
808- // platform == "macos"){
809-
810- getFrameworksRecursively (libsPath, platform);
811- // getXCFrameworksRecursively(libsPath, platform);
812- }
813-
814813 if (platform == " vs" || platform == " msys2"
815814 || platform == " vscode"
816815 || platform == " linux"
0 commit comments