summaryrefslogtreecommitdiff
path: root/tools/gyp
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-07-20 18:33:09 +0200
committerMichaël Zasso <targos@protonmail.com>2019-07-27 11:48:28 +0200
commit4e2d1a1433d17a3b327b76aebdb3e56e90c060b1 (patch)
tree3c736d4bb6cbad87c122bcfb76a78cd4a505649e /tools/gyp
parent147b9d9792fe5772b554f4be77305805f361a42d (diff)
downloadandroid-node-v8-4e2d1a1433d17a3b327b76aebdb3e56e90c060b1.tar.gz
android-node-v8-4e2d1a1433d17a3b327b76aebdb3e56e90c060b1.tar.bz2
android-node-v8-4e2d1a1433d17a3b327b76aebdb3e56e90c060b1.zip
build,tools: support building with Visual Studio 2019
Add a `vs2019` option to `vcbuild.bat` to use VS 2019 instead of VS 2017 PR-URL: https://github.com/nodejs/node/pull/28781 Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Diffstat (limited to 'tools/gyp')
-rw-r--r--tools/gyp/pylib/gyp/MSVSVersion.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gyp/pylib/gyp/MSVSVersion.py b/tools/gyp/pylib/gyp/MSVSVersion.py
index a207abaa18..f89f1d0fc2 100644
--- a/tools/gyp/pylib/gyp/MSVSVersion.py
+++ b/tools/gyp/pylib/gyp/MSVSVersion.py
@@ -475,7 +475,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True):
if version == 'auto':
version = os.environ.get('GYP_MSVS_VERSION', 'auto')
version_map = {
- 'auto': ('15.0', '14.0', '12.0', '10.0', '9.0', '8.0', '11.0'),
+ 'auto': ('16.0', '15.0', '14.0', '12.0', '10.0', '9.0', '8.0', '11.0'),
'2005': ('8.0',),
'2005e': ('8.0',),
'2008': ('9.0',),
@@ -488,6 +488,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True):
'2013e': ('12.0',),
'2015': ('14.0',),
'2017': ('15.0',),
+ '2019': ('16.0',),
}
override_path = os.environ.get('GYP_MSVS_OVERRIDE_PATH')
if override_path: