aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/GStreamer.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/GStreamer.cmake')
-rw-r--r--linden/indra/cmake/GStreamer.cmake110
1 files changed, 94 insertions, 16 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake
index 10d5207..880233e 100644
--- a/linden/indra/cmake/GStreamer.cmake
+++ b/linden/indra/cmake/GStreamer.cmake
@@ -1,33 +1,111 @@
1# -*- cmake -*- 1# -*- cmake -*-
2include(Prebuilt) 2include(Prebuilt)
3 3
4if (STANDALONE)
5 include(FindPkgConfig)
6
7 pkg_check_modules(GSTREAMER REQUIRED gstreamer-0.10)
8 pkg_check_modules(GSTREAMER_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10)
9elseif (LINUX)
10 use_prebuilt_binary(gstreamer)
11 # possible libxml should have its own .cmake file instead 4 # possible libxml should have its own .cmake file instead
12 use_prebuilt_binary(libxml) 5 use_prebuilt_binary(libxml)
13 set(GSTREAMER_FOUND ON FORCE BOOL) 6 set(GSTREAMER_FOUND ON FORCE BOOL)
14 set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) 7 set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL)
8 use_prebuilt_binary(gstreamer)
9
10if (WINDOWS)
11
12 use_prebuilt_binary(libxml)
13 use_prebuilt_binary(iconv)
14 use_prebuilt_binary(gstreamer-plugins)
15 set(GSTREAMER_FOUND ON FORCE BOOL)
15 set(GSTREAMER_INCLUDE_DIRS 16 set(GSTREAMER_INCLUDE_DIRS
16 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10 17 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib
17 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 18 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gio
19 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gobject
18 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 20 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
21 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/iconv
22 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gst
19 ) 23 )
20 # We don't need to explicitly link against gstreamer itself, because 24
21 # LLMediaImplGStreamer probes for the system's copy at runtime.
22 set(GSTREAMER_LIBRARIES 25 set(GSTREAMER_LIBRARIES
23 gobject-2.0 26 glib-2.0
27 gio-2.0
24 gmodule-2.0 28 gmodule-2.0
25 dl 29 gobject-2.0
26 gthread-2.0 30 gthread-2.0
27 rt 31 libgstvideo-0.10
28 glib-2.0 32 libgsttag-0.10
33 libgstsdp-0.10
34 libgstrtsp-0.10
35 libgstrtp-0.10
36 libgstriff-0.10
37 libgstreamer-0.10
38 libgstpbutils-0.10
39 libgstnetbuffer-0.10
40 libgstnet-0.10
41 libgstinterfaces-0.10
42 libgstdshow-0.10
43 libgstdataprotocol-0.10
44 libgstcontroller-0.10
45 libgstbase-0.10
46 libgstaudio-0.10
47 libgstapp-0.10
48 libxml2
49 libxml2_a
50 libxml2_a_dll
51 iconv
52 iconv_a
29 ) 53 )
30endif (STANDALONE) 54
55else (WINDOWS)
56
57 set(GSTREAMER_INCLUDE_DIRS
58 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10
59 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
60 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/glib
61 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/gobject
62 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
63 )
64
65 if (DARWIN)
66
67 find_library( XML2_LIB
68 NAMES xml2.2
69 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
70 NO_DEFAULT_PATH
71 DOC "libxml2 dynamic library / shared object" )
72
73 if (NOT XML2_LIB)
74 message(FATAL_ERROR "libxml2 not found!")
75 else (NOT XML2_LIB)
76 #message(STATUS "libxml2 found: ${XML2_LIB}")
77 endif (NOT XML2_LIB)
78
79 set(GSTREAMER_LIBRARIES
80 gstvideo-0.10
81 gstaudio-0.10
82 gstbase-0.10
83 gstreamer-0.10
84 gobject-2.0
85 gmodule-2.0
86 gthread-2.0
87 glib-2.0
88 ${XML2_LIB}
89 )
90
91 else (DARWIN)
92
93 set(GSTREAMER_LIBRARIES
94 gstvideo-0.10
95 gstaudio-0.10
96 gstbase-0.10
97 gstreamer-0.10
98 gobject-2.0
99 gmodule-2.0
100 dl
101 gthread-2.0
102 rt
103 glib-2.0
104 )
105
106 endif (DARWIN)
107
108endif (WINDOWS)
31 109
32if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) 110if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND)
33 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") 111 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.")