mirror of
https://github.com/alterware/iw4-validator.git
synced 2025-09-19 14:27:24 +00:00
init
This commit is contained in:
90
premake5.lua
Normal file
90
premake5.lua
Normal file
@@ -0,0 +1,90 @@
|
||||
workspace "iw4-validator"
|
||||
startproject "iw4-validator"
|
||||
location "./build"
|
||||
objdir "%{wks.location}/obj"
|
||||
targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
|
||||
|
||||
configurations {"Debug", "Release"}
|
||||
|
||||
if os.istarget("darwin") then
|
||||
platforms {"x64", "arm64"}
|
||||
else
|
||||
platforms {"x86", "x64"}
|
||||
end
|
||||
|
||||
filter "platforms:x86"
|
||||
architecture "x86"
|
||||
filter {}
|
||||
|
||||
filter "platforms:x64"
|
||||
architecture "x86_64"
|
||||
filter {}
|
||||
|
||||
filter "platforms:arm64"
|
||||
architecture "ARM64"
|
||||
filter {}
|
||||
|
||||
filter {"language:C++", "toolset:not msc*"}
|
||||
buildoptions "-std=c++20"
|
||||
filter {}
|
||||
|
||||
filter "toolset:msc*"
|
||||
buildoptions "/std:c++20"
|
||||
filter {}
|
||||
|
||||
filter {"system:windows"}
|
||||
systemversion "latest"
|
||||
filter {}
|
||||
|
||||
symbols "On"
|
||||
staticruntime "On"
|
||||
editandcontinue "Off"
|
||||
warnings "Extra"
|
||||
characterset "ASCII"
|
||||
|
||||
if os.istarget("linux") or os.istarget("darwin") then
|
||||
buildoptions "-pthread"
|
||||
linkoptions "-pthread"
|
||||
end
|
||||
|
||||
if os.getenv("CI") then
|
||||
defines "CI"
|
||||
end
|
||||
|
||||
flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks"}
|
||||
|
||||
filter "configurations:Release"
|
||||
optimize "Speed"
|
||||
defines "NDEBUG"
|
||||
flags "FatalCompileWarnings"
|
||||
filter {}
|
||||
|
||||
filter "configurations:Debug"
|
||||
optimize "Debug"
|
||||
defines {"DEBUG", "_DEBUG"}
|
||||
filter {}
|
||||
|
||||
project "iw4-validator"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
|
||||
targetname "iw4-validator"
|
||||
|
||||
pchheader "std_include.hpp"
|
||||
pchsource "src/std_include.cpp"
|
||||
|
||||
files {"./src/**.hpp", "./src/**.cpp"}
|
||||
|
||||
includedirs {"./src", "%{prj.location}/src"}
|
||||
|
||||
filter {"system:windows", "toolset:not msc*"}
|
||||
resincludedirs {
|
||||
"%{_MAIN_SCRIPT_DIR}/src"
|
||||
}
|
||||
filter {}
|
||||
|
||||
filter {"system:windows", "toolset:msc*"}
|
||||
resincludedirs {
|
||||
"$(ProjectDir)src"
|
||||
}
|
||||
filter {}
|
Reference in New Issue
Block a user