Build: Add PremakeProject option
This commit is contained in:
parent
52e5ab8445
commit
973e3b094a
|
|
@ -42,7 +42,7 @@ end
|
||||||
|
|
||||||
function NazaraBuild:Execute()
|
function NazaraBuild:Execute()
|
||||||
if (_ACTION == nil) then -- If no action is specified, the user probably only wants to know how all of this works
|
if (_ACTION == nil) then -- If no action is specified, the user probably only wants to know how all of this works
|
||||||
return -- Alors l'utilisateur voulait probablement savoir comment utiliser le programme, on ne fait rien
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local platformData
|
local platformData
|
||||||
|
|
@ -74,7 +74,6 @@ function NazaraBuild:Execute()
|
||||||
includedirs("../extlibs/include")
|
includedirs("../extlibs/include")
|
||||||
libdirs("../extlibs/lib/common")
|
libdirs("../extlibs/lib/common")
|
||||||
location(_ACTION)
|
location(_ACTION)
|
||||||
kind("StaticLib")
|
|
||||||
|
|
||||||
for k, libTable in ipairs(self.OrderedExtLibs) do
|
for k, libTable in ipairs(self.OrderedExtLibs) do
|
||||||
project(libTable.Name)
|
project(libTable.Name)
|
||||||
|
|
@ -129,6 +128,13 @@ function NazaraBuild:Execute()
|
||||||
language("C++")
|
language("C++")
|
||||||
location(_ACTION)
|
location(_ACTION)
|
||||||
|
|
||||||
|
if (self.Config["PremakeProject"]) then
|
||||||
|
local commandLine = "premake5.exe " .. table.concat(_ARGV, ' ')
|
||||||
|
project("_PremakeProject")
|
||||||
|
kind("Utility")
|
||||||
|
prebuildcommands("cd .. && " .. commandLine)
|
||||||
|
end
|
||||||
|
|
||||||
-- Modules
|
-- Modules
|
||||||
if (_OPTIONS["united"]) then
|
if (_OPTIONS["united"]) then
|
||||||
project("NazaraEngine")
|
project("NazaraEngine")
|
||||||
|
|
@ -517,9 +523,9 @@ function NazaraBuild:LoadConfig()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
AddBoolOption("BuildDependencies", "with-extlibs", "Builds the extern libraries")
|
AddBoolOption("BuildDependencies", "with-extlibs", "Builds the extern libraries")
|
||||||
AddBoolOption("BuildExamples", "with-examples", "Builds the examples")
|
AddBoolOption("BuildExamples", "with-examples", "Builds the examples")
|
||||||
|
AddBoolOption("PremakeProject", "premakeproject", "Add a PremakeProject as a shortcut to call Premake")
|
||||||
AddBoolOption("ServerMode", "server", "Excludes client-only modules/tools/examples")
|
AddBoolOption("ServerMode", "server", "Excludes client-only modules/tools/examples")
|
||||||
AddBoolOption("UniteModules", "united", "Builds all the modules as one united library")
|
AddBoolOption("UniteModules", "united", "Builds all the modules as one united library")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue