forked from dturing/node-gstreamer-superficial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
55 lines (55 loc) · 1.8 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
{
"targets": [
{
"target_name": "gstreamer-superficial",
"sources": [ "gstreamer.cpp", "GLibHelpers.cpp", "GObjectWrap.cpp", "Pipeline.cpp" ],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"cflags": [
"-Wno-cast-function-type"
],
"conditions" : [
["OS=='linux'", {
"include_dirs": [
'<!@(pkg-config gstreamer-1.0 --cflags-only-I | sed s/-I//g)',
'<!@(pkg-config gstreamer-app-1.0 --cflags-only-I | sed s/-I//g)',
'<!@(pkg-config gstreamer-video-1.0 --cflags-only-I | sed s/-I//g)'
],
"libraries": [
'<!@(pkg-config gstreamer-1.0 --libs)',
'<!@(pkg-config gstreamer-app-1.0 --libs)',
'<!@(pkg-config gstreamer-video-1.0 --libs)'
]
}],
["OS=='mac'", {
"include_dirs": [
'<!@(pkg-config gstreamer-1.0 --cflags-only-I | sed s/-I//g)',
'<!@(pkg-config gstreamer-app-1.0 --cflags-only-I | sed s/-I//g)',
'<!@(pkg-config gstreamer-video-1.0 --cflags-only-I | sed s/-I//g)'
],
"libraries": [
'<!@(pkg-config gstreamer-1.0 --libs)',
'<!@(pkg-config gstreamer-app-1.0 --libs)',
'<!@(pkg-config gstreamer-video-1.0 --libs)'
]
}],
["OS=='win'", {
"include_dirs": [
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)include\gstreamer-1.0",
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)lib\glib-2.0\include",
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)include\glib-2.0",
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)include\libxml2"
],
"libraries": [
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)lib\gstreamer-1.0.lib",
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)lib\gstapp-1.0.lib",
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)lib\gstvideo-1.0.lib",
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)lib\gobject-2.0.lib",
"<!(echo %GSTREAMER_1_0_ROOT_MSVC_X86_64%)lib\glib-2.0.lib"
]
}]
]
}
]
}