Skip to content

Commit 592f66f

Browse files
committed
FEAT: added support for Windows build with VS2017 and VS2015
1 parent 9b724df commit 592f66f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

make/vcbuild.bat

+12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
@ECHO OFF
22

33
REM Allow to explicitly specify the desired Visual Studio version
4+
IF /I "%1" == "vc17" GOTO TRY_VS17
5+
IF /I "%1" == "vc15" GOTO TRY_VS15
46
IF /I "%1" == "vc12" GOTO TRY_VS12
57
IF /I "%1" == "vc10" GOTO TRY_VS10
68
IF /I "%1" == "vc9" GOTO TRY_VS9
79

10+
REM vs15 is VS 2017
11+
:TRY_VS17
12+
CALL "%VS150COMNTOOLS%\vsvars32.bat" 2>NUL
13+
IF NOT ERRORLEVEL 1 GOTO BUILD
14+
15+
REM vs14 is VS 2015
16+
:TRY_VS17
17+
CALL "%VS140COMNTOOLS%\vsvars32.bat" 2>NUL
18+
IF NOT ERRORLEVEL 1 GOTO BUILD
19+
820
REM vs12 is VS 2012
921
:TRY_VS12
1022
CALL "%VS120COMNTOOLS%\vsvars32.bat" 2>NUL

0 commit comments

Comments
 (0)