-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
45 lines (45 loc) · 1.27 KB
/
binding.gyp
File metadata and controls
45 lines (45 loc) · 1.27 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
{
"targets": [
{
"target_name": "addon",
"sources": [
"ConfigLoader.cc",
"GZNode.cc",
"OgreMaterialParser.cc"
],
'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
'cflags!': [ '-fno-exceptions' ],
"conditions": [
['OS=="linux"', {
'cflags': [
'<!@(pkg-config --cflags gazebo jansson protobuf)'
],
'ldflags': [
'<!@(pkg-config --libs-only-L --libs-only-other gazebo jansson protobuf)'
],
'libraries': [
'<!@(pkg-config --libs-only-l gazebo jansson protobuf)'
]
}],
['OS=="mac"', {
'libraries': [
'<!@(pkg-config --libs-only-l gazebo jansson protobuf)'
],
'xcode_settings' : {
'GCC_ENABLE_CPP_RTTI': 'YES',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_CFLAGS': [
'<!@(pkg-config --cflags gazebo jansson protobuf)'
],
'OTHER_CPLUSPLUSFLAGS': [
'<!@(pkg-config --cflags gazebo jansson protobuf)'
],
'OTHER_LDFLAGS': [
'<!@(pkg-config --libs-only-L --libs-only-other gazebo jansson protobuf)'
]
}
}]
]
}
]
}