Improve determinism in sln output.

This commit is contained in:
Tom van Dijck 2017-06-19 13:44:54 -07:00
parent 5a0b07cd45
commit c92c7a595e
3 changed files with 10 additions and 5 deletions

View File

@ -146,11 +146,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Zed", "Zed", "{2FCAF67E-9B3
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyProject2", "MyProject2.vcproj", "{B45D52A2-A015-94EF-091D-6D4BF5F32EE0}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyProject1", "MyProject1.vcproj", "{B35D52A2-9F15-94EF-081D-6D4BF4F32EE0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Beta", "Beta", "{68E9C25D-54A1-04AB-BDA8-DD06A97F9F9B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyProject3", "MyProject3.vcproj", "{B55D52A2-A115-94EF-0A1D-6D4BF6F32EE0}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyProject1", "MyProject1.vcproj", "{B35D52A2-9F15-94EF-081D-6D4BF4F32EE0}"
EndProject
]]
end

View File

@ -84,9 +84,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:MyProject.xcodeproj">
</FileRef>
<Group
location = "container:"
name = "MyGroup1">
@ -94,6 +91,9 @@
location = "group:MyProject2.xcodeproj">
</FileRef>
</Group>
<FileRef
location = "group:MyProject.xcodeproj">
</FileRef>
</Workspace>
]]
end

View File

@ -129,6 +129,11 @@
end
})
-- sort by uuid for determinism.
p.tree.sort(tr, function(a,b)
return a.name < b.name
end)
self.grouptree = tr
return tr
end