0
|
1 |
# Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
#
|
|
3 |
# This library is free software: you can redistribute it and/or modify
|
|
4 |
# it under the terms of the GNU Lesser General Public License as published by
|
|
5 |
# the Free Software Foundation, either version 2 or 3 of the License.
|
|
6 |
#
|
|
7 |
# This library is distributed in the hope that it will be useful,
|
|
8 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
9 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
10 |
# GNU Lesser General Public License for more details.
|
|
11 |
#
|
|
12 |
# You should have received a copy of the GNU Lesser General Public License
|
|
13 |
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
14 |
|
|
15 |
macro_optional_find_package(GStreamer)
|
|
16 |
macro_log_feature(GSTREAMER_FOUND "GStreamer" "gstreamer 0.10 is required for the multimedia backend" "http://gstreamer.freedesktop.org/modules/" FALSE "0.10")
|
|
17 |
|
|
18 |
macro_optional_find_package(GStreamerPlugins)
|
|
19 |
macro_log_feature(GSTREAMER_PLUGIN_VIDEO_LIBRARIES "GStreamer video plugin" "The gstreamer video plugin (part of gstreamer-plugins-base 0.10) is required for the multimedia gstreamer backend" "http://gstreamer.freedesktop.org/modules/" FALSE "0.10")
|
|
20 |
|
|
21 |
macro_optional_find_package(GLIB2)
|
|
22 |
macro_log_feature(GLIB2_FOUND "GLib2" "GLib 2 is required to compile the gstreamer backend for Phonon" "http://www.gtk.org/download/" FALSE)
|
|
23 |
|
|
24 |
macro_optional_find_package(GObject)
|
|
25 |
# No log, since GObject is bundled with GLib
|
|
26 |
|
|
27 |
macro_optional_find_package(LibXml2)
|
|
28 |
macro_log_feature(LIBXML2_FOUND "LibXml2" "LibXml2 is required to compile the gstreamer backend for Phonon" "http://xmlsoft.org/downloads.html" FALSE)
|
|
29 |
|
|
30 |
macro_optional_find_package(OpenGL)
|
|
31 |
macro_log_feature(OPENGL_FOUND "OpenGL" "OpenGL support is required to compile the gstreamer backend for Phonon" "" FALSE)
|
|
32 |
|
|
33 |
if (GSTREAMER_FOUND AND GSTREAMER_PLUGIN_VIDEO_LIBRARIES AND GLIB2_FOUND AND GOBJECT_FOUND AND LIBXML2_FOUND AND OPENGL_FOUND)
|
|
34 |
set(BUILD_PHONON_GSTREAMER TRUE)
|
|
35 |
else (GSTREAMER_FOUND AND GSTREAMER_PLUGIN_VIDEO_LIBRARIES AND GLIB2_FOUND AND GOBJECT_FOUND AND LIBXML2_FOUND AND OPENGL_FOUND)
|
|
36 |
set(BUILD_PHONON_GSTREAMER FALSE)
|
|
37 |
endif (GSTREAMER_FOUND AND GSTREAMER_PLUGIN_VIDEO_LIBRARIES AND GLIB2_FOUND AND GOBJECT_FOUND AND LIBXML2_FOUND AND OPENGL_FOUND)
|