forked from noodlefrenzy/node-qpid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
51 lines (50 loc) · 1.3 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
{
"targets": [
{
"target_name": "cproton",
"type": "loadable_module",
"sources": [ "src/cproton.cc", "src/sending.cc", "src/messenger.cc", "src/protondata.cc" ],
'conditions': [
['OS=="linux"', {
"link_settings" : {
"libraries": [
'-L/usr/local/qpid-proton/lib',
'-lqpid-proton'
],
},
"include_dirs": [
'/usr/include/nodejs/src',
'/usr/include/nodejs/deps/uv/include/',
'/usr/include/nodejs/deps/v8/include/',
'/usr/local/qpid-proton/include'
],
"cflags": [
"-fPIC"
]
}],
['OS=="mac"', {
'defines!': [
'PLATFORM="mac"',
],
'defines': [
# we need to use node's preferred "darwin" rather than gyp's preferred "mac"
'PLATFORM="darwin"',
],
"link_settings" : {
"libraries": [
'-lqpid-proton',
'-L/usr/local/qpid-proton/lib64'
],
},
"include_dirs": [
'/usr/local/qpid-proton/include',
'/usr/local/node/include/node',
],
"cflags": [
"-fPIC"
]
}]
]
}
]
}