Added new option to Premake
This commit is contained in:
parent
f534a09e35
commit
c408ccb1e8
@ -74,6 +74,11 @@ newoption {
|
|||||||
description = "Upload minidumps even for Debug builds."
|
description = "Upload minidumps even for Debug builds."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = "generate_iw4x_specific_zones",
|
||||||
|
description = "Generates zones that can only be loaded by IW4X."
|
||||||
|
}
|
||||||
|
|
||||||
newaction {
|
newaction {
|
||||||
trigger = "version",
|
trigger = "version",
|
||||||
description = "Returns the version string for the current commit of the source code.",
|
description = "Returns the version string for the current commit of the source code.",
|
||||||
@ -324,6 +329,9 @@ workspace "iw4x"
|
|||||||
if _OPTIONS["force-exception-handler"] then
|
if _OPTIONS["force-exception-handler"] then
|
||||||
defines { "FORCE_EXCEPTION_HANDLER" }
|
defines { "FORCE_EXCEPTION_HANDLER" }
|
||||||
end
|
end
|
||||||
|
if _OPTIONS["generate_iw4x_specific_zones"] then
|
||||||
|
defines { "GENERATE_IW4X_SPECIFIC_ZONES" }
|
||||||
|
end
|
||||||
|
|
||||||
-- Pre-compiled header
|
-- Pre-compiled header
|
||||||
pchheader "STDInclude.hpp" -- must be exactly same as used in #include directives
|
pchheader "STDInclude.hpp" -- must be exactly same as used in #include directives
|
||||||
|
Loading…
x
Reference in New Issue
Block a user