Premake5: Fall back to old "Symbols" flag if new symbols option isn't available.
This commit is contained in:
parent
713e796096
commit
e29a4ece9a
36
premake5.lua
36
premake5.lua
@ -281,7 +281,11 @@ workspace "iw4x"
|
|||||||
defines { "DEBUG", "_DEBUG" }
|
defines { "DEBUG", "_DEBUG" }
|
||||||
flags { "MultiProcessorCompile", "No64BitChecks" }
|
flags { "MultiProcessorCompile", "No64BitChecks" }
|
||||||
optimize "Debug"
|
optimize "Debug"
|
||||||
|
if symbols ~= nil then
|
||||||
symbols "On"
|
symbols "On"
|
||||||
|
else
|
||||||
|
flags { "Symbols" }
|
||||||
|
end
|
||||||
|
|
||||||
project "iw4x"
|
project "iw4x"
|
||||||
kind "SharedLib"
|
kind "SharedLib"
|
||||||
@ -405,7 +409,11 @@ workspace "iw4x"
|
|||||||
-- Specific configurations
|
-- Specific configurations
|
||||||
flags { "UndefinedIdentifiers", "ExtraWarnings" }
|
flags { "UndefinedIdentifiers", "ExtraWarnings" }
|
||||||
|
|
||||||
|
if symbols ~= nil then
|
||||||
symbols "On"
|
symbols "On"
|
||||||
|
else
|
||||||
|
flags { "Symbols" }
|
||||||
|
end
|
||||||
|
|
||||||
configuration "Release*"
|
configuration "Release*"
|
||||||
flags {
|
flags {
|
||||||
@ -415,20 +423,6 @@ workspace "iw4x"
|
|||||||
configuration {}
|
configuration {}
|
||||||
|
|
||||||
-- Generate source code from protobuf definitions
|
-- Generate source code from protobuf definitions
|
||||||
filter "files:**.pb.*"
|
|
||||||
flags {
|
|
||||||
"NoPCH",
|
|
||||||
}
|
|
||||||
buildoptions {
|
|
||||||
"/wd4100", -- "Unused formal parameter"
|
|
||||||
"/wd4389", -- "Signed/Unsigned mismatch"
|
|
||||||
"/wd6011", -- "Dereferencing NULL pointer"
|
|
||||||
"/wd4125", -- "Decimal digit terminates octal escape sequence"
|
|
||||||
}
|
|
||||||
defines {
|
|
||||||
"_SCL_SECURE_NO_WARNINGS",
|
|
||||||
}
|
|
||||||
filter {}
|
|
||||||
rules { "ProtobufCompiler" }
|
rules { "ProtobufCompiler" }
|
||||||
|
|
||||||
-- Workaround: Consume protobuf generated source files
|
-- Workaround: Consume protobuf generated source files
|
||||||
@ -445,6 +439,20 @@ workspace "iw4x"
|
|||||||
{
|
{
|
||||||
"%{prj.location}/src/proto",
|
"%{prj.location}/src/proto",
|
||||||
}
|
}
|
||||||
|
filter "files:**.pb.*"
|
||||||
|
flags {
|
||||||
|
"NoPCH",
|
||||||
|
}
|
||||||
|
buildoptions {
|
||||||
|
"/wd4100", -- "Unused formal parameter"
|
||||||
|
"/wd4389", -- "Signed/Unsigned mismatch"
|
||||||
|
"/wd6011", -- "Dereferencing NULL pointer"
|
||||||
|
"/wd4125", -- "Decimal digit terminates octal escape sequence"
|
||||||
|
}
|
||||||
|
defines {
|
||||||
|
"_SCL_SECURE_NO_WARNINGS",
|
||||||
|
}
|
||||||
|
filter {}
|
||||||
|
|
||||||
group "External dependencies"
|
group "External dependencies"
|
||||||
if not _OPTIONS["disable-bitmessage"] then
|
if not _OPTIONS["disable-bitmessage"] then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user