mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
gobject-introspection.bbclass: disable introspection for -native and -nativesdk recipes
It is not necessary for those targets, adds to the build time, and pulls in the unneeded qemu-native dependency. (From OE-Core rev: be18364edd5cd2c664f68120063a1e147563faab) (From OE-Core rev: 4dbe39ee56ff888190b1a110496bc0fb6c400d9a) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d9369d1ea0
commit
ef6ff739c7
@@ -3,13 +3,23 @@
|
|||||||
# This sets up autoconf-based recipes to build introspection data (or not),
|
# This sets up autoconf-based recipes to build introspection data (or not),
|
||||||
# depending on distro and machine features (see gobject-introspection-data class).
|
# depending on distro and machine features (see gobject-introspection-data class).
|
||||||
inherit gobject-introspection-data
|
inherit gobject-introspection-data
|
||||||
EXTRA_OECONF_prepend = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "
|
EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "
|
||||||
|
|
||||||
|
# When building native recipes, disable introspection, as it is not necessary,
|
||||||
|
# pulls in additional dependencies, and makes build times longer
|
||||||
|
EXTRA_OECONF_prepend_class-native = "--disable-introspection "
|
||||||
|
EXTRA_OECONF_prepend_class-nativesdk = "--disable-introspection "
|
||||||
|
|
||||||
UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"
|
UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"
|
||||||
|
|
||||||
# Generating introspection data depends on a combination of native and target
|
# Generating introspection data depends on a combination of native and target
|
||||||
# introspection tools, and qemu to run the target tools.
|
# introspection tools, and qemu to run the target tools.
|
||||||
DEPENDS_append = " gobject-introspection gobject-introspection-native qemu-native"
|
DEPENDS_append_class-target = " gobject-introspection gobject-introspection-native qemu-native"
|
||||||
|
|
||||||
|
# Even though introspection is disabled on -native, gobject-introspection package is still
|
||||||
|
# needed for m4 macros.
|
||||||
|
DEPENDS_append_class-native = " gobject-introspection-native"
|
||||||
|
DEPENDS_append_class-nativesdk = " gobject-introspection-native"
|
||||||
|
|
||||||
# This is necessary for python scripts to succeed - distutils fails if these
|
# This is necessary for python scripts to succeed - distutils fails if these
|
||||||
# are not set
|
# are not set
|
||||||
|
|||||||
Reference in New Issue
Block a user