[EFL] Implement the Web Audio API feature.
[WebKit-https.git] / Source / cmake / FindGStreamer-Audio.cmake
1 # - Try to find GStreamer-Audio
2 # Once done, this will define
3 #
4 #  GStreamer-Audio_FOUND - system has GStreamer-Audio
5 #  GStreamer-Audio_INCLUDE_DIRS - the GStreamer-Audio include directories
6 #  GStreamer-Audio_LIBRARIES - link these to use GStreamer-Audio
7
8 include(LibFindMacros)
9
10 # Dependencies
11 libfind_package(GStreamer-Audio GStreamer)
12 libfind_package(GStreamer-Audio GStreamer-Base)
13
14 # Use pkg-config to get hints about paths
15 libfind_pkg_check_modules(GStreamer-Audio_PKGCONF gstreamer-audio-0.10>=0.10.30)
16
17 # Include dir
18 find_path(GStreamer-Audio_INCLUDE_DIR
19   NAMES gst/audio/audio.h
20   PATHS ${GStreamer-Audio_PKGCONF_INCLUDE_DIRS}
21   PATH_SUFFIXES gstreamer-0.10
22 )
23
24 # Finally the library itself
25 find_library(GStreamer-Audio_LIBRARY
26   NAMES gstaudio-0.10
27   PATHS ${GStreamer-Audio_PKGCONF_LIBRARY_DIRS}
28 )
29
30 # Set the include dir variables and the libraries and let libfind_process do the rest.
31 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
32 set(GStreamer-Audio_PROCESS_INCLUDES GStreamer-Audio_INCLUDE_DIR
33 GStreamer_INCLUDE_DIR GStreamer-Base_INCLUDE_DIR)
34 set(GStreamer-Audio_PROCESS_LIBS GStreamer-Audio_LIBRARY GStreamer_LIBRARIES GStreamer-Base_LIBRARIES)
35 libfind_process(GStreamer-Audio)