Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca5c4c9 commit 3213de0Copy full SHA for 3213de0
deps/crates/crates.gyp
@@ -1,6 +1,7 @@
1
{
2
'variables': {
3
'cargo_vendor_dir': './vendor',
4
+ 'node_crates_libpath': '<(SHARED_INTERMEDIATE_DIR)/>(cargo_build_mode)/<(STATIC_LIB_PREFIX)node_crates<(STATIC_LIB_SUFFIX)',
5
},
6
'targets': [
7
@@ -14,7 +15,15 @@
14
15
],
16
'link_settings': {
17
'libraries': [
- '<(SHARED_INTERMEDIATE_DIR)/>(cargo_build_mode)/libnode_crates.a',
18
+ '<(node_crates_libpath)',
19
+ ],
20
+ 'conditions': [
21
+ ['OS=="win"', {
22
+ 'libraries': [
23
+ '-lntdll',
24
+ '-luserenv'
25
26
+ }],
27
28
29
'actions': [
@@ -24,7 +33,7 @@
33
'<@(_sources)'
34
35
'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/>(cargo_build_mode)/libnode_crates.a'
36
+ '<(node_crates_libpath)'
37
38
'action': [
30
39
'cargo',
0 commit comments