Merge pull request #25 from alterware/build/premake5-update
build: update premake5 config file
This commit is contained in:
commit
3216c522c9
22
premake5.lua
22
premake5.lua
@ -38,6 +38,9 @@ targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
|
|||||||
|
|
||||||
configurations {"Debug", "Release"}
|
configurations {"Debug", "Release"}
|
||||||
|
|
||||||
|
language "C++"
|
||||||
|
cppdialect "C++20"
|
||||||
|
|
||||||
if os.istarget("darwin") then
|
if os.istarget("darwin") then
|
||||||
platforms {"x64", "arm64"}
|
platforms {"x64", "arm64"}
|
||||||
else
|
else
|
||||||
@ -56,20 +59,6 @@ filter "platforms:arm64"
|
|||||||
architecture "ARM64"
|
architecture "ARM64"
|
||||||
filter {}
|
filter {}
|
||||||
|
|
||||||
filter {"language:C++", "toolset:not msc*"}
|
|
||||||
buildoptions {
|
|
||||||
"-std=c++20"
|
|
||||||
}
|
|
||||||
filter "toolset:msc*"
|
|
||||||
buildoptions {
|
|
||||||
"/std:c++20"
|
|
||||||
}
|
|
||||||
filter {}
|
|
||||||
|
|
||||||
filter {"system:windows"}
|
|
||||||
systemversion "latest"
|
|
||||||
filter {}
|
|
||||||
|
|
||||||
symbols "On"
|
symbols "On"
|
||||||
staticruntime "On"
|
staticruntime "On"
|
||||||
editandcontinue "Off"
|
editandcontinue "Off"
|
||||||
@ -107,7 +96,7 @@ flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64Bi
|
|||||||
|
|
||||||
filter "configurations:Release"
|
filter "configurations:Release"
|
||||||
optimize "Speed"
|
optimize "Speed"
|
||||||
defines {"NDEBUG"}
|
defines "NDEBUG"
|
||||||
flags "FatalCompileWarnings"
|
flags "FatalCompileWarnings"
|
||||||
filter {}
|
filter {}
|
||||||
|
|
||||||
@ -136,9 +125,8 @@ filter { "system:windows", "toolset:not msc*" }
|
|||||||
"%{_MAIN_SCRIPT_DIR}/src"
|
"%{_MAIN_SCRIPT_DIR}/src"
|
||||||
}
|
}
|
||||||
filter { "system:windows", "toolset:msc*" }
|
filter { "system:windows", "toolset:msc*" }
|
||||||
linkoptions {"/IGNORE:4254", "/SAFESEH:NO", "/LARGEADDRESSAWARE", "/PDBCompress"}
|
|
||||||
resincludedirs {
|
resincludedirs {
|
||||||
"$(ProjectDir)src" -- fix for VS IDE
|
"$(ProjectDir)src"
|
||||||
}
|
}
|
||||||
filter {}
|
filter {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user