-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
34 lines (34 loc) · 1.26 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
{
"targets": [
{
"target_name": "binding",
"sources": [
"src/binding.cpp",
"src/CameraInfo.cpp",
"src/Plane.cpp",
"src/SpatialStructure.cpp",
"src/Sphere.cpp"
],
'defines': [
'<!@(node -v |grep "v[^0]" > /dev/null && echo "__NODE_GE_V4__" || true)',
'<!@(node -v |grep "v0\.1[12]" > /dev/null && echo "__NODE_V0_11_OR_12__" || true)',
'<!@(command -v iojs > /dev/null && echo "__NODE_V0_11_OR_12__" || true)',
'<!@(node -v |grep "v0\.10" > /dev/null && echo "__NODE_V0_10__" || true)',
],
"include_dirs": [
"headers",
"<!(node -e \"require('nan')\")"
],
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"],
"xcode_settings": {
"GCC_ENABLE_CPP_RTTI": "YES",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"OTHER_CPLUSPLUSFLAGS":["-stdlib=libc++"],
"OTHER_LDFLAGS":["-stdlib=libc++"],
"CLANG_CXX_LANGUAGE_STANDARD":"c++11",
"MACOSX_DEPLOYMENT_TARGET":"10.7"
}
}
]
}