Skip to content

Commit e41a137

Browse files
author
henrypp
committedOct 22, 2023
add build vc
1 parent eb4c485 commit e41a137

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
 

‎build_vc.bat

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@echo off
2+
@setlocal enableextensions
3+
rem @cd /d "%~dp0\..\"
4+
5+
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" (
6+
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64
7+
goto start
8+
)
9+
10+
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" (
11+
call "%ProgramFiles%\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64
12+
goto start
13+
)
14+
15+
echo VS 2022 not found...
16+
17+
goto end
18+
19+
:start
20+
21+
msbuild timevertor.sln -property:Configuration=Release -property:Platform=x86 -verbosity:normal
22+
if %ERRORLEVEL% neq 0 goto end
23+
24+
msbuild timevertor.sln -property:Configuration=Release -property:Platform=x64 -verbosity:normal
25+
if %ERRORLEVEL% neq 0 goto end
26+
27+
msbuild timevertor.sln -property:Configuration=Release -property:Platform=ARM64 -verbosity:normal
28+
if %ERRORLEVEL% neq 0 goto end
29+
30+
:end
31+
32+
echo done...
33+
34+
pause

0 commit comments

Comments
 (0)
Please sign in to comment.