]> code.ossystems Code Review - openembedded-core.git/commitdiff
nativesdk-qt4-tools: depend on nativesdk-qt4-tools only if DISTRO_FEATURES includes x11
authorPascal Bach <pascal.bach@siemens.com>
Mon, 27 Jul 2015 13:22:58 +0000 (15:22 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jul 2015 22:28:22 +0000 (23:28 +0100)
Currently nativesdk-qt4-tools can't be built if the DISTRO_FEATURES doesn't contain x11.
To make it build we add a dependency to x11 only if the feature is activated.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-qt/qt4/nativesdk-qt4-tools.inc

index aa84e3dcfd4cdf70667f4bb8bd25125dabba8818..077008bb8bdc91a8f59c213520912137303d9163 100644 (file)
@@ -1,5 +1,5 @@
 SUMMARY = "SDK tools for Qt version 4.x"
-DEPENDS = "nativesdk-zlib nativesdk-dbus nativesdk-libx11 qt4-native"
+DEPENDS = "nativesdk-zlib nativesdk-dbus qt4-native ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11', '', d)}"
 SECTION = "libs"
 HOMEPAGE = "http://qt-project.org/"
 LICENSE = "LGPLv2.1 | GPLv3"