gtk-doc.bbclass: unify option setting for meson-based recipes

This is done similarly to gobject-introspection work by Andreas Müller,
and allows dropping duplicate clutter from the recipes.

(From OE-Core rev: ff578f4451a0a199202e576b647840910b4d3f59)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2019-04-24 13:26:09 +02:00
committed by Richard Purdie
parent 8833afc0e0
commit 07d29e7cec
10 changed files with 18 additions and 44 deletions

View File

@@ -13,10 +13,6 @@ ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
DEPENDS = "clutter-1.0 gtk+3"
PACKAGES =+ "${PN}-examples"
GTKDOC_ENABLE_FLAG = "-Denable_docs=true"
GTKDOC_DISABLE_FLAG = "-Denable_docs=false"
EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \
'${GTKDOC_DISABLE_FLAG}', d)} "
GTKDOC_MESON_OPTION = "enable_docs"
GIR_MESON_OPTION = 'enable_gi'