-
Notifications
You must be signed in to change notification settings - Fork 39
/
binding.gyp
62 lines (62 loc) · 1.28 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
'targets': [
{
'target_name': 'ftdi',
'sources':
[
'src/ftdi_device.cc',
'src/ftdi_driver.cc'
],
'include_dirs+':
[
'src/',
"<!(node -e \"require('nan')\")"
],
'conditions':
[
['OS == "win"',
{
'include_dirs+':
[
'lib/'
],
'link_settings':
{
"conditions" :
[
["target_arch=='ia32'",
{
'libraries':
[
'-l<(module_root_dir)/lib/i386/ftd2xx.lib'
]
}
],
["target_arch=='x64'", {
'libraries': [
'-l<(module_root_dir)/lib/amd64/ftd2xx.lib'
]
}]
]
}
}],
['OS != "win"',
{
'include_dirs+': [
'/usr/local/include',
'/usr/local/include/libftd2xx/'
],
'ldflags': [
'-Wl,-Map=output.map',
],
'link_settings': {
'libraries': [
'-lftd2xx'
]
}
}
]
],
}
]
}