aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorVincent Bénony2015-12-01 21:02:24 +0100
committerVincent Bénony2016-01-06 15:35:32 +0100
commitcff9c4595313fb91cb7d402446aee415acc1cc5a (patch)
tree18ed1bdae6a9c20ad7ee368c41658ac6ddf65127 /devtools
parent283eac7e5fe5a01dea1b0c3bf6efc0bd70b84e84 (diff)
downloadscummvm-rg350-cff9c4595313fb91cb7d402446aee415acc1cc5a.tar.gz
scummvm-rg350-cff9c4595313fb91cb7d402446aee415acc1cc5a.tar.bz2
scummvm-rg350-cff9c4595313fb91cb7d402446aee415acc1cc5a.zip
IOS: Adds the IPHONE macro to the generated project
Diffstat (limited to 'devtools')
-rw-r--r--devtools/create_project/create_project.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp
index 914651d6b8..b450dafd01 100644
--- a/devtools/create_project/create_project.cpp
+++ b/devtools/create_project/create_project.cpp
@@ -340,7 +340,13 @@ int main(int argc, char *argv[]) {
setup.defines.push_back("WIN32");
} else {
setup.defines.push_back("POSIX");
- setup.defines.push_back("MACOSX"); // This will break iOS, but allows OS X to catch up on browser_osx.
+ // Define both MACOSX, and IPHONE, but only one of them will be associated to the
+ // correct target by the Xcode project provider.
+ // This define will help catching up target dependend files, like "browser_osx.mm"
+ // The suffix ("_osx", or "_ios") will be used by the project provider to filter out
+ // the files, according to the target.
+ setup.defines.push_back("MACOSX");
+ setup.defines.push_back("IPHONE");
}
setup.defines.push_back("SDL_BACKEND");
if (!useSDL2) {