-
Notifications
You must be signed in to change notification settings - Fork 45
/
binding.gyp
39 lines (39 loc) · 912 Bytes
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
'targets': [
{
'target_name': 'cap',
'sources': [
'src/binding.cc',
],
'include_dirs': [
"<!(node -e \"require('nan')\")",
],
'conditions': [
[ 'OS=="win"', {
'include_dirs': [
'deps/winpcap/Include',
],
'defines': [
'WPCAP',
],
'conditions': [
[ 'target_arch=="ia32"', {
'link_settings': {
'libraries': ['ws2_32.lib', '<(PRODUCT_DIR)/../../deps/winpcap/Lib/wpcap.lib'],
},
}, {
'link_settings': {
'libraries': ['ws2_32.lib', '<(PRODUCT_DIR)/../../deps/winpcap/Lib/x64/wpcap.lib'],
},
}],
],
}, {
# POSIX
'link_settings': {
'libraries': ['-lpcap'],
},
}],
],
},
],
}