Groups in XCode workspace working.
This commit is contained in:
parent
1cddb0dffa
commit
79d1c6f429
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
local p = premake
|
local p = premake
|
||||||
local m = p.modules.xcode
|
local m = p.modules.xcode
|
||||||
|
local tree = p.tree
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -53,18 +53,33 @@
|
|||||||
end
|
end
|
||||||
|
|
||||||
function m.workspaceFileRefs(wks)
|
function m.workspaceFileRefs(wks)
|
||||||
for prj in p.workspace.eachproject(wks) do
|
local tr = p.workspace.grouptree(wks)
|
||||||
p.push('<FileRef')
|
tree.traverse(tr, {
|
||||||
local contents = p.capture(function()
|
onleaf = function(n)
|
||||||
p.callArray(m.elements.workspaceFileRef, prj)
|
local prj = n.project
|
||||||
end)
|
|
||||||
p.outln(contents .. ">")
|
p.push('<FileRef')
|
||||||
p.pop('</FileRef>')
|
local contents = p.capture(function()
|
||||||
end
|
p.callArray(m.elements.workspaceFileRef, prj)
|
||||||
|
end)
|
||||||
|
p.outln(contents .. ">")
|
||||||
|
p.pop('</FileRef>')
|
||||||
|
end,
|
||||||
|
|
||||||
|
onbranchenter = function(n)
|
||||||
|
local prj = n.project
|
||||||
|
|
||||||
|
p.push('<Group')
|
||||||
|
p.w('location = "container:"')
|
||||||
|
p.w('name = "%s">', n.name)
|
||||||
|
end,
|
||||||
|
|
||||||
|
onbranchexit = function(n)
|
||||||
|
p.pop('</Group>')
|
||||||
|
end,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
--
|
--
|
||||||
-- Handlers for individual project elements
|
-- Handlers for individual project elements
|
||||||
|
Reference in New Issue
Block a user