PageRenderTime 33ms CodeModel.GetById 17ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. if (STANDALONE)
  4. include(FindPkgConfig)
  5. pkg_check_modules(GSTREAMER010 REQUIRED gstreamer-0.10)
  6. pkg_check_modules(GSTREAMER010_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10)
  7. elseif (LINUX)
  8. use_prebuilt_binary(gstreamer)
  9. # possible libxml should have its own .cmake file instead
  10. use_prebuilt_binary(libxml)
  11. set(GSTREAMER010_FOUND ON FORCE BOOL)
  12. set(GSTREAMER010_PLUGINS_BASE_FOUND ON FORCE BOOL)
  13. set(GSTREAMER010_INCLUDE_DIRS
  14. ${LIBS_PREBUILT_DIR}/include/gstreamer-0.10
  15. ${LIBS_PREBUILT_DIR}/include/glib-2.0
  16. ${LIBS_PREBUILT_DIR}/include/libxml2
  17. )
  18. # We don't need to explicitly link against gstreamer itself, because
  19. # LLMediaImplGStreamer probes for the system's copy at runtime.
  20. set(GSTREAMER010_LIBRARIES
  21. gobject-2.0
  22. gmodule-2.0
  23. dl
  24. gthread-2.0
  25. glib-2.0
  26. )
  27. endif (STANDALONE)
  28. if (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND)
  29. set(GSTREAMER010 ON CACHE BOOL "Build with GStreamer-0.10 streaming media support.")
  30. endif (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND)
  31. if (GSTREAMER010)
  32. add_definitions(-DLL_GSTREAMER010_ENABLED=1)
  33. endif (GSTREAMER010)