-
Notifications
You must be signed in to change notification settings - Fork 4
/
binding.gyp
40 lines (40 loc) · 1.17 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
{
"variables": {
"freenect_libname%":"freenect",
},
"targets": [{
"target_name": "nkinect",
"sources": [ "src/addon/nkinect.cc" ],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"cflags_cc": ["-fexceptions"],
"conditions": [
["OS == 'linux'", {
"include_dirs": [
"/usr/local/include/lib<(freenect_libname),"
"/usr/local/include/libusb-1.0" ],
"library_dirs": [
"/usr/local/lib"
],
# "libraries": [
# "lib<(freenect_libname).so"
# ],
"ldflags": [
"-l<(freenect_libname)",
]
}],
["OS == 'mac'", {
"include_dirs": [
"/usr/local/include/lib<(freenect_libname),"
"/usr/local/include/libusb-1.0" ],
"library_dirs": [
"/usr/local/lib"
],
"libraries": [
"lib<(freenect_libname).dylib"
]
}]
]
}]
}