aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/GStreamer.cmake
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/cmake/GStreamer.cmake
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/cmake/GStreamer.cmake')
-rw-r--r--linden/indra/cmake/GStreamer.cmake38
1 files changed, 38 insertions, 0 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake
new file mode 100644
index 0000000..10d5207
--- /dev/null
+++ b/linden/indra/cmake/GStreamer.cmake
@@ -0,0 +1,38 @@
1# -*- cmake -*-
2include(Prebuilt)
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
12 use_prebuilt_binary(libxml)
13 set(GSTREAMER_FOUND ON FORCE BOOL)
14 set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL)
15 set(GSTREAMER_INCLUDE_DIRS
16 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10
17 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
18 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
19 )
20 # We don't need to explicitly link against gstreamer itself, because
21 # LLMediaImplGStreamer probes for the system's copy at runtime.
22 set(GSTREAMER_LIBRARIES
23 gobject-2.0
24 gmodule-2.0
25 dl
26 gthread-2.0
27 rt
28 glib-2.0
29 )
30endif (STANDALONE)
31
32if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND)
33 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.")
34endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND)
35
36if (GSTREAMER)
37 add_definitions(-DLL_GSTREAMER_ENABLED=1)
38endif (GSTREAMER)