@@ -17,7 +17,7 @@ if (win) {
17
17
function configure ( gyp , argv , callback ) {
18
18
var python
19
19
var buildDir = path . resolve ( 'build' )
20
- var configNames = [ 'config.gypi' , 'common.gypi' ]
20
+ var configNames = [ 'config.gypi' , 'common.gypi' ]
21
21
var configs = [ ]
22
22
var nodeDir
23
23
var release = processRelease ( argv , gyp , process . version , process . release )
@@ -60,7 +60,7 @@ function configure (gyp, argv, callback) {
60
60
// into devdir. Otherwise only install if they're not already there.
61
61
gyp . opts . ensure = ! gyp . opts . tarball
62
62
63
- gyp . commands . install ( [ release . version ] , function ( err ) {
63
+ gyp . commands . install ( [ release . version ] , function ( err ) {
64
64
if ( err ) {
65
65
return callback ( err )
66
66
}
@@ -132,7 +132,7 @@ function configure (gyp, argv, callback) {
132
132
// set the target_arch variable
133
133
variables . target_arch = gyp . opts . arch || process . arch || 'ia32'
134
134
if ( variables . target_arch === 'arm64' ) {
135
- defaults [ ' msvs_configuration_platform' ] = 'ARM64'
135
+ defaults . msvs_configuration_platform = 'ARM64'
136
136
}
137
137
138
138
// set the node development directory
@@ -142,22 +142,22 @@ function configure (gyp, argv, callback) {
142
142
variables . standalone_static_library = gyp . opts . thin ? 0 : 1
143
143
144
144
if ( win ) {
145
- process . env [ ' GYP_MSVS_VERSION' ] = Math . min ( vsInfo . versionYear , 2015 )
146
- process . env [ ' GYP_MSVS_OVERRIDE_PATH' ] = vsInfo . path
147
- defaults [ ' msbuild_toolset' ] = vsInfo . toolset
145
+ process . env . GYP_MSVS_VERSION = Math . min ( vsInfo . versionYear , 2015 )
146
+ process . env . GYP_MSVS_OVERRIDE_PATH = vsInfo . path
147
+ defaults . msbuild_toolset = vsInfo . toolset
148
148
if ( vsInfo . sdk ) {
149
- defaults [ ' msvs_windows_target_platform_version' ] = vsInfo . sdk
149
+ defaults . msvs_windows_target_platform_version = vsInfo . sdk
150
150
}
151
151
if ( variables . target_arch === 'arm64' ) {
152
152
if ( vsInfo . versionMajor > 15 ||
153
153
( vsInfo . versionMajor === 15 && vsInfo . versionMajor >= 9 ) ) {
154
- defaults [ ' msvs_enable_marmasm' ] = 1
154
+ defaults . msvs_enable_marmasm = 1
155
155
} else {
156
156
log . warn ( 'Compiling ARM64 assembly is only available in\n' +
157
157
'Visual Studio 2017 version 15.9 and above' )
158
158
}
159
159
}
160
- variables [ ' msbuild_path' ] = vsInfo . msBuild
160
+ variables . msbuild_path = vsInfo . msBuild
161
161
}
162
162
163
163
// loop through the rest of the opts and add the unknown ones as variables.
@@ -190,7 +190,7 @@ function configure (gyp, argv, callback) {
190
190
var json = JSON . stringify ( config , boolsToString , 2 )
191
191
log . verbose ( 'build/' + configFilename , 'writing out config file: %s' , configPath )
192
192
configs . push ( configPath )
193
- fs . writeFile ( configPath , [ prefix , json , '' ] . join ( '\n' ) , findConfigs )
193
+ fs . writeFile ( configPath , [ prefix , json , '' ] . join ( '\n' ) , findConfigs )
194
194
}
195
195
196
196
function findConfigs ( err ) {
@@ -335,7 +335,7 @@ function configure (gyp, argv, callback) {
335
335
argv . unshift ( gypScript )
336
336
337
337
// make sure python uses files that came with this particular node package
338
- var pypath = [ path . join ( __dirname , '..' , 'gyp' , 'pylib' ) ]
338
+ var pypath = [ path . join ( __dirname , '..' , 'gyp' , 'pylib' ) ]
339
339
if ( process . env . PYTHONPATH ) {
340
340
pypath . push ( process . env . PYTHONPATH )
341
341
}
0 commit comments