node-srt/binding.gyp

44 lines
1.1 KiB
Text
Raw Permalink Normal View History

2020-06-13 00:57:57 +02:00
{
"targets": [{
"target_name": "node_srt",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"sources": [
"src/binding.cc",
"src/node-srt.cc"
],
2020-06-13 09:43:20 +02:00
"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"
]
}]
}],
2020-06-24 08:46:21 +02:00
[ 'OS!="win"', {
"libraries": [ "<(module_root_dir)/deps/build/lib/libsrt.a" ],
"include_dirs+": [
"deps/build/include"
]
}]
2020-06-13 00:57:57 +02:00
],
2020-06-13 09:43:20 +02:00
"dependencies": [
2020-06-13 00:57:57 +02:00
"<!(node -p \"require('node-addon-api').gyp\")"
],
2020-06-13 09:43:20 +02:00
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]
2020-06-13 00:57:57 +02:00
}]
2020-06-24 08:46:21 +02:00
}