summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorNikolai Vavilov <vvnicholas@gmail.com>2017-11-12 18:15:52 +0200
committerNikolai Vavilov <vvnicholas@gmail.com>2017-12-12 20:43:35 +0200
commitb13233aa39d54262d5b38c4d8a23450a040be2b3 (patch)
treeb0f6ab2da4a6f255df63f188c8365ef2075a7815 /vcbuild.bat
parentdef6072f3a8eeffaa8fd48e9088c50490c647765 (diff)
downloadandroid-node-v8-b13233aa39d54262d5b38c4d8a23450a040be2b3.tar.gz
android-node-v8-b13233aa39d54262d5b38c4d8a23450a040be2b3.tar.bz2
android-node-v8-b13233aa39d54262d5b38c4d8a23450a040be2b3.zip
build: remove support for VS2015
PR-URL: https://github.com/nodejs/node/pull/16969 Refs: https://github.com/nodejs/node/pull/16868 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat43
1 files changed, 6 insertions, 37 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 89c495de0d..867afbc54e 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -61,9 +61,6 @@ if /i "%1"=="clean" set target=Clean&goto arg-ok
if /i "%1"=="ia32" set target_arch=x86&goto arg-ok
if /i "%1"=="x86" set target_arch=x86&goto arg-ok
if /i "%1"=="x64" set target_arch=x64&goto arg-ok
-@rem args should be vs2017 and vs2015. keeping vc2015 for backward compatibility (undocumented)
-if /i "%1"=="vc2015" set target_env=vs2015&goto arg-ok
-if /i "%1"=="vs2015" set target_env=vs2015&goto arg-ok
if /i "%1"=="vs2017" set target_env=vs2017&goto arg-ok
if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok
if /i "%1"=="nobuild" set nobuild=1&goto arg-ok
@@ -145,7 +142,6 @@ if defined build_release (
:: assign path to node_exe
set "node_exe=%config%\node.exe"
set "node_gyp_exe="%node_exe%" deps\npm\node_modules\node-gyp\bin\node-gyp"
-if "%target_env%"=="vs2015" set "node_gyp_exe=%node_gyp_exe% --msvs_version=2015"
if "%target_env%"=="vs2017" set "node_gyp_exe=%node_gyp_exe% --msvs_version=2017"
if "%config%"=="Debug" set configure_flags=%configure_flags% --debug
@@ -187,20 +183,20 @@ if %target_arch%==x64 if %msvs_host_arch%==amd64 set vcvarsall_arg=amd64
@rem Look for Visual Studio 2017
:vs-set-2017
-if defined target_env if "%target_env%" NEQ "vs2017" goto vs-set-2015
+if defined target_env if "%target_env%" NEQ "vs2017" goto msbuild-not-found
echo Looking for Visual Studio 2017
call tools\msvs\vswhere_usability_wrapper.cmd
-if "_%VCINSTALLDIR%_" == "__" goto vs-set-2015
+if "_%VCINSTALLDIR%_" == "__" goto msbuild-not-found
if defined msi (
echo Looking for WiX installation for Visual Studio 2017...
if not exist "%WIX%\SDK\VS2017" (
echo Failed to find WiX install for Visual Studio 2017
echo VS2017 support for WiX is only present starting at version 3.11
- goto vs-set-2015
+ goto msbuild-not-found
)
if not exist "%VCINSTALLDIR%\..\MSBuild\Microsoft\WiX" (
echo Failed to find the Wix Toolset Visual Studio 2017 Extension
- goto vs-set-2015
+ goto msbuild-not-found
)
)
@rem check if VS2017 is already setup, and for the requested arch
@@ -212,40 +208,13 @@ set "VSCMD_START_DIR=%CD%"
set vcvars_call="%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" %vcvarsall_arg%
echo calling: %vcvars_call%
call %vcvars_call%
-if errorlevel 1 goto vs-set-2015
+if errorlevel 1 goto msbuild-not-found
:found_vs2017
echo Found MSVS version %VisualStudioVersion%
set GYP_MSVS_VERSION=2017
set PLATFORM_TOOLSET=v141
goto msbuild-found
-@rem Look for Visual Studio 2015
-:vs-set-2015
-if defined target_env if "%target_env%" NEQ "vs2015" goto msbuild-not-found
-echo Looking for Visual Studio 2015
-if not defined VS140COMNTOOLS goto msbuild-not-found
-if not exist "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat" goto msbuild-not-found
-if defined msi (
- echo Looking for WiX installation for Visual Studio 2015...
- if not exist "%WIX%\SDK\VS2015" (
- echo Failed to find WiX install for Visual Studio 2015
- echo VS2015 support for WiX is only present starting at version 3.10
- goto wix-not-found
- )
-)
-
-@rem check if VS2015 is already setup
-if "_%VisualStudioVersion%_" == "_14.0_" if "_%VCVARS_VER%_" == "_140_" goto found_vs2015
-call "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat"
-SET VCVARS_VER=140
-:found_vs2015
-if not defined VCINSTALLDIR goto msbuild-not-found
-@rem Visual C++ Build Tools 2015 does not define VisualStudioVersion
-echo Found MSVS version 14.0
-set GYP_MSVS_VERSION=2015
-set PLATFORM_TOOLSET=v140
-goto msbuild-found
-
:msbuild-not-found
echo Failed to find a suitable Visual Studio installation.
echo Try to run in a "Developer Command Prompt" or consult
@@ -555,7 +524,7 @@ echo Failed to create vc project files.
goto exit
:help
-echo vcbuild.bat [debug/release] [msi] [test/test-ci/test-all/test-addons/test-addons-napi/test-internet/test-pummel/test-simple/test-message/test-gc/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [noetw] [noperfctr] [licensetf] [sign] [ia32/x86/x64] [vs2015/vs2017] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-js-ci] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [no-cctest]
+echo vcbuild.bat [debug/release] [msi] [test/test-ci/test-all/test-addons/test-addons-napi/test-internet/test-pummel/test-simple/test-message/test-gc/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [noetw] [noperfctr] [licensetf] [sign] [ia32/x86/x64] [vs2017] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-js-ci] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [no-cctest]
echo Examples:
echo vcbuild.bat : builds release build
echo vcbuild.bat debug : builds debug build