From 0602fbb49c159fe5eded343a0fbb447979d757ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 23 Apr 2013 09:38:17 +0200 Subject: [PATCH] build: added support for Visual Studio 2012 --- vcbuild.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vcbuild.bat b/vcbuild.bat index 5bc63396ed6d2b..babefbc5eee896 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -101,6 +101,16 @@ if defined nobuild goto sign @rem Bail out early if not running in VS build env. if defined VCINSTALLDIR goto msbuild-found + +@rem Look for Visual Studio 2012 +if not defined VS110COMNTOOLS goto vc-set-2010 +if not exist "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2010 +call "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat" +if not defined VCINSTALLDIR goto msbuild-not-found +set GYP_MSVS_VERSION=2012 +goto msbuild-found + +:vc-set-2010 if not defined VS100COMNTOOLS goto msbuild-not-found if not exist "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat" goto msbuild-not-found call "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat"