Skip to content

Commit f719066

Browse files
committed
windows build
1 parent 6e0220e commit f719066

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

libxtracfg/js/xtracfg-native-binding/binding.gyp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
'target_name': 'xtracfg-native',
55
'sources': [ 'src/xtracfg_lib.cc' ],
6-
'libraries': [ '<(local_prefix)/../c/build/libxtracfg.a' ],
76
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")", "<(local_prefix)/../c/include"],
87
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
98
'cflags': ['-fPIC'],
@@ -20,5 +19,19 @@
2019
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
2120
}
2221
}
22+
],
23+
'conditions': [
24+
['OS=="win"', {
25+
'targets': [
26+
{
27+
'libraries': [ '<(local_prefix)/../c/build/libxtracfg.lib' ]
28+
},
29+
],
30+
}, { # OS != "win"
31+
'targets': [
32+
{
33+
'libraries': [ '<(local_prefix)/../c/build/libxtracfg.a' ]
34+
},
35+
}],
2336
]
2437
}

0 commit comments

Comments
 (0)