Skip to content

Commit

Permalink
add visual studio build script
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypp committed Sep 14, 2023
1 parent 28178c2 commit 467a735
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions build_vc.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@echo off
@setlocal enableextensions
rem @cd /d "%~dp0\..\"

if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64
goto start
)

if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" (
call "%ProgramFiles%\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64
goto start
)

echo VS 2022 not found...

goto end

:start

msbuild simplewall.sln -property:Configuration=Release -property:Platform=x86 -verbosity:normal
if %ERRORLEVEL% neq 0 goto end

msbuild simplewall.sln -property:Configuration=Release -property:Platform=x64 -verbosity:normal
if %ERRORLEVEL% neq 0 goto end

msbuild simplewall.sln -property:Configuration=Release -property:Platform=ARM64 -verbosity:normal
if %ERRORLEVEL% neq 0 goto end

:end

echo done...

pause

0 comments on commit 467a735

Please sign in to comment.