aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/GStreamer010Plugin.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/GStreamer010Plugin.cmake')
-rw-r--r--linden/indra/cmake/GStreamer010Plugin.cmake66
1 files changed, 66 insertions, 0 deletions
diff --git a/linden/indra/cmake/GStreamer010Plugin.cmake b/linden/indra/cmake/GStreamer010Plugin.cmake
new file mode 100644
index 0000000..90ed35c
--- /dev/null
+++ b/linden/indra/cmake/GStreamer010Plugin.cmake
@@ -0,0 +1,66 @@
1# -*- cmake -*-
2include(Prebuilt)
3
4if (STANDALONE)
5 include(FindPkgConfig)
6
7 pkg_check_modules(GSTREAMER010 REQUIRED gstreamer-0.10)
8 pkg_check_modules(GSTREAMER010_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10)
9
10else (STANDALONE)
11
12 # Possibly libxml and glib should have their own .cmake file instead...
13 use_prebuilt_binary(glib) # gstreamer needs glib
14 use_prebuilt_binary(libxml)
15 use_prebuilt_binary(gstreamer)
16 set(GSTREAMER010_FOUND ON FORCE BOOL)
17 set(GSTREAMER010_PLUGINS_BASE_FOUND ON FORCE BOOL)
18 set(GSTREAMER010_INCLUDE_DIRS
19 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10
20 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
21 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
22 )
23
24endif (STANDALONE)
25
26if (WINDOWS)
27 # We don't need to explicitly link against gstreamer itself, because
28 # LLMediaImplGStreamer probes for the system's copy at runtime.
29 set(GSTREAMER010_LIBRARIES
30 libgstvideo
31 libgstaudio
32 libgstbase-0.10
33 libgstreamer-0.10
34 gobject-2.0
35 gmodule-2.0
36 gthread-2.0
37 glib-2.0
38 )
39else (WINDOWS)
40 # We don't need to explicitly link against gstreamer itself, because
41 # LLMediaImplGStreamer probes for the system's copy at runtime.
42 set(GSTREAMER010_LIBRARIES
43 gstvideo-0.10
44 gstaudio-0.10
45 gstbase-0.10
46 gstreamer-0.10
47 gobject-2.0
48 gmodule-2.0
49 dl
50 gthread-2.0
51 rt
52 glib-2.0
53 )
54
55
56endif (WINDOWS)
57
58
59if (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND)
60 set(GSTREAMER010 ON CACHE BOOL "Build with GStreamer-0.10 streaming media support.")
61 add_definitions(-DLL_GSTREAMER010_ENABLED=1)
62endif (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND)
63
64
65
66