iOS.patch (2435B)
1# HG changeset patch 2# User Guido Lorenz <guido@superquadratic.net> 3# Date 1314134634 -7200 4# Node ID 5552b57a6b3e541edac2cf0ef3f66a361e9c774e 5# Parent 60bda91095e1b823134fc7341e2c34ca7c198341 6Added iOS platform (Xcode only). 7 8diff -r 60bda91095e1 -r 5552b57a6b3e src/actions/xcode/_xcode.lua 9--- a/src/actions/xcode/_xcode.lua Fri Aug 19 08:58:23 2011 -0400 10+++ b/src/actions/xcode/_xcode.lua Tue Aug 23 23:23:54 2011 +0200 11@@ -28,6 +28,7 @@ 12 Universal32 = "32-bit Universal", 13 Universal64 = "64-bit Universal", 14 Universal = "Universal", 15+ iOS = "iOS", 16 }, 17 18 default_platform = "Universal", 19@@ -79,6 +80,7 @@ 20 Universal32 = "32-bit Universal", 21 Universal64 = "64-bit Universal", 22 Universal = "Universal", 23+ iOS = "iOS", 24 }, 25 26 default_platform = "Universal", 27diff -r 60bda91095e1 -r 5552b57a6b3e src/actions/xcode/xcode_common.lua 28--- a/src/actions/xcode/xcode_common.lua Fri Aug 19 08:58:23 2011 -0400 29+++ b/src/actions/xcode/xcode_common.lua Tue Aug 23 23:23:54 2011 +0200 30@@ -724,9 +724,15 @@ 31 Universal32 = "$(ARCHS_STANDARD_32_BIT)", 32 Universal64 = "$(ARCHS_STANDARD_64_BIT)", 33 Universal = "$(ARCHS_STANDARD_32_64_BIT)", 34+ iOS = "$(ARCHS_UNIVERSAL_IPHONE_OS)", 35 } 36 _p(4,'ARCHS = "%s";', archs[cfg.platform]) 37 38+ if cfg.platform == "iOS" then 39+ _p(4,'SDKROOT = %s;', "iphoneos") 40+ _p(4,'CODE_SIGN_IDENTITY = "%s";', "iPhone Developer") 41+ end 42+ 43 local targetdir = path.getdirectory(cfg.buildtarget.bundlepath) 44 if targetdir ~= "." then 45 _p(4,'CONFIGURATION_BUILD_DIR = "$(SYMROOT)";'); 46diff -r 60bda91095e1 -r 5552b57a6b3e src/base/cmdline.lua 47--- a/src/base/cmdline.lua Fri Aug 19 08:58:23 2011 -0400 48+++ b/src/base/cmdline.lua Tue Aug 23 23:23:54 2011 +0200 49@@ -71,6 +71,7 @@ 50 { "universal", "Mac OS X Universal, 32- and 64-bit" }, 51 { "universal32", "Mac OS X Universal, 32-bit only" }, 52 { "universal64", "Mac OS X Universal, 64-bit only" }, 53+ { "ios", "iOS" }, 54 { "ps3", "Playstation 3 (experimental)" }, 55 { "xbox360", "Xbox 360 (experimental)" }, 56 } 57diff -r 60bda91095e1 -r 5552b57a6b3e src/base/globals.lua 58--- a/src/base/globals.lua Fri Aug 19 08:58:23 2011 -0400 59+++ b/src/base/globals.lua Tue Aug 23 23:23:54 2011 +0200 60@@ -38,6 +38,11 @@ 61 { 62 cfgsuffix = "univ64", 63 }, 64+ iOS = 65+ { 66+ cfgsuffix = "ios", 67+ iscrosscompiler = true, 68+ }, 69 PS3 = 70 { 71 cfgsuffix = "ps3",