diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-02-28 17:36:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-02 16:22:48 +0000 |
commit | 01954b9c65c979e03b7f07ab30889ceb20ed0d05 (patch) | |
tree | e8f03b402cef1271f117667161e128d8c8f71768 /meta/recipes-qt/qt4/qt4.inc | |
parent | 2b918b623bf8add454c3726dd4ee189230e6fcbc (diff) | |
download | poky-01954b9c65c979e03b7f07ab30889ceb20ed0d05.tar.gz |
qt4: make pulseaudio support conditional upon DISTRO_FEATURES
Add a pulseaudio DISTRO_FEATURES item and disable pulseaudio support in
phonon within Qt4 if it is not present; otherwise it is a race condition
as to whether it is enabled or disabled or breaks the build.
Note that this adds pulseaudio to DISTRO_FEATURES_BACKFILL thus leaving
existing distro configurations unaffected.
(From OE-Core rev: b82c216c1ee8e2a009e87856b7adad08f7f50482)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt/qt4/qt4.inc')
-rw-r--r-- | meta/recipes-qt/qt4/qt4.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc index 75abe6e029..2956aed604 100644 --- a/meta/recipes-qt/qt4/qt4.inc +++ b/meta/recipes-qt/qt4/qt4.inc | |||
@@ -1,6 +1,7 @@ | |||
1 | inherit qmake_base | 1 | inherit qmake_base |
2 | 2 | ||
3 | DEPENDS += "qt4-tools-native freetype jpeg libpng zlib dbus openssl glib-2.0 gstreamer gst-plugins-base sqlite3 tiff" | 3 | DEPENDS += "qt4-tools-native freetype jpeg libpng zlib dbus openssl glib-2.0 gstreamer gst-plugins-base sqlite3 tiff" |
4 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" | ||
4 | 5 | ||
5 | require qt4_arch.inc | 6 | require qt4_arch.inc |
6 | QT_ARCH := "${@qt_arch(d)}" | 7 | QT_ARCH := "${@qt_arch(d)}" |
@@ -18,6 +19,7 @@ QT_CONFIG_FLAGS += "-release -no-cups -reduce-relocations \ | |||
18 | -system-libjpeg -system-libpng -system-libtiff -system-zlib \ | 19 | -system-libjpeg -system-libpng -system-libtiff -system-zlib \ |
19 | -no-pch -qdbus -stl -glib -phonon -webkit \ | 20 | -no-pch -qdbus -stl -glib -phonon -webkit \ |
20 | -xmlpatterns -no-rpath -qt3support -silent \ | 21 | -xmlpatterns -no-rpath -qt3support -silent \ |
22 | ${@base_contains('DISTRO_FEATURES', 'pulseaudio', '--enable-pulseaudio', '--disable-pulseaudio', d)} \ | ||
21 | ${QT_SQL_DRIVER_FLAGS} \ | 23 | ${QT_SQL_DRIVER_FLAGS} \ |
22 | ${QT_DISTRO_FLAGS} \ | 24 | ${QT_DISTRO_FLAGS} \ |
23 | ${QT_GLFLAGS}" | 25 | ${QT_GLFLAGS}" |