Fix deprecation warnings when using premake5
The premake script generates some deprecation warnings when generating with premake5: - "configuration" has been deprecated in favor of "filter" - "solution" was renamed to "workspace"
This commit is contained in:
parent
c14a5a5897
commit
96dc90b6ff
@ -6,7 +6,7 @@
|
|||||||
local action = _ACTION or ""
|
local action = _ACTION or ""
|
||||||
local todir = "Build/" .. action
|
local todir = "Build/" .. action
|
||||||
|
|
||||||
solution "recastnavigation"
|
workspace "recastnavigation"
|
||||||
configurations {
|
configurations {
|
||||||
"Debug",
|
"Debug",
|
||||||
"Release"
|
"Release"
|
||||||
@ -15,27 +15,27 @@ solution "recastnavigation"
|
|||||||
location (todir)
|
location (todir)
|
||||||
|
|
||||||
floatingpoint "Fast"
|
floatingpoint "Fast"
|
||||||
symbols "On"
|
|
||||||
exceptionhandling "Off"
|
exceptionhandling "Off"
|
||||||
rtti "Off"
|
rtti "Off"
|
||||||
|
symbols "On"
|
||||||
flags { "FatalCompileWarnings" }
|
flags { "FatalCompileWarnings" }
|
||||||
|
|
||||||
-- debug configs
|
-- debug configs
|
||||||
configuration "Debug*"
|
filter "configurations:Debug"
|
||||||
defines { "DEBUG" }
|
defines { "DEBUG" }
|
||||||
targetdir ( todir .. "/lib/Debug" )
|
targetdir ( todir .. "/lib/Debug" )
|
||||||
|
|
||||||
-- release configs
|
-- release configs
|
||||||
configuration "Release*"
|
filter "configurations:Release"
|
||||||
defines { "NDEBUG" }
|
defines { "NDEBUG" }
|
||||||
optimize "On"
|
optimize "On"
|
||||||
targetdir ( todir .. "/lib/Release" )
|
targetdir ( todir .. "/lib/Release" )
|
||||||
|
|
||||||
configuration "not windows"
|
filter "system:not windows"
|
||||||
warnings "Extra"
|
warnings "Extra"
|
||||||
|
|
||||||
-- windows specific
|
-- windows specific
|
||||||
configuration "windows"
|
filter "system:windows"
|
||||||
platforms { "Win32", "Win64" }
|
platforms { "Win32", "Win64" }
|
||||||
defines { "WIN32", "_WINDOWS", "_CRT_SECURE_NO_WARNINGS", "_HAS_EXCEPTIONS=0" }
|
defines { "WIN32", "_WINDOWS", "_CRT_SECURE_NO_WARNINGS", "_HAS_EXCEPTIONS=0" }
|
||||||
-- warnings "Extra" uses /W4 which is too aggressive for us, so use W3 instead.
|
-- warnings "Extra" uses /W4 which is too aggressive for us, so use W3 instead.
|
||||||
@ -74,12 +74,11 @@ project "Detour"
|
|||||||
"../Detour/Source/*.cpp"
|
"../Detour/Source/*.cpp"
|
||||||
}
|
}
|
||||||
-- linux library cflags and libs
|
-- linux library cflags and libs
|
||||||
configuration { "linux", "gmake" }
|
filter {"system:linux", "action:gmake"}
|
||||||
buildoptions {
|
buildoptions {
|
||||||
"-Wno-class-memaccess"
|
"-Wno-class-memaccess"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
project "DetourCrowd"
|
project "DetourCrowd"
|
||||||
language "C++"
|
language "C++"
|
||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
@ -150,7 +149,7 @@ project "RecastDemo"
|
|||||||
targetdir "Bin"
|
targetdir "Bin"
|
||||||
|
|
||||||
-- linux library cflags and libs
|
-- linux library cflags and libs
|
||||||
configuration { "linux", "gmake" }
|
filter {"system:linux", "action:gmake"}
|
||||||
buildoptions {
|
buildoptions {
|
||||||
"`pkg-config --cflags sdl2`",
|
"`pkg-config --cflags sdl2`",
|
||||||
"`pkg-config --cflags gl`",
|
"`pkg-config --cflags gl`",
|
||||||
@ -166,7 +165,7 @@ project "RecastDemo"
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- windows library cflags and libs
|
-- windows library cflags and libs
|
||||||
configuration { "windows" }
|
filter "system:windows"
|
||||||
includedirs { "../RecastDemo/Contrib/SDL/include" }
|
includedirs { "../RecastDemo/Contrib/SDL/include" }
|
||||||
libdirs { "../RecastDemo/Contrib/SDL/lib/%{cfg.architecture:gsub('x86_64', 'x64')}" }
|
libdirs { "../RecastDemo/Contrib/SDL/lib/%{cfg.architecture:gsub('x86_64', 'x64')}" }
|
||||||
debugdir "../RecastDemo/Bin/"
|
debugdir "../RecastDemo/Bin/"
|
||||||
@ -182,7 +181,7 @@ project "RecastDemo"
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- mac includes and libs
|
-- mac includes and libs
|
||||||
configuration { "macosx" }
|
filter "system:macosx"
|
||||||
kind "ConsoleApp" -- xcode4 failes to run the project if using WindowedApp
|
kind "ConsoleApp" -- xcode4 failes to run the project if using WindowedApp
|
||||||
includedirs { "/Library/Frameworks/SDL2.framework/Headers" }
|
includedirs { "/Library/Frameworks/SDL2.framework/Headers" }
|
||||||
links {
|
links {
|
||||||
@ -232,7 +231,7 @@ project "Tests"
|
|||||||
targetdir "Bin"
|
targetdir "Bin"
|
||||||
|
|
||||||
-- linux library cflags and libs
|
-- linux library cflags and libs
|
||||||
configuration { "linux", "gmake" }
|
filter {"system:linux", "action:gmake"}
|
||||||
buildoptions {
|
buildoptions {
|
||||||
"`pkg-config --cflags sdl2`",
|
"`pkg-config --cflags sdl2`",
|
||||||
"`pkg-config --cflags gl`",
|
"`pkg-config --cflags gl`",
|
||||||
@ -246,7 +245,7 @@ project "Tests"
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- windows library cflags and libs
|
-- windows library cflags and libs
|
||||||
configuration { "windows" }
|
filter "system:windows"
|
||||||
includedirs { "../RecastDemo/Contrib/SDL/include" }
|
includedirs { "../RecastDemo/Contrib/SDL/include" }
|
||||||
libdirs { "../RecastDemo/Contrib/SDL/lib/%{cfg.architecture:gsub('x86_64', 'x64')}" }
|
libdirs { "../RecastDemo/Contrib/SDL/lib/%{cfg.architecture:gsub('x86_64', 'x64')}" }
|
||||||
debugdir "../RecastDemo/Bin/"
|
debugdir "../RecastDemo/Bin/"
|
||||||
@ -258,7 +257,7 @@ project "Tests"
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- mac includes and libs
|
-- mac includes and libs
|
||||||
configuration { "macosx" }
|
filter "system:macosx"
|
||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
includedirs { "/Library/Frameworks/SDL2.framework/Headers" }
|
includedirs { "/Library/Frameworks/SDL2.framework/Headers" }
|
||||||
links {
|
links {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user