Browse Source

Projucer: Allow relative paths in the "Extra Frameworks" field of the Xcode exporter

tags/2021-05-28
ed 7 years ago
parent
commit
d5d2938126
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h

+ 4
- 2
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h View File

@@ -2724,7 +2724,9 @@ private:
String addFramework (const String& frameworkName) const
{
auto path = frameworkName;
if (! File::isAbsolutePath (path))
auto isRelativePath = path.startsWith ("../");
if (! File::isAbsolutePath (path) && ! isRelativePath)
path = "System/Library/Frameworks/" + path;
if (! path.endsWithIgnoreCase (".framework"))
@@ -2732,7 +2734,7 @@ private:
auto fileRefID = createFileRefID (path);
addFileReference ((File::isAbsolutePath (frameworkName) ? "" : "${SDKROOT}/") + path);
addFileReference (((File::isAbsolutePath (frameworkName) || isRelativePath) ? "" : "${SDKROOT}/") + path);
frameworkFileIDs.add (fileRefID);
return addBuildFile (path, fileRefID, false, false);


Loading…
Cancel
Save