-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
binding.gyp
76 lines (76 loc) · 2.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
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
{
"variables": {
"prev_ffmpeg%": "0",
},
"targets": [
{
"target_name": "boram",
"win_delay_load_hook": "false",
"sources": ["src/mpv/interop.cc"],
"libraries": ["-lppapi", "-lppapi_cpp", "-lppapi_gles2"],
"conditions": [
["OS=='win'", {
"include_dirs": [
"C:/nacl_sdk/pepper_49/include",
"C:/mingw/local64/include",
],
"libraries": ["-llibmpv.dll.a"],
"conditions": [
["target_arch=='ia32'", {
"library_dirs": [
"C:/nacl_sdk/pepper_49/lib/win_x86_32_host/Release",
"C:/mingw/local32/lib",
],
}, "target_arch=='x64'", {
"library_dirs": [
"C:/nacl_sdk/pepper_49/lib/win_x86_64_host/Release",
"C:/mingw/local64/lib",
],
}],
],
}, {
"include_dirs": ["$(NACL_SDK_ROOT)/include"],
"libraries": ["-lmpv"],
"conditions": [
["OS=='linux'", {
"defines": ["_GLIBCXX_USE_CXX11_ABI=0"],
"library_dirs": ["$(NACL_SDK_ROOT)/lib/linux_host/Release"],
"ldflags": ["-static-libstdc++"],
}, "OS=='mac'", {
"library_dirs": ["$(NACL_SDK_ROOT)/lib/mac_host/Release"],
}],
],
}],
],
},
],
"conditions": [
["OS=='linux'", {
"targets": [
{
"target_name": "ffmpeg58",
"libraries": ["-l:libavformat.so.58"],
"ldflags": ["-static-libstdc++"],
},
{
"target_name": "checklib",
"type": "executable",
"sources": ["src/index/checklib.c"],
"libraries": ["-ldl"],
"ldflags": ["-static-libstdc++"],
},
],
"conditions": [
["prev_ffmpeg==1", {
"targets": [
{
"target_name": "ffmpeg57",
"libraries": ["-l:libavformat.so.57"],
"ldflags": ["-static-libstdc++"],
},
],
}],
],
}],
],
}