mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
configure: use full path in node_lib_file GYP var
Set path to node lib in `$(Configuration)` dir when `--nodedir` option is supplied, otherwise use value of `target_arch` variable. PR-URL: https://github.com/nodejs/node-gyp/pull/964 Reviewed-By: João Reis <reis@janeasystems.com>
This commit is contained in:
parent
0913b2dd99
commit
386746c7d1
2 changed files with 5 additions and 2 deletions
|
@ -109,7 +109,7 @@
|
|||
'-luuid.lib',
|
||||
'-lodbc32.lib',
|
||||
'-lDelayImp.lib',
|
||||
'-l"<(node_root_dir)/<(target_arch)/<(node_lib_file)"'
|
||||
'-l"<(node_lib_file)"'
|
||||
],
|
||||
'msvs_disabled_warnings': [
|
||||
# warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
|
||||
|
|
|
@ -283,6 +283,9 @@ function configure (gyp, argv, callback) {
|
|||
output_dir = buildDir
|
||||
}
|
||||
var nodeGypDir = path.resolve(__dirname, '..')
|
||||
var nodeLibFile = path.join(nodeDir,
|
||||
!gyp.opts.nodedir ? '<(target_arch)' : '$(Configuration)',
|
||||
release.name + '.lib')
|
||||
|
||||
argv.push('-I', addon_gypi)
|
||||
argv.push('-I', common_gypi)
|
||||
|
@ -293,7 +296,7 @@ function configure (gyp, argv, callback) {
|
|||
argv.push('-Dnode_exp_file=' + node_exp_file)
|
||||
}
|
||||
argv.push('-Dnode_gyp_dir=' + nodeGypDir)
|
||||
argv.push('-Dnode_lib_file=' + release.name + '.lib')
|
||||
argv.push('-Dnode_lib_file=' + nodeLibFile)
|
||||
argv.push('-Dmodule_root_dir=' + process.cwd())
|
||||
argv.push('-Dnode_engine=' +
|
||||
(gyp.opts.node_engine || process.jsEngine || 'v8'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue