@@ -19,7 +19,7 @@ index edaf6ee..e34ebc5 100644
19
19
if target_arch == 'x86':
20
20
+ if self.short_name == '2017':
21
21
+ return [os.path.normpath(
22
- + ps .path.join(self.path, 'Common7/Tools/VsDevCmd.bat')), '/no_logo',
22
+ + os .path.join(self.path, 'Common7/Tools/VsDevCmd.bat')), '/no_logo',
23
23
+ '/arch=x86']
24
24
if self.short_name >= '2013' and self.short_name[-1] != 'e' and (
25
25
os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or
@@ -30,7 +30,7 @@ index edaf6ee..e34ebc5 100644
30
30
assert target_arch == 'x64'
31
31
+ if self.short_name == '2017':
32
32
+ return [os.path.normpath(
33
- + ps .path.join(self.path, 'Common7/Tools/VsDevCmd.bat')), '/no_logo',
33
+ + os .path.join(self.path, 'Common7/Tools/VsDevCmd.bat')), '/no_logo',
34
34
+ '/arch=x64']
35
35
arg = 'x86_amd64'
36
36
# Use the 64-on-64 compiler if we're not using an express
@@ -68,7 +68,7 @@ index edaf6ee..e34ebc5 100644
68
68
versions = []
69
69
for version in versions_to_check:
70
70
@@ -395,13 +414,18 @@ def _DetectVisualStudioVersions(versions_to_check, force_express):
71
-
71
+
72
72
# The old method above does not work when only SDK is installed.
73
73
keys = [r'HKLM\Software\Microsoft\VisualStudio\SxS\VC7',
74
74
- r'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7']
@@ -87,7 +87,7 @@ index edaf6ee..e34ebc5 100644
87
87
+ elif version != '14.0': # There is no Express edition for 2015.
88
88
versions.append(_CreateVersion(version_to_year[version] + 'e',
89
89
os.path.join(path, '..'), sdk_based=True))
90
-
90
+
91
91
@@ -420,7 +444,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True):
92
92
if version == 'auto':
93
93
version = os.environ.get('GYP_MSVS_VERSION', 'auto')
@@ -111,8 +111,8 @@ index 25eb58e..d6a8ec7 100644
111
111
+++ b/gyp/pylib/gyp/generator/msvs.py
112
112
@@ -2664,7 +2664,7 @@ def _GetMSBuildProjectConfigurations(configurations):
113
113
return [group]
114
-
115
-
114
+
115
+
116
116
- def _GetMSBuildGlobalProperties(spec, guid, gyp_file_name):
117
117
+ def _GetMSBuildGlobalProperties(spec, version, guid, gyp_file_name):
118
118
namespace = os.path.splitext(gyp_file_name)[0]
@@ -127,19 +127,19 @@ index 25eb58e..d6a8ec7 100644
127
127
+ vs2017_sdk = os.environ.get('vs2017_sdk', vs2017_sdk)
128
128
+ if vs2017_sdk:
129
129
+ msvs_windows_sdk_version = vs2017_sdk
130
-
130
+
131
131
if platform_name == 'ARM':
132
132
properties[0].append(['WindowsSDKDesktopARMSupport', 'true'])
133
133
@@ -3366,7 +3371,8 @@ def _GenerateMSBuildProject(project, options, version, generator_flags):
134
134
}]
135
-
135
+
136
136
content += _GetMSBuildProjectConfigurations(configurations)
137
137
- content += _GetMSBuildGlobalProperties(spec, project.guid, project_file_name)
138
138
+ content += _GetMSBuildGlobalProperties(spec, version, project.guid,
139
139
+ project_file_name)
140
140
content += import_default_section
141
141
content += _GetMSBuildConfigurationDetails(spec, project.build_file)
142
142
if spec.get('msvs_enable_winphone'):
143
- - -
143
+ - -
144
144
2.11.0.windows.1
145
145
0 commit comments