Skip to content

Commit 1a09ef3

Browse files
committed
Update, and made works, build_projects.bat
1 parent 52d883d commit 1a09ef3

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

scripts/build_projects.bat

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
:: Batch file that sets up Visual Studio command line tools and builds appshell.sln
22
:: This file should *not* be called directly. It is called by the build.sh script.
3-
ECHO OFF
3+
@ECHO OFF
44

5+
IF DEFINED VS140COMNTOOLS GOTO VS2015
6+
IF DEFINED VS120COMNTOOLS GOTO VS2013
57
IF DEFINED VS110COMNTOOLS GOTO VS2012
68
IF DEFINED VS100COMNTOOLS GOTO VS2010
79

810
:VSNotInstalled
9-
ECHO Visual Studio 2010 or 2012 must be installed.
10-
GOTO Exit
11+
ECHO Visual Studio 2010, 2012, 2013 or 2015 must be installed.
12+
GOTO Error
13+
14+
:VS2015
15+
call "%VS140COMNTOOLS%/vsvars32.bat"
16+
GOTO Build
17+
18+
:VS2013
19+
call "%VS120COMNTOOLS%/vsvars32.bat"
20+
GOTO Build
1121

1222
:VS2012
1323
call "%VS110COMNTOOLS%/vsvars32.bat"
@@ -18,8 +28,9 @@ call "%VS100COMNTOOLS%/vsvars32.bat"
1828
GOTO Build
1929

2030
:Build
21-
msbuild.exe appshell.sln /t:Clean /p:Platform=Win32 /p:Configuration=Release
22-
msbuild.exe appshell.sln /t:Build /p:Platform=Win32 /p:Configuration=Release
23-
24-
:Exit
31+
msbuild.exe appshell.sln /nr:false /t:Clean /p:Platform=Win32 /p:Configuration=Release
32+
msbuild.exe appshell.sln /nr:false /t:Build /p:Platform=Win32 /p:Configuration=Release
2533
exit /b %ERRORLEVEL%
34+
35+
:Error
36+
exit /b 1

0 commit comments

Comments
 (0)