diff options
author | 2019-09-29 15:30:18 +0200 | |
---|---|---|
committer | 2019-09-29 09:30:18 -0400 | |
commit | ed2b7e5ef1626c0d6318b6ea71897efbb4356277 (patch) | |
tree | 62a84a4a2c804922839dbfa60ec664b84beaaee0 /3rdparty/genie/src/actions/xcode/xcode4_workspace.lua | |
parent | 1bd1288c9e17bdba9544d1e56be7618106fece7e (diff) |
Synced with GENie upstream revision e78d6c1 (#5631)
* Synced with GENie upstream revision e78d6c1
* Add Visual Studio 2019 support
* Fix hardcoded -m64
* Switch appveyor to Visual Studio 2019
* Fix genie being built as 32-bit
* MSVC build is known to be broken currently. Let it fail until all the known issues are fixed.
* Update the packages before building
* Build with 3 threads
Appveyor VMs have only 2 cores and 8 GB RAM.
* Enable caching of pacman cache
Diffstat (limited to '3rdparty/genie/src/actions/xcode/xcode4_workspace.lua')
-rw-r--r-- | 3rdparty/genie/src/actions/xcode/xcode4_workspace.lua | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/3rdparty/genie/src/actions/xcode/xcode4_workspace.lua b/3rdparty/genie/src/actions/xcode/xcode4_workspace.lua deleted file mode 100644 index 726a306dc6f..00000000000 --- a/3rdparty/genie/src/actions/xcode/xcode4_workspace.lua +++ /dev/null @@ -1,100 +0,0 @@ -premake.xcode4 = {} - -local xcode4 = premake.xcode4 - -function xcode4.workspace_head() - _p('<?xml version="1.0" encoding="UTF-8"?>') - _p('<Workspace') - _p(1,'version = "1.0">') - -end - -function xcode4.workspace_tail() - _p('</Workspace>') -end - -function xcode4.workspace_file_ref(prj, indent) - - local projpath = path.getrelative(prj.solution.location, prj.location) - if projpath == '.' then projpath = '' - else projpath = projpath ..'/' - end - _p(indent, '<FileRef') - _p(indent + 1, 'location = "group:%s">', projpath .. prj.name .. '.xcodeproj') - _p(indent, '</FileRef>') -end - -function xcode4.workspace_group(grp, indent) - _p(indent, '<Group') - _p(indent + 1, 'location = "container:"') - _p(indent + 1, 'name = "%s">', grp.name) - - for _, child in ipairs(grp.groups) do - xcode4.workspace_group(child, indent + 1) - end - - for _, prj in ipairs(grp.projects) do - xcode4.workspace_file_ref(prj, indent + 1) - end - - _p(indent, '</Group>') -end - -function xcode4.workspace_generate(sln) - premake.xcode.preparesolution(sln) - - xcode4.workspace_head() - - xcode4.reorderProjects(sln) - - for grp in premake.solution.eachgroup(sln) do - if grp.parent == nil then - xcode4.workspace_group(grp, 1) - end - end - - for prj in premake.solution.eachproject(sln) do - if prj.group == nil then - xcode4.workspace_file_ref(prj, 1) - end - end - - xcode4.workspace_tail() -end - --- --- If a startup project is specified, move it to the front of the project list. --- This will make Visual Studio treat it like a startup project. --- - -function xcode4.reorderProjects(sln) - if sln.startproject then - for i, prj in ipairs(sln.projects) do - if sln.startproject == prj.name then - -- Move group tree containing the project to start of group list - local cur = prj.group - while cur ~= nil do - -- Remove group from array - for j, group in ipairs(sln.groups) do - if group == cur then - table.remove(sln.groups, j) - break - end - end - - -- Add back at start - table.insert(sln.groups, 1, cur) - cur = cur.parent - end - -- Move the project itself to start - table.remove(sln.projects, i) - table.insert(sln.projects, 1, prj) - break - end - end - end -end - - - - |