mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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>
This commit is contained in:
1 parent
5101e4c2a2
commit
018159d734
1 file changed
+13
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user