From: Ross Burton Date: Mon, 12 Sep 2016 11:46:26 +0000 (+0100) Subject: classes/gtk-doc: lazy assign GTKDOC_ENABLED X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc9ddc2459f59f24154a50a7a1aa8461466a6c90;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes/gtk-doc: lazy assign GTKDOC_ENABLED By letting a recipe assign GTKDOC_ENABLED trivially there is a simple and clear way to disable gtk-doc for specific build configurations. (From OE-Core rev: 201e069625e3623ff71864f969664c6d5d3b1801) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass index b2b6239f065..297eac63b7b 100644 --- a/meta/classes/gtk-doc.bbclass +++ b/meta/classes/gtk-doc.bbclass @@ -7,7 +7,7 @@ # # It should be used in recipes to determine whether gtk-doc based documentation should be built, # so that qemu use can be avoided when necessary. -GTKDOC_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', \ +GTKDOC_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', \ bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}" EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GTKDOC_ENABLED', 'True', '--enable-gtk-doc --enable-gtk-doc-html --disable-gtk-doc-pdf', \