write('config.mk',
'# Do not edit. Generated by the configure script.\n' + config)
+gyp_args = [sys.executable, 'tools/gyp_node.py']
+
if options.use_ninja:
- gyp_args = ['-f', 'ninja-' + flavor]
+ gyp_args += ['-f', 'ninja-' + flavor]
elif options.use_xcode:
- gyp_args = ['-f', 'xcode']
+ gyp_args += ['-f', 'xcode']
elif flavor == 'win':
- gyp_args = ['-f', 'msvs', '-G', 'msvs_version=auto']
+ gyp_args += ['-f', 'msvs', '-G', 'msvs_version=auto']
else:
- gyp_args = ['-f', 'make-' + flavor]
+ gyp_args += ['-f', 'make-' + flavor]
+
+gyp_args += args
-subprocess.call([sys.executable, 'tools/gyp_node.py'] + gyp_args)
+subprocess.call(gyp_args)