aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Bénony2015-12-07 10:13:25 +0100
committerVincent Bénony2016-01-06 16:17:34 +0100
commit616ec2a924d8abec680f1106beb7dd7af6d6c350 (patch)
tree3cc24426535812f984cddb9726de7b220d0676a8
parentdcad83e05b51a268d805163d1b83feb90198b7f3 (diff)
downloadscummvm-rg350-616ec2a924d8abec680f1106beb7dd7af6d6c350.tar.gz
scummvm-rg350-616ec2a924d8abec680f1106beb7dd7af6d6c350.tar.bz2
scummvm-rg350-616ec2a924d8abec680f1106beb7dd7af6d6c350.zip
IOS: Fixes Xcode group paths
The generated project paths were recognized by Xcode, but not third party tools, like AppCode.
-rw-r--r--devtools/create_project/xcode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp
index 8365114863..b3129a538c 100644
--- a/devtools/create_project/xcode.cpp
+++ b/devtools/create_project/xcode.cpp
@@ -142,8 +142,9 @@ bool shouldSkipFileForTarget(const std::string &fileID, const std::string &targe
}
XcodeProvider::Group::Group(XcodeProvider *objectParent, const std::string &groupName, const std::string &uniqueName, const std::string &path) : Object(objectParent, uniqueName, groupName, "PBXGroup", "", groupName) {
+ bool path_is_absolute = (path.length() > 0 && path.at(0) == '/');
addProperty("name", name, "", SettingsNoValue|SettingsQuoteVariable);
- addProperty("sourceTree", "<group>", "", SettingsNoValue|SettingsQuoteVariable);
+ addProperty("sourceTree", path_is_absolute ? "<absolute>" : "<group>", "", SettingsNoValue|SettingsQuoteVariable);
if (path != "") {
addProperty("path", path, "", SettingsNoValue|SettingsQuoteVariable);