Build: Add AdditionalCompilationFlags build option
This commit is contained in:
parent
3fe54ff777
commit
d14574151a
|
|
@ -1,6 +1,9 @@
|
||||||
-- This file contains special configurations values, such as directories to extern libraries (Qt)
|
-- This file contains special configurations values, such as directories to extern libraries (Qt)
|
||||||
-- Editing this file is not required to use/compile the engine, as default values should be enough
|
-- Editing this file is not required to use/compile the engine, as default values should be enough
|
||||||
|
|
||||||
|
-- Additionnal compilation flags
|
||||||
|
--AdditionalCompilationFlags = -fsanitize=address -- Enable ASan
|
||||||
|
|
||||||
-- Builds Nazara extern libraries (such as lua/STB)
|
-- Builds Nazara extern libraries (such as lua/STB)
|
||||||
BuildDependencies = true
|
BuildDependencies = true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -505,10 +505,24 @@ function NazaraBuild:LoadConfig()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local AddStringOption = function (option, name, description)
|
||||||
|
newoption({
|
||||||
|
trigger = name,
|
||||||
|
description = description
|
||||||
|
})
|
||||||
|
|
||||||
|
local str = _OPTIONS[name]
|
||||||
|
if (str) then
|
||||||
|
configTable[option] = str
|
||||||
|
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("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")
|
||||||
|
AddStringOption("AdditionalCompilationFlags", "compile-flags", "Specify additionnal compilation flags to be added to every generated project")
|
||||||
|
|
||||||
-- Configurations
|
-- Configurations
|
||||||
do
|
do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue