diff --git a/ChangeLog.md b/ChangeLog.md index 0a1e8f070..d29c5fbb9 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -16,6 +16,7 @@ Miscellaneous: - Add Lua unit tests - NDEBUG is now defined in Release - Replaced typedefs keywords with modern using keywords +- When supported, projects are now parts of a virtual "workspace group" according to their kind Nazara Engine: - VertexMapper:GetComponentPtr no longer throw an error if component is disabled or incompatible with template type, instead a null pointer is returned. diff --git a/build/scripts/common.lua b/build/scripts/common.lua index 750e2211b..730195bf0 100644 --- a/build/scripts/common.lua +++ b/build/scripts/common.lua @@ -71,10 +71,21 @@ function NazaraBuild:Execute() configurations(configs) end + if (self.Config["PremakeProject"] and os.ishost("windows")) then + group("_Premake") + + local commandLine = "premake5.exe " .. table.concat(_ARGV, ' ') + project("Regenerate premake") + kind("Utility") + prebuildcommands("cd .. && " .. commandLine) + end + -- Extern libraries if (self.Config["BuildDependencies"]) then self:FilterLibDirectory("../thirdparty/genlib/", targetdir) -- For generated libraries + group("Thirdparties") + for k, libTable in ipairs(self.OrderedExtLibs) do project(libTable.Name) @@ -112,14 +123,9 @@ function NazaraBuild:Execute() end end - if (self.Config["PremakeProject"] and os.ishost("windows")) then - local commandLine = "premake5.exe " .. table.concat(_ARGV, ' ') - project("_PremakeProject") - kind("Utility") - prebuildcommands("cd .. && " .. commandLine) - end - -- Modules + group("Engine Modules") + if (_OPTIONS["united"]) then project("NazaraEngine") @@ -175,6 +181,8 @@ function NazaraBuild:Execute() end -- Tools + group("Engine SDK - Tools") + for k, toolTable in ipairs(self.OrderedTools) do local prefix = "Nazara" if (toolTable.Kind == "plugin") then @@ -243,6 +251,8 @@ function NazaraBuild:Execute() filter({}) end + group("Examples") + for k, exampleTable in ipairs(self.OrderedExamples) do local destPath = "../examples/bin"