1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Use precompiled headers for libopenrct2 with MSVC (#15997)

* Use precompiled headers for libopenrct2 with MSVC

* Exclude PCH from duktape

duktape needs all the warnings turned off and forcing PCH also enables
warnings. As there is nothing duktape would consume from our header,
remove forcing inclusion of that header into duktape.

* Provide msbuild parameter for using PCH only in CI
This commit is contained in:
Michał Janiszewski
2023-05-07 21:53:50 +02:00
committed by GitHub
parent 4afa56e373
commit 0871525850
8 changed files with 32 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then
# Build everything
echo -e "\033[0;36mBuilding OpenRCT2 for Windows $CONFIGURATION|$PLATFORM...\033[0m"
vstool msbuild openrct2.proj -t:build -p:Breakpad=true
vstool msbuild openrct2.proj -t:build -p:Breakpad=true -p:UsePCH=true
# Create openrct2.exe and openrct2.com with correct subsystem
cp bin/openrct2.exe bin/openrct2.com