-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
84 lines (84 loc) · 3.25 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"targets": [{
"target_name" : "beamcoder",
"conditions": [
['OS=="linux"', {
"sources" : [ "src/beamcoder.cc", "src/beamcoder_util.cc",
"src/governor.cc", "src/demux.cc",
"src/decode.cc", "src/filter.cc",
"src/encode.cc", "src/mux.cc",
"src/packet.cc", "src/frame.cc",
"src/codec_par.cc", "src/format.cc",
"src/codec.cc" ],
"include_dirs": [ "ffmpeg/include" ],
"defines": [
"__STDC_CONSTANT_MACROS"
],
"cflags_cc!": [
"-fno-rtti",
"-fno-exceptions"
],
"cflags_cc": [
"-std=c++11",
"-fexceptions"
],
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libavcodec.so.58",
"<@(module_root_dir)/build/Release/libavdevice.so.58",
"<@(module_root_dir)/build/Release/libavfilter.so.7",
"<@(module_root_dir)/build/Release/libavformat.so.58",
"<@(module_root_dir)/build/Release/libavutil.so.56",
"<@(module_root_dir)/build/Release/libgcrypt.so.11",
"<@(module_root_dir)/build/Release/libgnutls.so.26",
"<@(module_root_dir)/build/Release/libmp3lame.so.0",
"<@(module_root_dir)/build/Release/libopenjp2.so.7",
"<@(module_root_dir)/build/Release/libopus.so.0",
"<@(module_root_dir)/build/Release/libp11-kit.so.0",
"<@(module_root_dir)/build/Release/libpostproc.so.55",
"<@(module_root_dir)/build/Release/libsoxr.so.0",
"<@(module_root_dir)/build/Release/libswresample.so.3",
"<@(module_root_dir)/build/Release/libswscale.so.5",
"<@(module_root_dir)/build/Release/libtheoradec.so.1",
"<@(module_root_dir)/build/Release/libtheoraenc.so.1",
"<@(module_root_dir)/build/Release/libx264.so.157",
"<@(module_root_dir)/build/Release/libx265.so.172",
"<@(module_root_dir)/build/Release/libxvidcore.so.4"
],
"ldflags": [
"-L<@(module_root_dir)/build/Release",
"-Wl,-rpath,'$$ORIGIN'",
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"ffmpeg/lib/libavcodec.so.58",
"ffmpeg/lib/libavdevice.so.58",
"ffmpeg/lib/libavfilter.so.7",
"ffmpeg/lib/libavformat.so.58",
"ffmpeg/lib/libavutil.so.56",
"ffmpeg/lib/libgcrypt.so.11",
"ffmpeg/lib/libgnutls.so.26",
"ffmpeg/lib/libmp3lame.so.0",
"ffmpeg/lib/libopenjp2.so.7",
"ffmpeg/lib/libopus.so.0",
"ffmpeg/lib/libp11-kit.so.0",
"ffmpeg/lib/libpostproc.so.55",
"ffmpeg/lib/libsoxr.so.0",
"ffmpeg/lib/libswresample.so.3",
"ffmpeg/lib/libswscale.so.5",
"ffmpeg/lib/libtheoradec.so.1",
"ffmpeg/lib/libtheoraenc.so.1",
"ffmpeg/lib/libx264.so.157",
"ffmpeg/lib/libx265.so.172",
"ffmpeg/lib/libxvidcore.so.4"
]
}
]
}
]
]
}]
}