When building for the target this recipe absolutely needs
gobject-introspection to be enabled, so add an explict
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
GNOMEBASEBUILDCLASS = "meson"
GIR_MESON_OPTION = ""
-inherit gnomebase setuptools3-base gobject-introspection upstream-version-is-even features_check
+inherit gnomebase setuptools3-base gobject-introspection upstream-version-is-even
-REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
+python() {
+ if d.getVar('CLASSOVERRIDE') == "class-target" and not bb.utils.to_boolean(d.getVar("GI_DATA_ENABLED")):
+ raise bb.parse.SkipRecipe("GI not available")
+}
DEPENDS += "python3 glib-2.0"