Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Bajtoš <miro.bajtos@gmail.com>2013-04-23 11:38:17 +0400
committerBert Belder <bertbelder@gmail.com>2013-04-23 18:41:11 +0400
commit0602fbb49c159fe5eded343a0fbb447979d757ba (patch)
treefcd626cc2e4ed9c249d29d231907c5e544a27916 /vcbuild.bat
parentff99cd527777da037906be7b1f97d8c02e8eb624 (diff)
build: added support for Visual Studio 2012
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 5bc63396ed6..babefbc5eee 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"