Permalink
Browse files

Add ios support from https://bitbucket.org/superquadratic/premake-ios

  • Loading branch information...
1 parent dc77f53 commit 16cdbfbc9a0c2fe8573a95bf31ec3f1d59d5cb1e @seanhoughton committed Jan 23, 2012
Showing with 14 additions and 10 deletions.
  1. +0 −10 src/_premake_main.lua
  2. +2 −0 src/actions/xcode/_xcode.lua
  3. +6 −0 src/actions/xcode/xcode_common.lua
  4. +1 −0 src/base/cmdline.lua
  5. +5 −0 src/base/globals.lua
View
@@ -24,16 +24,6 @@
for sln in premake.solution.each() do
local platforms = sln.platforms or { }
- -- an empty table is equivalent to a native build
- if #platforms == 0 then
- table.insert(platforms, "Native")
- end
-
- -- the solution must provide a native build in order to support this feature
- if not table.contains(platforms, "Native") then
- return false, sln.name .. " does not target native platform\nNative platform settings are required for the --platform feature."
- end
-
-- add it to the end of the list, if it isn't in there already
if not table.contains(platforms, platform) then
table.insert(platforms, platform)
@@ -28,6 +28,7 @@
Universal32 = "32-bit Universal",
Universal64 = "64-bit Universal",
Universal = "Universal",
+ iOS = "iOS",
},
default_platform = "Universal",
@@ -79,6 +80,7 @@
Universal32 = "32-bit Universal",
Universal64 = "64-bit Universal",
Universal = "Universal",
+ iOS = "iOS",
},
default_platform = "Universal",
@@ -732,8 +732,14 @@
Universal32 = "$(ARCHS_STANDARD_32_BIT)",
Universal64 = "$(ARCHS_STANDARD_64_BIT)",
Universal = "$(ARCHS_STANDARD_32_64_BIT)",
+ iOS = "$(ARCHS_UNIVERSAL_IPHONE_OS)",
}
_p(4,'ARCHS = "%s";', archs[cfg.platform])
+
+ if cfg.platform == "iOS" then
+ _p(4,'SDKROOT = %s;', "iphoneos")
+ _p(4,'CODE_SIGN_IDENTITY = "%s";', "iPhone Developer")
+ end
local targetdir = path.getdirectory(cfg.buildtarget.bundlepath)
if targetdir ~= "." then
View
@@ -73,6 +73,7 @@
{ "universal64", "Mac OS X Universal, 64-bit only" },
{ "ps3", "Playstation 3 (experimental)" },
{ "xbox360", "Xbox 360 (experimental)" },
+ { "ios", "iOS" },
}
}
View
@@ -57,6 +57,11 @@
iscrosscompiler = true,
namestyle = "windows",
},
+ iOS =
+ {
+ cfgsuffix = "ios",
+ iscrosscompiler = true,
+ },
}

0 comments on commit 16cdbfb

Please sign in to comment.