-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
40 lines (40 loc) · 1.03 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": {
"libPath": "<!(pwd)/build/Release"
},
"targets": [
{
"target_name": "nabto_client",
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")",
"./native_libraries/include"
],
"sources": [ "native_code/nabto_client.cc",
"native_code/node_nabto_client.cc",
"native_code/connection.cc",
"native_code/coap.cc",
"native_code/stream.cc",
"native_code/tcp_tunnel.cc" ],
'link_settings': {
'libraries': [
'-lnabto_client',
],
'library_dirs': [
'<@(libPath)',
]
},
"copies":[
{
'destination': './build/Release',
'files':[
'./native_libraries/lib/linux-x86_64/libnabto_client.so'
]
}
],
"ldflags": [
"-Wl,-rpath,<@(libPath)"
],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
}
]
}