mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-04 21:37:55 +01:00
129 lines
4.4 KiB
Lua
129 lines
4.4 KiB
Lua
|
|
||
|
configuration {}
|
||
|
|
||
|
objdir ( "../../build/obj/" .. mpt_projectpathname .. "/" .. mpt_projectname )
|
||
|
|
||
|
flags { "Cpp17" }
|
||
|
|
||
|
configuration { "Debug", "x32" }
|
||
|
targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/x86" )
|
||
|
configuration { "DebugShared", "x32" }
|
||
|
targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/x86" )
|
||
|
configuration { "Release", "x32" }
|
||
|
targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/x86" )
|
||
|
configuration { "ReleaseShared", "x32" }
|
||
|
targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/x86" )
|
||
|
|
||
|
configuration { "Debug", "x64" }
|
||
|
targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/amd64" )
|
||
|
configuration { "DebugShared", "x64" }
|
||
|
targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/amd64" )
|
||
|
configuration { "Release", "x64" }
|
||
|
targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/amd64" )
|
||
|
configuration { "ReleaseShared", "x64" }
|
||
|
targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/amd64" )
|
||
|
|
||
|
configuration { "Debug", "ARM" }
|
||
|
targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm" )
|
||
|
configuration { "DebugShared", "ARM" }
|
||
|
targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm" )
|
||
|
configuration { "Release", "ARM" }
|
||
|
targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm" )
|
||
|
configuration { "ReleaseShared", "ARM" }
|
||
|
targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm" )
|
||
|
|
||
|
configuration { "Debug", "ARM64" }
|
||
|
targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm64" )
|
||
|
configuration { "DebugShared", "ARM64" }
|
||
|
targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm64" )
|
||
|
configuration { "Release", "ARM64" }
|
||
|
targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm64" )
|
||
|
configuration { "ReleaseShared", "ARM64" }
|
||
|
targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm64" )
|
||
|
|
||
|
configuration "Debug"
|
||
|
defines { "DEBUG" }
|
||
|
defines { "MPT_BUILD_DEBUG" }
|
||
|
defines { "MPT_BUILD_MSVC_STATIC" }
|
||
|
flags { "Symbols" }
|
||
|
|
||
|
configuration "DebugShared"
|
||
|
defines { "DEBUG" }
|
||
|
defines { "MPT_BUILD_DEBUG" }
|
||
|
defines { "MPT_BUILD_MSVC_SHARED" }
|
||
|
flags { "Symbols" }
|
||
|
|
||
|
configuration "Release"
|
||
|
defines { "NDEBUG" }
|
||
|
defines { "MPT_BUILD_MSVC_STATIC" }
|
||
|
flags { "Symbols" }
|
||
|
flags { "OptimizeSpeed" }
|
||
|
|
||
|
configuration "ReleaseShared"
|
||
|
defines { "NDEBUG" }
|
||
|
defines { "MPT_BUILD_MSVC_SHARED" }
|
||
|
flags { "Symbols" }
|
||
|
flags { "OptimizeSpeed" }
|
||
|
|
||
|
configuration {}
|
||
|
defines { "MPT_BUILD_MSVC" }
|
||
|
|
||
|
configuration {}
|
||
|
defines {
|
||
|
"WIN32",
|
||
|
"_CRT_NONSTDC_NO_WARNINGS",
|
||
|
"_CRT_SECURE_NO_WARNINGS",
|
||
|
"_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1",
|
||
|
"_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT=1",
|
||
|
}
|
||
|
|
||
|
configuration {}
|
||
|
|
||
|
if _ACTION ~= "postprocess" then
|
||
|
|
||
|
if _OPTIONS["target"] == "windesktop81" then
|
||
|
defines { "_WIN32_WINNT=0x0603" }
|
||
|
|
||
|
elseif _OPTIONS["target"] == "winphone8" then
|
||
|
defines { "_WIN32_WINNT=0x0602" }
|
||
|
premake.vstudio.toolset = "v110_wp80"
|
||
|
|
||
|
elseif _OPTIONS["target"] == "winphone81" then
|
||
|
defines { "_WIN32_WINNT=0x0603" }
|
||
|
premake.vstudio.toolset = "v120_wp81"
|
||
|
premake.vstudio.storeapp = "8.1"
|
||
|
|
||
|
elseif _OPTIONS["target"] == "winstore81" then
|
||
|
defines { "_WIN32_WINNT=0x0603" }
|
||
|
premake.vstudio.toolset = "v120"
|
||
|
premake.vstudio.storeapp = "8.1"
|
||
|
|
||
|
elseif _OPTIONS["target"] == "winstore82" then
|
||
|
defines { "_WIN32_WINNT=0x0603" }
|
||
|
premake.vstudio.storeapp = "8.2"
|
||
|
local action = premake.action.current()
|
||
|
action.vstudio.windowsTargetPlatformVersion = "10.0.10240.0"
|
||
|
action.vstudio.windowsTargetPlatformMinVersion = "10.0.10240.0"
|
||
|
|
||
|
elseif _OPTIONS["target"] == "winstore10" then
|
||
|
defines { "_WIN32_WINNT=0x0A00" }
|
||
|
premake.vstudio.storeapp = "10.0"
|
||
|
configuration {}
|
||
|
configuration { "x32" }
|
||
|
defines { "NTDDI_VERSION=0x0A000000" }
|
||
|
configuration {}
|
||
|
configuration { "x64" }
|
||
|
defines { "NTDDI_VERSION=0x0A000000" }
|
||
|
configuration {}
|
||
|
configuration { "ARM" }
|
||
|
defines { "NTDDI_VERSION=0x0A000000" }
|
||
|
configuration {}
|
||
|
configuration { "ARM64" }
|
||
|
defines { "NTDDI_VERSION=0x0A000004" }
|
||
|
configuration {}
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
configuration {}
|