IOS: Adds the IPHONE macro to the generated project
This commit is contained in:
parent
283eac7e5f
commit
cff9c45953
1 changed files with 7 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue