-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
37 lines (37 loc) · 1.62 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
{
"targets": [
{
"target_name": "openlive",
"sources": [
"src/conf/conf.cpp",
"src/base64/base64.cpp",
"src/x264Encoder/x264Encoder.cpp",
"src/capture_thread/capture_thread.cpp",
"src/encode_thread/encode_thread.cpp",
"src/main.cpp"
# "<!(ls src/*/*.cpp)",
# "<!(ls src/*.cpp)"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"src/"
],
"libraries": [
"-lstdc++",
"-lpthread",
"<!(pkg-config opencv4 --libs)",
"<!(pkg-config x264 --libs)"
],
"cflags": [
"-std=c++17 -fexceptions -frtti",
"<!(pkg-config opencv4 --cflags)",
"<!(pkg-config x264 --cflags)"
],
"cflags_cc": [
"-std=c++17 -fexceptions -frtti",
"<!(pkg-config opencv4 --cflags)",
"<!(pkg-config x264 --cflags)"
]
}
],
}