forked from schakko/node-usb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
53 lines (53 loc) · 1.04 KB
/
binding.gyp
File metadata and controls
53 lines (53 loc) · 1.04 KB
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
{
'targets': [
{
'target_name': 'usb_bindings',
'sources': [
'./src/node_usb.cc',
'./src/bindings.cc',
'./src/usb.cc',
'./src/device.cc',
'./src/interface.cc',
'./src/endpoint.cc',
'./src/transfer.cc',
'./src/stream.cc',
],
'cflags': [
'-O3',
'-Wall',
'-Werror',
],
'cflags_cc': [
'-O3',
'-Wall',
'-Werror',
'-std=gnu++0x'
],
'defines': [
'_FILE_OFFSET_BITS=64',
'_LARGEFILE_SOURCE',
],
'include_dirs+': [
'src/'
],
'link_settings': {
'conditions' : [
['OS=="linux"',
{
'libraries': [
'-lusb-1.0'
]
}
],
['OS=="mac"',
{
'libraries': [
'-lusb-1.0'
]
}
]
]
}
}
]
}