From 6272f21e6ceb453b6e08c37a5c0b877decae3277 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 10 Dec 2024 13:30:46 +0100 Subject: [PATCH] msvc/build/buildbase.bat: build for ARM64 --- builds/msvc/build/buildbase.bat | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/builds/msvc/build/buildbase.bat b/builds/msvc/build/buildbase.bat index 93352732..4e3933fb 100644 --- a/builds/msvc/build/buildbase.bat +++ b/builds/msvc/build/buildbase.bat @@ -93,6 +93,31 @@ ECHO Configuration=StaticRelease msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=x64 %solution% >> %log% IF errorlevel 1 GOTO error +@REM Build ARM64 packages only for Visual studio 2019 and later +IF %version% GEQ 16 ( + CALL !environment! ARM64 > nul + ECHO Platform=ARM64 + + ECHO Configuration=DynDebug + msbuild /m /v:n /p:Configuration=DynDebug /p:Platform=ARM64 %solution% >> %log% + IF errorlevel 1 GOTO error + ECHO Configuration=DynRelease + msbuild /m /v:n /p:Configuration=DynRelease /p:Platform=ARM64 %solution% >> %log% + IF errorlevel 1 GOTO error + ECHO Configuration=LtcgDebug + msbuild /m /v:n /p:Configuration=LtcgDebug /p:Platform=ARM64 %solution% >> %log% + IF errorlevel 1 GOTO error + ECHO Configuration=LtcgRelease + msbuild /m /v:n /p:Configuration=LtcgRelease /p:Platform=ARM64 %solution% >> %log% + IF errorlevel 1 GOTO error + ECHO Configuration=StaticDebug + msbuild /m /v:n /p:Configuration=StaticDebug /p:Platform=ARM64 %solution% >> %log% + IF errorlevel 1 GOTO error + ECHO Configuration=StaticRelease + msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=ARM64 %solution% >> %log% + IF errorlevel 1 GOTO error +) + ECHO Complete: %solution% GOTO end