classes/gtk-doc: lazy assign GTKDOC_ENABLED
PATCH 1/2 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.
Signed-off-by Ross Burton <[email protected]>
--- meta/classes/gtk-doc.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/gtk-doc.bbclass +1 -1
@@ -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', \
Signature · 1 line
2.8.1
PATCH 2/2 classes/gobject-introspecton-data: lazy assign GI_DATA_ENABLED
By letting a recipe assign GI_DATA_ENABLED trivially there is a simple and clear way to disable gobject-introspection for specific build configurations.
Signed-off-by Ross Burton <[email protected]>
--- meta/classes/gobject-introspection-data.bbclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
meta/classes/gobject-introspection-data.bbclass +1 -3
@@ -3,7 +3,5 @@ # # It should be used in recipes to determine whether introspection data should be built, # so that qemu use can be avoided when necessary. -GI_DATA_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', \ +GI_DATA_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', \ bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}" - -
Signature · 1 line
2.8.1