-
Notifications
You must be signed in to change notification settings - Fork 33
/
binding.gyp
43 lines (43 loc) · 1.08 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
{
"targets": [{
"target_name": "node_srt",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"sources": [
"src/binding.cc",
"src/node-srt.cc"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"conditions": [
[ 'OS=="win"', {
"defines": [
"WIN32_LEAN_AND_MEAN"
],
"include_dirs+": [
"deps/srt/srtcore",
"deps/build",
"deps/srt/common"
],
"libraries": [ "<(module_root_dir)/deps/build/Release/srt.lib" ],
"copies": [{
"destination": "<(module_root_dir)/build/Release",
"files": [
"<(module_root_dir)/deps/build/Release/srt.dll"
]
}]
}],
[ 'OS!="win"', {
"libraries": [ "<(module_root_dir)/deps/build/lib/libsrt.a" ],
"include_dirs+": [
"deps/build/include"
]
}]
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]
}]
}