# -*- cmake -*- include(Prebuilt) if (STANDALONE) include(FindPkgConfig) pkg_check_modules(GSTREAMER REQUIRED gstreamer-0.10) pkg_check_modules(GSTREAMER_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10) pkg_check_modules(GSTREAMER_VIDEO REQUIRED gstreamer-video-0.10) else (STANDALONE) # libxml and glib should have their own .cmake files use_prebuilt_binary(libxml) use_prebuilt_binary(glib) set(GSTREAMER_FOUND ON FORCE BOOL) set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) set(GSTREAMER_VIDEO_FOUND ON FORCE BOOL) use_prebuilt_binary(gstreamer) use_prebuilt_binary(gstreamer-plugins) if (WINDOWS) use_prebuilt_binary(iconv) set(GSTREAMER_FOUND ON FORCE BOOL) set(GSTREAMER_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gio ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gobject ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/iconv ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gst ) set(GSTREAMER_LIBRARIES glib-2.0 gio-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 libgstvideo.lib libgsttag.lib libgstsdp.lib libgstrtsp.lib libgstrtp.lib libgstriff.lib libgstreamer-0.10.lib libgstpbutils.lib libgstnetbuffer.lib libgstnet-0.10.lib libgstinterfaces.lib libgstdshow.lib libgstdataprotocol-0.10.lib libgstcontroller-0.10.lib libgstbase-0.10.lib libgstaudio.lib libgstapp.lib libxml2 libxml2_a libxml2_a_dll iconv iconv_a ) else (WINDOWS) set(GSTREAMER_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/glib ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/gobject ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 ) if (DARWIN) # Mac use_prebuilt_binary(flac) use_prebuilt_binary(liboil) use_prebuilt_binary(neon) use_prebuilt_binary(theora) set(GSTREAMER_LIBRARIES gstvideo-0.10 gstaudio-0.10 gstbase-0.10 gstreamer-0.10 gobject-2.0 gmodule-2.0 gthread-2.0 glib-2.0 xml2.2 ) else (DARWIN) # Linux use_prebuilt_binary(liboil) use_prebuilt_binary(theora) set(GSTREAMER_LIBRARIES gstvideo-0.10 gstaudio-0.10 gstbase-0.10 gstreamer-0.10 gobject-2.0 gmodule-2.0 dl gthread-2.0 rt glib-2.0 gio-2.0 ) endif (DARWIN) endif (WINDOWS) endif (STANDALONE) if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) if (GSTREAMER) add_definitions(-DLL_GSTREAMER_ENABLED=1) endif (GSTREAMER)