Build: Gather projects around categories
This commit is contained in:
parent
b22c93fa5f
commit
f864fc8a52
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue