Visual Studio solutions now use the same project ordering in all sections; avoids unnecessary changes if the solution is later changed within Visual Studio
This commit is contained in:
parent
a69b7501e7
commit
89d413d9d5
@ -114,18 +114,23 @@
|
|||||||
_p(1,'EndGlobalSection')
|
_p(1,'EndGlobalSection')
|
||||||
|
|
||||||
_p(1,'GlobalSection(ProjectConfigurationPlatforms) = postSolution')
|
_p(1,'GlobalSection(ProjectConfigurationPlatforms) = postSolution')
|
||||||
for prj in solution.eachproject_ng(sln) do
|
local tr = solution.grouptree(sln)
|
||||||
for cfg in solution.eachconfig(sln) do
|
tree.traverse(tr, {
|
||||||
local prjcfg = project.getconfig(prj, cfg.buildcfg, cfg.platform)
|
onleaf = function(n)
|
||||||
if prjcfg then
|
local prj = n.project
|
||||||
local prjplatform = vstudio.projectPlatform(prjcfg)
|
|
||||||
local architecture = vstudio.archFromConfig(prjcfg, true)
|
|
||||||
|
|
||||||
_p(2,'{%s}.%s.ActiveCfg = %s|%s', prj.uuid, slncfg[cfg], prjplatform, architecture)
|
for cfg in solution.eachconfig(sln) do
|
||||||
_p(2,'{%s}.%s.Build.0 = %s|%s', prj.uuid, slncfg[cfg], prjplatform, architecture)
|
local prjcfg = project.getconfig(prj, cfg.buildcfg, cfg.platform)
|
||||||
|
if prjcfg then
|
||||||
|
local prjplatform = vstudio.projectPlatform(prjcfg)
|
||||||
|
local architecture = vstudio.archFromConfig(prjcfg, true)
|
||||||
|
|
||||||
|
_p(2,'{%s}.%s.ActiveCfg = %s|%s', prj.uuid, slncfg[cfg], prjplatform, architecture)
|
||||||
|
_p(2,'{%s}.%s.Build.0 = %s|%s', prj.uuid, slncfg[cfg], prjplatform, architecture)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
})
|
||||||
_p(1,'EndGlobalSection')
|
_p(1,'EndGlobalSection')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -400,7 +400,6 @@
|
|||||||
node.project = prj
|
node.project = prj
|
||||||
end
|
end
|
||||||
|
|
||||||
tree.sort(tr)
|
|
||||||
return tr
|
return tr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user