summaryrefslogtreecommitdiff
path: root/deps/uv/vcbuild.bat
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-01-31 17:41:46 +0100
committerBert Belder <bertbelder@gmail.com>2012-01-31 17:41:46 +0100
commitfa490f64971a38c98d74dc6b55b2d88dd1f6c463 (patch)
treedce0f8cbed5f1dda406f8edc5d5419b708ef3eeb /deps/uv/vcbuild.bat
parent0ad2a9a2e0c82f71efaa56cf4eb31c8912703065 (diff)
downloadandroid-node-v8-fa490f64971a38c98d74dc6b55b2d88dd1f6c463.tar.gz
android-node-v8-fa490f64971a38c98d74dc6b55b2d88dd1f6c463.tar.bz2
android-node-v8-fa490f64971a38c98d74dc6b55b2d88dd1f6c463.zip
uv: upgrade to 3eb94e9
Diffstat (limited to 'deps/uv/vcbuild.bat')
-rw-r--r--deps/uv/vcbuild.bat14
1 files changed, 13 insertions, 1 deletions
diff --git a/deps/uv/vcbuild.bat b/deps/uv/vcbuild.bat
index bccefff9dc..644f574c22 100644
--- a/deps/uv/vcbuild.bat
+++ b/deps/uv/vcbuild.bat
@@ -64,9 +64,21 @@ echo Project files generated.
@rem Skip project generation if requested.
if defined nobuild goto run
-if not defined VCINSTALLDIR echo Build skipped. To build, this file needs to run from VS cmd prompt.& goto run
+@rem If not running in the VS build env, try to start it. If that fails, bail
+@rem out.
+if defined VCINSTALLDIR goto msbuild-found
+if not defined VS100COMNTOOLS goto msbuild-not-found
+if not exist "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat" goto msbuild-not-found
+call "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat"
+if not defined VCINSTALLDIR goto msbuild-not-found
+goto msbuild-found
+
+:msbuild-not-found
+echo Build skipped. To build, this file needs to run from VS cmd prompt.
+goto run
@rem Build the sln with msbuild.
+:msbuild-found
msbuild uv.sln /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
if errorlevel 1 goto exit