Skip to content

Commit 0602fbb

Browse files
bajtospiscisaureus
authored andcommitted
build: added support for Visual Studio 2012
1 parent ff99cd5 commit 0602fbb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

vcbuild.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ if defined nobuild goto sign
101101

102102
@rem Bail out early if not running in VS build env.
103103
if defined VCINSTALLDIR goto msbuild-found
104+
105+
@rem Look for Visual Studio 2012
106+
if not defined VS110COMNTOOLS goto vc-set-2010
107+
if not exist "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2010
108+
call "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat"
109+
if not defined VCINSTALLDIR goto msbuild-not-found
110+
set GYP_MSVS_VERSION=2012
111+
goto msbuild-found
112+
113+
:vc-set-2010
104114
if not defined VS100COMNTOOLS goto msbuild-not-found
105115
if not exist "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat" goto msbuild-not-found
106116
call "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat"

0 commit comments

Comments
 (0)