diff options
author | Colin Snover | 2016-09-01 21:09:03 -0500 |
---|---|---|
committer | Colin Snover | 2016-09-01 21:09:03 -0500 |
commit | 2ad082aeb75f81159f942ce0d6f5c2f0fde08feb (patch) | |
tree | aa4082edec85e6d576fc8be87918e2a5b14cd085 /devtools | |
parent | 6c1e8127dfbb957739f13e7b83b074615df01ac8 (diff) | |
download | scummvm-rg350-2ad082aeb75f81159f942ce0d6f5c2f0fde08feb.tar.gz scummvm-rg350-2ad082aeb75f81159f942ce0d6f5c2f0fde08feb.tar.bz2 scummvm-rg350-2ad082aeb75f81159f942ce0d6f5c2f0fde08feb.zip |
CREATE_PROJECT: Fix networking backend file targets in Xcode
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/create_project/xcode.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp index 07dc24e315..18dc74f799 100644 --- a/devtools/create_project/xcode.cpp +++ b/devtools/create_project/xcode.cpp @@ -111,7 +111,13 @@ bool shouldSkipFileForTarget(const std::string &fileID, const std::string &targe // - if the file is an macOS icon file (icns), it belongs to the macOS target. std::string name, ext; splitFilename(fileName, name, ext); + if (targetIsIOS(targetName)) { + // networking backend for iOS is openurl-default + if (name == "openurl-posix" || name == "openurl-osx") { + return true; + } + // iOS target: we skip all files with the "_osx" suffix if (name.length() > 4 && name.substr(name.length() - 4) == "_osx") { return true; @@ -150,6 +156,11 @@ bool shouldSkipFileForTarget(const std::string &fileID, const std::string &targe if (directory.length() > iphone_directory.length() && directory.substr(directory.length() - iphone_directory.length()) == iphone_directory) { return true; } + + // networking backend for macOS is openurl-osx + if (name == "openurl-default" || name == "openurl-posix") { + return true; + } } return false; } |