From ddf7b62d6f353c2c16e5cbd6043c3e63aa91cb79 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Mon, 4 Jan 2016 20:06:00 +0100 Subject: [PATCH] premake5: Let's do a bit more precise scripting. --- premake5.lua | 42 +++++++++++------------------------------- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/premake5.lua b/premake5.lua index 2fa6a014..40cfa3f7 100644 --- a/premake5.lua +++ b/premake5.lua @@ -54,25 +54,19 @@ workspace "iw4x" -- VS 2015 toolset only toolset "msc-140" - configuration "Debug" - defines { "DEBUG" } - flags { "MultiProcessorCompile", "Symbols", "No64BitChecks" } - optimize "Debug" - configuration "DebugStatic" - defines { "NDEBUG" } - flags { "MultiProcessorCompile", "Symbols", "No64BitChecks", "StaticRuntime" } - optimize "Debug" - - configuration "Release" + configuration "Release*" defines { "NDEBUG" } flags { "MultiProcessorCompile", "Symbols", "LinkTimeOptimization", "No64BitChecks" } optimize "Full" - configuration "ReleaseStatic" - defines { "NDEBUG" } - flags { "MultiProcessorCompile", "Symbols", "LinkTimeOptimization", "No64BitChecks", "StaticRuntime" } - optimize "Full" + configuration "Debug*" + defines { "DEBUG" } + flags { "MultiProcessorCompile", "Symbols", "No64BitChecks" } + optimize "Debug" + + configuration "*Static" + flags { "StaticRuntime" } project "iw4x" kind "SharedLib" @@ -112,23 +106,9 @@ workspace "iw4x" end -- Specific configurations - configuration "Debug" - defines { "DEBUG" } - flags { "UndefinedIdentifiers" } - optimize "Debug" + flags { "UndefinedIdentifiers" } - configuration "DebugStatic" - defines { "NDEBUG" } - flags { "UndefinedIdentifiers" } - optimize "Debug" + configuration "Release*" + flags { "FatalCompileWarnings" } - configuration "Release" - defines { "NDEBUG" } - flags { "FatalCompileWarnings", "UndefinedIdentifiers" } - optimize "Full" - - configuration "ReleaseStatic" - defines { "NDEBUG" } - flags { "FatalCompileWarnings", "UndefinedIdentifiers" } - optimize "Full"