blob: 406486f796affa4a79adc7410c41f2b23be2f38a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--
-- _xcode.lua
-- Define the Apple XCode action and support functions.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
premake.xcode = { }
--
-- Verify only single target kind for Xcode project
--
-- @param prj
-- Project to be analyzed
--
function premake.xcode.checkproject(prj)
-- Xcode can't mix target kinds within a project
local last
for cfg in premake.eachconfig(prj) do
if last and last ~= cfg.kind then
error("Project '" .. prj.name .. "' uses more than one target kind; not supported by Xcode", 0)
end
last = cfg.kind
end
end
--
-- Set default toolset
--
premake.xcode.toolset = "macosx"
|