blob: 55a8f431baa4a20365e671b16b6cb2f942b5fc3d (
plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# -*- cmake -*-
include(Prebuilt)
# Maybe libxml and glib should have their own .cmake files
use_prebuilt_binary(libxml)
use_prebuilt_binary(glib)
set(GSTREAMER_FOUND ON FORCE BOOL)
set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL)
use_prebuilt_binary(gstreamer)
use_prebuilt_binary(gstreamer-plugins)
if (WINDOWS)
use_prebuilt_binary(iconv)
set(GSTREAMER_FOUND ON FORCE BOOL)
set(GSTREAMER_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gio
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gobject
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/iconv
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gst
)
set(GSTREAMER_LIBRARIES
glib-2.0
gio-2.0
gmodule-2.0
gobject-2.0
gthread-2.0
libgstvideo.lib
libgsttag.lib
libgstsdp.lib
libgstrtsp.lib
libgstrtp.lib
libgstriff.lib
libgstreamer-0.10.lib
libgstpbutils.lib
libgstnetbuffer.lib
libgstnet-0.10.lib
libgstinterfaces.lib
libgstdshow.lib
libgstdataprotocol-0.10.lib
libgstcontroller-0.10.lib
libgstbase-0.10.lib
libgstaudio.lib
libgstapp.lib
libxml2
libxml2_a
libxml2_a_dll
iconv
iconv_a
)
else (WINDOWS)
set(GSTREAMER_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/glib
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/gobject
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
)
if (DARWIN) # Mac
use_prebuilt_binary(flac)
use_prebuilt_binary(liboil)
use_prebuilt_binary(neon)
use_prebuilt_binary(theora)
find_library( XML2_LIB
NAMES xml2.2
PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
NO_DEFAULT_PATH
DOC "libxml2 dynamic library / shared object" )
if (NOT XML2_LIB)
message(FATAL_ERROR "libxml2 not found!")
else (NOT XML2_LIB)
#message(STATUS "libxml2 found: ${XML2_LIB}")
endif (NOT XML2_LIB)
set(GSTREAMER_LIBRARIES
gstvideo-0.10
gstaudio-0.10
gstbase-0.10
gstreamer-0.10
gobject-2.0
gmodule-2.0
gthread-2.0
glib-2.0
${XML2_LIB}
)
else (DARWIN) # Linux
use_prebuilt_binary(liboil)
use_prebuilt_binary(theora)
set(GSTREAMER_LIBRARIES
gstvideo-0.10
gstaudio-0.10
gstbase-0.10
gstreamer-0.10
gobject-2.0
gmodule-2.0
dl
gthread-2.0
rt
glib-2.0
)
endif (DARWIN)
endif (WINDOWS)
if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND)
set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.")
endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND)
if (GSTREAMER)
add_definitions(-DLL_GSTREAMER_ENABLED=1)
endif (GSTREAMER)
|