poky/meta/classes-recipe/gobject-introspection-data.bbclass
Alexander Kanavin 375ac472d8 gobject-introspection-data.bbclass: move do_compile() tweak to g-i class
g-i-data class is strictly for setting GI_DATA_ENABLED. Any build tweaks
should be in g-i class.

(From OE-Core rev: 49988a49f7c9a19aa2a547d49369996e3e20d452)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00

14 lines
568 B
Plaintext

#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
# This variable is set to True if gobject-introspection-data is in
# DISTRO_FEATURES and qemu-usermode is in MACHINE_FEATURES, and False otherwise.
#
# 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', \
bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}"