]> code.ossystems Code Review - openembedded-core.git/commitdiff
xorg-lib: don't build libs unless requested by DISTRO_FEATURES
authorAndreas Oberritter <obi@opendreambox.org>
Fri, 10 Feb 2012 01:27:54 +0000 (02:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 23:59:14 +0000 (23:59 +0000)
* 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.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
meta/recipes-graphics/xorg-lib/libx11.inc
meta/recipes-graphics/xorg-lib/xorg-lib-common.inc

index 748a48cef3b88eb978fa6660776b6643f1bcb8da..9057edc746f4eaff9e16699141b12d9cdc5aaf23 100644 (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")
-}
index d106054ef145f0a2f0e1877af0f8e2a18295eb7f..3d5d378c87224db0010a04d303395d55cac02ff8 100644 (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")
+}