summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-05-22 18:36:00 -0400
committerMichaël Zasso <targos@protonmail.com>2019-06-04 18:45:00 +0200
commit018159d734edc4132c0ff6660cd509997ca366e5 (patch)
tree49e744af51cd37b9d9ae58fe8af765f9da06305d /tools
parent5101e4c2a2fd4f6b8b7e2f4920eb3605ecd35bb2 (diff)
downloadandroid-node-v8-018159d734edc4132c0ff6660cd509997ca366e5.tar.gz
android-node-v8-018159d734edc4132c0ff6660cd509997ca366e5.tar.bz2
android-node-v8-018159d734edc4132c0ff6660cd509997ca366e5.zip
tools,gyp: introduce MSVS 2019
Backport-PR-URL: https://github.com/nodejs/node/pull/28005 PR-URL: https://github.com/nodejs/node/pull/27375 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/gyp/pylib/gyp/MSVSVersion.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/gyp/pylib/gyp/MSVSVersion.py b/tools/gyp/pylib/gyp/MSVSVersion.py
index 44b958d5b3..48a3151f81 100644
--- a/tools/gyp/pylib/gyp/MSVSVersion.py
+++ b/tools/gyp/pylib/gyp/MSVSVersion.py
@@ -257,6 +257,16 @@ def _CreateVersion(name, path, sdk_based=False):
if path:
path = os.path.normpath(path)
versions = {
+ '2019': VisualStudioVersion('2019',
+ 'Visual Studio 2019',
+ solution_version='12.00',
+ project_version='16.0',
+ flat_sln=False,
+ uses_vcxproj=True,
+ path=path,
+ sdk_based=sdk_based,
+ default_toolset='v142',
+ compatible_sdks=['v8.1', 'v10.0']),
'2017': VisualStudioVersion('2017',
'Visual Studio 2017',
solution_version='12.00',
@@ -387,6 +397,7 @@ def _DetectVisualStudioVersions(versions_to_check, force_express):
2013(e) - Visual Studio 2013 (12)
2015 - Visual Studio 2015 (14)
2017 - Visual Studio 2017 (15)
+ 2019 - Visual Studio 2019 (16)
Where (e) is e for express editions of MSVS and blank otherwise.
"""
version_to_year = {
@@ -396,7 +407,8 @@ def _DetectVisualStudioVersions(versions_to_check, force_express):
'11.0': '2012',
'12.0': '2013',
'14.0': '2015',
- '15.0': '2017'
+ '15.0': '2017',
+ '16.0': '2019',
}
versions = []
for version in versions_to_check: