vs2022
This commit is contained in:
parent
b98ee18759
commit
ed84593776
@ -12,7 +12,7 @@ Proof of concept for an Modern Warfare Remastered client. <br>
|
|||||||
## Compile from source
|
## Compile from source
|
||||||
|
|
||||||
- Clone the Git repo. Do NOT download it as ZIP, that won't work.
|
- Clone the Git repo. Do NOT download it as ZIP, that won't work.
|
||||||
- Update the submodules and run `premake5 vs2019` or simply use the delivered `generate.bat`.
|
- Update the submodules and run `premake5 vs2022` or simply use the delivered `generate.bat`.
|
||||||
- Build via solution file in `build\h1-mod.sln`.
|
- Build via solution file in `build\h1-mod.sln`.
|
||||||
|
|
||||||
### Premake arguments
|
### Premake arguments
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
tools\premake5 %* vs2019
|
tools\premake5 %* vs2022
|
21
premake5.lua
21
premake5.lua
@ -227,10 +227,12 @@ targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
|
|||||||
|
|
||||||
configurations {"Debug", "Release"}
|
configurations {"Debug", "Release"}
|
||||||
|
|
||||||
architecture "x64"
|
language "C++"
|
||||||
|
cppdialect "C++20"
|
||||||
|
|
||||||
|
architecture "x86_64"
|
||||||
platforms "x64"
|
platforms "x64"
|
||||||
|
|
||||||
buildoptions "/std:c++latest"
|
|
||||||
systemversion "latest"
|
systemversion "latest"
|
||||||
symbols "On"
|
symbols "On"
|
||||||
staticruntime "On"
|
staticruntime "On"
|
||||||
@ -248,25 +250,22 @@ end
|
|||||||
|
|
||||||
flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks"}
|
flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks"}
|
||||||
|
|
||||||
|
filter "platforms:x64"
|
||||||
configuration "windows"
|
|
||||||
defines {"_WINDOWS", "WIN32"}
|
defines {"_WINDOWS", "WIN32"}
|
||||||
|
filter {}
|
||||||
|
|
||||||
configuration "Release"
|
filter "configurations:Release"
|
||||||
optimize "Size"
|
optimize "Size"
|
||||||
buildoptions {"/GL"}
|
buildoptions {"/GL"}
|
||||||
linkoptions { "/IGNORE:4702", "/LTCG" }
|
linkoptions { "/IGNORE:4702", "/LTCG" }
|
||||||
|
|
||||||
defines {"NDEBUG"}
|
defines {"NDEBUG"}
|
||||||
|
|
||||||
flags {"FatalCompileWarnings"}
|
flags {"FatalCompileWarnings"}
|
||||||
|
filter {}
|
||||||
|
|
||||||
configuration "Debug"
|
filter "configurations:Debug"
|
||||||
optimize "Debug"
|
optimize "Debug"
|
||||||
|
|
||||||
defines {"DEBUG", "_DEBUG"}
|
defines {"DEBUG", "_DEBUG"}
|
||||||
|
filter {}
|
||||||
configuration {}
|
|
||||||
|
|
||||||
project "common"
|
project "common"
|
||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#pragma warning(disable: 4702)
|
#pragma warning(disable: 4702)
|
||||||
#pragma warning(disable: 4996)
|
#pragma warning(disable: 4996)
|
||||||
#pragma warning(disable: 5054)
|
#pragma warning(disable: 5054)
|
||||||
|
#pragma warning(disable: 5056)
|
||||||
#pragma warning(disable: 6011)
|
#pragma warning(disable: 6011)
|
||||||
#pragma warning(disable: 6297)
|
#pragma warning(disable: 6297)
|
||||||
#pragma warning(disable: 6385)
|
#pragma warning(disable: 6385)
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user