From 638dc113f8c05f121d50e68f68c4e86c130756a4 Mon Sep 17 00:00:00 2001 From: Vincent Bénony Date: Fri, 4 Dec 2015 18:20:09 +0100 Subject: IOS: Create two targets for old iPhone (iOS <= 6) and new one (iOS >= 7) The "iphone" backend is the support for the old iPhones. The "ios7" backend is for the new iPhones. --- devtools/create_project/xcode.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'devtools/create_project') diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp index 2914920fd3..8365114863 100644 --- a/devtools/create_project/xcode.cpp +++ b/devtools/create_project/xcode.cpp @@ -96,7 +96,7 @@ bool targetIsIOS(const std::string &targetName) { bool shouldSkipFileForTarget(const std::string &fileID, const std::string &targetName, const std::string &fileName) { // Rules: - // - if the parent directory is "backends/platform/iphone", the file belongs to the iOS target. + // - if the parent directory is "backends/platform/ios7", the file belongs to the iOS target. // - if the parent directory is "/sdl", the file belongs to the OS X target. // - if the file has a suffix, like "_osx", or "_ios", the file belongs to one of the target. // - if the file is an OS X icon file (icns), it belongs to the OS X target. @@ -133,7 +133,7 @@ bool shouldSkipFileForTarget(const std::string &fileID, const std::string &targe } // parent directory const std::string directory = fileID.substr(0, fileID.length() - fileName.length()); - static const std::string iphone_directory = "backends/platform/iphone"; + static const std::string iphone_directory = "backends/platform/ios7"; if (directory.length() > iphone_directory.length() && directory.substr(directory.length() - iphone_directory.length()) == iphone_directory) { return true; } @@ -262,7 +262,7 @@ XcodeProvider::XcodeProvider(StringList &global_warnings, std::mapaddChildFile(filename); @@ -967,7 +967,7 @@ void XcodeProvider::setupImageAssetCatalog(const BuildSetup &setup) { void XcodeProvider::setupAdditionalSources(std::string targetName, Property &files, int &order) { if (targetIsIOS(targetName)) { - const std::string absoluteCatalogPath = _projectRoot + "/dists/iphone/Images.xcassets"; + const std::string absoluteCatalogPath = _projectRoot + "/dists/ios7/Images.xcassets"; ADD_SETTING_ORDER_NOVALUE(files, getHash(absoluteCatalogPath), "Image Asset Catalog", order++); } } -- cgit v1.2.3