xorg-lib: don't build libs unless requested by DISTRO_FEATURES

* If 'x11' is not set in DISTRO_FEATURES, then skip all
  recipes using xorg-lib-common.inc instead of only those
  using libx11.inc.

* One exception: pixman, which is not only used by xorg,
  but also by cairo.

(From OE-Core rev: a101bc85adcc915f151348107e850b8998a395b0)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Andreas Oberritter 2012-02-10 02:27:54 +01:00 committed by Richard Purdie
parent 5a4b06ddec
commit 831e0b5cd7
2 changed files with 6 additions and 5 deletions

View File

@ -49,8 +49,3 @@ do_compile_prepend() {
# Multiple libx11 derivatives from from this file and are selected by virtual/libx11
# A world build should only build the correct version, not all of them.
EXCLUDE_FROM_WORLD = "1"
python () {
if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
}

View File

@ -14,3 +14,9 @@ S = "${WORKDIR}/${XORG_PN}-${PV}"
inherit autotools pkgconfig
EXTRA_OECONF = "--enable-malloc0returnsnull --with-fop=no --without-xmlto"
python () {
whitelist = [ "pixman" ]
if not d.getVar('BPN', True) in whitelist and not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
}