PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/GStreamer010Plugin.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 38 lines | 29 code | 5 blank | 4 comment | 3 complexity | aff8671b35c2c20649542e413df09a30 MD5 | raw file
 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)
 9elseif (LINUX)
10  use_prebuilt_binary(gstreamer)
11  # possible libxml should have its own .cmake file instead
12  use_prebuilt_binary(libxml)
13  set(GSTREAMER010_FOUND ON FORCE BOOL)
14  set(GSTREAMER010_PLUGINS_BASE_FOUND ON FORCE BOOL)
15  set(GSTREAMER010_INCLUDE_DIRS
16      ${LIBS_PREBUILT_DIR}/include/gstreamer-0.10
17      ${LIBS_PREBUILT_DIR}/include/glib-2.0
18      ${LIBS_PREBUILT_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(GSTREAMER010_LIBRARIES
23      gobject-2.0
24      gmodule-2.0
25      dl
26      gthread-2.0
27      glib-2.0
28      )
29endif (STANDALONE)
30
31if (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND)
32  set(GSTREAMER010 ON CACHE BOOL "Build with GStreamer-0.10 streaming media support.")
33endif (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND)
34
35if (GSTREAMER010)
36  add_definitions(-DLL_GSTREAMER010_ENABLED=1)
37endif (GSTREAMER010)
38