-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
57 lines (57 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"targets": [
{
"target_name": "boram-mpv-player",
"win_delay_load_hook": "false",
"sources": ["src/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": "checklib",
"type": "executable",
"sources": ["src/checklib.c"],
"libraries": ["-ldl"],
"ldflags": ["-static-libstdc++"],
},
],
}],
],
}