Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 16cdbfbc9a0c2fe8573a95bf31ec3f1d59d5cb1e 1 parent dc77f53
@seanhoughton authored
View
10 src/_premake_main.lua
@@ -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)
View
2  src/actions/xcode/_xcode.lua
@@ -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",
View
6 src/actions/xcode/xcode_common.lua
@@ -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
1  src/base/cmdline.lua
@@ -73,6 +73,7 @@
{ "universal64", "Mac OS X Universal, 64-bit only" },
{ "ps3", "Playstation 3 (experimental)" },
{ "xbox360", "Xbox 360 (experimental)" },
+ { "ios", "iOS" },
}
}
View
5 src/base/globals.lua
@@ -57,6 +57,11 @@
iscrosscompiler = true,
namestyle = "windows",
},
+ iOS =
+ {
+ cfgsuffix = "ios",
+ iscrosscompiler = true,
+ },
}
Please sign in to comment.
Something went wrong with that request. Please try again.