-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
30 lines (30 loc) · 763 Bytes
/
binding.gyp
File metadata and controls
30 lines (30 loc) · 763 Bytes
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
{
"targets": [
{
"target_name": "rohcAddon",
"sources": [
"src/cpp/rohc-napi.cpp",
"src/cpp/njsrohc.cpp"
],
'cflags!': [ '-fno-exceptions', '--std=c++17', '-Wno-stringop-truncation' ],
'cflags_cc!': [ '-fno-exceptions', '--std=c++17', '-Wno-stringop-truncation' ],
"cflags+": [
"-fvisibility=hidden",
'--std=c++17',
'-Wno-stringop-truncation'
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
],
'libraries': [
"-L/usr/local/lib",
"-lrohc"
],
"defines": [
"NODE_ADDON_API_DISABLE_DEPRECATED",
"NAPI_VERSION=<(napi_build_version)",
"NAPI_CPP_EXCEPTIONS"
]
}
]
}