premake/patches/iOS.patch
changeset 7925 f090a47eb7f7
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/premake/patches/iOS.patch	Sun Nov 10 00:38:37 2013 -0500
     1.3 @@ -0,0 +1,71 @@
     1.4 +# HG changeset patch
     1.5 +# User Guido Lorenz <guido@superquadratic.net>
     1.6 +# Date 1314134634 -7200
     1.7 +# Node ID 5552b57a6b3e541edac2cf0ef3f66a361e9c774e
     1.8 +# Parent  60bda91095e1b823134fc7341e2c34ca7c198341
     1.9 +Added iOS platform (Xcode only).
    1.10 +
    1.11 +diff -r 60bda91095e1 -r 5552b57a6b3e src/actions/xcode/_xcode.lua
    1.12 +--- a/src/actions/xcode/_xcode.lua	Fri Aug 19 08:58:23 2011 -0400
    1.13 ++++ b/src/actions/xcode/_xcode.lua	Tue Aug 23 23:23:54 2011 +0200
    1.14 +@@ -28,6 +28,7 @@
    1.15 + 			Universal32 = "32-bit Universal", 
    1.16 + 			Universal64 = "64-bit Universal", 
    1.17 + 			Universal = "Universal",
    1.18 ++			iOS = "iOS",
    1.19 + 		},
    1.20 + 		
    1.21 + 		default_platform = "Universal",
    1.22 +@@ -79,6 +80,7 @@
    1.23 + 			Universal32 = "32-bit Universal", 
    1.24 + 			Universal64 = "64-bit Universal", 
    1.25 + 			Universal = "Universal",
    1.26 ++			iOS = "iOS",
    1.27 + 		},
    1.28 + 		
    1.29 + 		default_platform = "Universal",
    1.30 +diff -r 60bda91095e1 -r 5552b57a6b3e src/actions/xcode/xcode_common.lua
    1.31 +--- a/src/actions/xcode/xcode_common.lua	Fri Aug 19 08:58:23 2011 -0400
    1.32 ++++ b/src/actions/xcode/xcode_common.lua	Tue Aug 23 23:23:54 2011 +0200
    1.33 +@@ -724,9 +724,15 @@
    1.34 + 			Universal32 = "$(ARCHS_STANDARD_32_BIT)",
    1.35 + 			Universal64 = "$(ARCHS_STANDARD_64_BIT)",
    1.36 + 			Universal = "$(ARCHS_STANDARD_32_64_BIT)",
    1.37 ++			iOS    = "$(ARCHS_UNIVERSAL_IPHONE_OS)",
    1.38 + 		}
    1.39 + 		_p(4,'ARCHS = "%s";', archs[cfg.platform])
    1.40 + 		
    1.41 ++		if cfg.platform == "iOS" then
    1.42 ++			_p(4,'SDKROOT = %s;', "iphoneos")
    1.43 ++			_p(4,'CODE_SIGN_IDENTITY = "%s";', "iPhone Developer")
    1.44 ++		end
    1.45 ++		
    1.46 + 		local targetdir = path.getdirectory(cfg.buildtarget.bundlepath)
    1.47 + 		if targetdir ~= "." then
    1.48 + 			_p(4,'CONFIGURATION_BUILD_DIR = "$(SYMROOT)";');
    1.49 +diff -r 60bda91095e1 -r 5552b57a6b3e src/base/cmdline.lua
    1.50 +--- a/src/base/cmdline.lua	Fri Aug 19 08:58:23 2011 -0400
    1.51 ++++ b/src/base/cmdline.lua	Tue Aug 23 23:23:54 2011 +0200
    1.52 +@@ -71,6 +71,7 @@
    1.53 + 			{ "universal",   "Mac OS X Universal, 32- and 64-bit" },
    1.54 + 			{ "universal32", "Mac OS X Universal, 32-bit only" },
    1.55 + 			{ "universal64", "Mac OS X Universal, 64-bit only" },
    1.56 ++			{ "ios",         "iOS" },
    1.57 + 			{ "ps3",         "Playstation 3 (experimental)" },
    1.58 + 			{ "xbox360",     "Xbox 360 (experimental)" },
    1.59 + 		}
    1.60 +diff -r 60bda91095e1 -r 5552b57a6b3e src/base/globals.lua
    1.61 +--- a/src/base/globals.lua	Fri Aug 19 08:58:23 2011 -0400
    1.62 ++++ b/src/base/globals.lua	Tue Aug 23 23:23:54 2011 +0200
    1.63 +@@ -38,6 +38,11 @@
    1.64 + 		{ 
    1.65 + 			cfgsuffix       = "univ64",
    1.66 + 		},
    1.67 ++		iOS = 
    1.68 ++		{ 
    1.69 ++			cfgsuffix       = "ios",
    1.70 ++			iscrosscompiler = true,
    1.71 ++		},
    1.72 + 		PS3 = 
    1.73 + 		{ 
    1.74 + 			cfgsuffix       = "ps3",