GStreamer010Plugin.cmake
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:

游戏引擎

开发平台:

C++ Builder

  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}/${LL_ARCH_DIR}/include/gstreamer-0.10
  15.       ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
  16.       ${LIBS_PREBUILT_DIR}/${LL_ARCH_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)