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.cmake62
1 files changed, 54 insertions, 8 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake
index 4369445..fc256a8 100644
--- a/linden/indra/cmake/GStreamer.cmake
+++ b/linden/indra/cmake/GStreamer.cmake
@@ -1,17 +1,61 @@
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 set(GSTREAMER_FOUND ON FORCE BOOL)
14 set(GSTREAMER_INCLUDE_DIRS
15 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib
16 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gio
17 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gobject
18 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
19 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/iconv
20 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gst
21 )
22
23 set(GSTREAMER_LIBRARIES
24 glib-2.0
25 gio-2.0
26 gmodule-2.0
27 gobject-2.0
28 gthread-2.0
29 libgstvideo-0.10
30 libgsttag-0.10
31 libgstsdp-0.10
32 libgstrtsp-0.10
33 libgstrtp-0.10
34 libgstriff-0.10
35 libgstreamer-0.10
36 libgstpbutils-0.10
37 libgstnetbuffer-0.10
38 libgstnet-0.10
39 libgstinterfaces-0.10
40 libgstdshow-0.10
41 libgstdataprotocol-0.10
42 libgstcontroller-0.10
43 libgstbase-0.10
44 libgstaudio-0.10
45 libgstapp-0.10
46 libxml2
47 libxml2_a
48 libxml2_a_dll
49 iconv
50 iconv_a
51 )
52
53else (WINDOWS)
54
55 include(FindPkgConfig)
56
57 pkg_check_modules(GSTREAMER REQUIRED gstreamer-0.10)
58 pkg_check_modules(GSTREAMER_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10)
15 set(GSTREAMER_INCLUDE_DIRS 59 set(GSTREAMER_INCLUDE_DIRS
16 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10 60 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10
17 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 61 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
@@ -19,6 +63,7 @@ elseif (LINUX)
19 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/gobject 63 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/gobject
20 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 64 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
21 ) 65 )
66
22 # We don't need to explicitly link against gstreamer itself, because 67 # We don't need to explicitly link against gstreamer itself, because
23 # LLMediaImplGStreamer probes for the system's copy at runtime. 68 # LLMediaImplGStreamer probes for the system's copy at runtime.
24 set(GSTREAMER_LIBRARIES 69 set(GSTREAMER_LIBRARIES
@@ -29,7 +74,8 @@ elseif (LINUX)
29 rt 74 rt
30 glib-2.0 75 glib-2.0
31 ) 76 )
32endif (STANDALONE) 77
78endif (WINDOWS)
33 79
34if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) 80if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND)
35 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") 81 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.")