-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
73 lines (73 loc) · 1.73 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
{
"targets": [
{
"target_name": "mpvjs",
"sources": [
"module/main.cpp", "module/mpv_player.cpp", "module/helpers.cpp", "module/mpv_node.cpp"
],
"dependencies": [ "action_before_build" ],
"ldflags": [ "-Wl,-Bsymbolic" ],
"cxxflags": [ "-fexceptions" ],
"conditions": [
["OS=='win'", {
"include_dirs": [ "./deps" ],
"libraries": [
"-l../deps/win_libs/mpv-1"
]
}, "OS=='linux'", {
"libraries": [
"-L../deps/mpv-build/mpv/build/",
"-L../deps/mpv-build/build_libs/lib/",
"-l:libmpv.a",
"-l:libavcodec.a",
"-l:libavformat.a",
"-l:libavutil.a",
"-l:libavfilter.a",
"-l:libavdevice.a",
"-l:libswscale.a",
"-l:libswresample.a",
"-l:libass.a",
"-lpulse",
"-lfribidi"
]
}]
]
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "mpvjs" ],
"copies": [
{
"files": [ "build/Release/mpvjs.node" ],
"destination": "module_dist"
}
],
"conditions": [
["OS=='win'", {
"copies": [
{
"files": [ "deps/win_libs/mpv-1.dll" ],
"destination": "module_dist"
}
]
}]
]
},
{
"target_name": "action_before_build",
"type": "none",
"actions": [
{
"action_name": "resolve_deps",
"inputs": [ ],
"outputs": [ "./deps" ],
"action": [
"node",
"./resolve-deps.js"
]
}
]
}
]
}