-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathgstreamer.prf
51 lines (44 loc) · 1.71 KB
/
gstreamer.prf
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
# =============================================================
# This optional feature file adds GStreamer dependencies
# =============================================================
unix {
CONFIG += link_pkgconfig
PKGCONFIG += gstreamer-1.0
} else {
GSTREAMER_PATH = $$clean_path($$(GSTREAMER_1_0_ROOT_X86))
if(isEmpty(GSTREAMER_PATH)) {
GSTREAMER_PATH = $$clean_path($$(GSTREAMER_1_0_ROOT_X86_64))
}
if(isEmpty(GSTREAMER_PATH)|!exists($${GSTREAMER_PATH})) {
text = "\"GStreamer\" not found: to be able to use the debugger, don't forget to add"
text = "$${text} \"%GSTREAMER_1_0_ROOT_X86_64%\bin\" in your PATH"
!build:warning("$${text}")
} else {
DEFINES += GST_USE_UNSTABLE_API
GST_INCLUDEPATH = \
$$clean_path($$GSTREAMER_PATH/include/gstreamer-1.0) \
$$clean_path($$GSTREAMER_PATH/include/glib-2.0) \
$$clean_path($$GSTREAMER_PATH/lib/glib-2.0/include)
*-g++ {
# To avoid warnings due to GStreamer, use -isystem automatically for any GStreamer system header:
for(somelib, $$list($$GST_INCLUDEPATH)) {
QMAKE_CXXFLAGS += -isystem $${somelib}
}
} else {
INCLUDEPATH += $${GST_INCLUDEPATH}
}
unset(GST_INCLUDEPATH)
win32-g++ {
LIBS += \
$${GSTREAMER_PATH}/lib/glib-2.0.lib \
$${GSTREAMER_PATH}/lib/gobject-2.0.lib \
$${GSTREAMER_PATH}/lib/gstreamer-1.0.lib
} else {
LIBS += \
-L$$GSTREAMER_PATH/lib \
-lglib-2.0 \
-lgobject-2.0 \
-lgstreamer-1.0
}
} # GStreamer found
}