Added new option to Premake

This commit is contained in:
Diavolo 2021-07-16 16:36:16 +02:00
parent f534a09e35
commit c408ccb1e8
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -74,6 +74,11 @@ newoption {
description = "Upload minidumps even for Debug builds."
}
newoption {
trigger = "generate_iw4x_specific_zones",
description = "Generates zones that can only be loaded by IW4X."
}
newaction {
trigger = "version",
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
defines { "FORCE_EXCEPTION_HANDLER" }
end
if _OPTIONS["generate_iw4x_specific_zones"] then
defines { "GENERATE_IW4X_SPECIFIC_ZONES" }
end
-- Pre-compiled header
pchheader "STDInclude.hpp" -- must be exactly same as used in #include directives