diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-05-26 17:00:47 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-30 09:30:32 +0100 |
commit | be18364edd5cd2c664f68120063a1e147563faab (patch) | |
tree | 5ed077d562c992a817b439a6eb6e6cf0b6e236b5 /meta/classes/gobject-introspection.bbclass | |
parent | 343f762792cbfccffaf3aa901289f9bb0f8cef3d (diff) | |
download | openembedded-core-be18364edd5cd2c664f68120063a1e147563faab.tar.gz openembedded-core-be18364edd5cd2c664f68120063a1e147563faab.tar.bz2 openembedded-core-be18364edd5cd2c664f68120063a1e147563faab.zip |
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.
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/gobject-introspection.bbclass')
-rw-r--r-- | meta/classes/gobject-introspection.bbclass | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass index 2d73e402ce..cc7ca5ad73 100644 --- a/meta/classes/gobject-introspection.bbclass +++ b/meta/classes/gobject-introspection.bbclass @@ -3,13 +3,23 @@ # This sets up autoconf-based recipes to build introspection data (or not), # depending on distro and machine features (see gobject-introspection-data class). 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" # Generating introspection data depends on a combination of native and target # 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 # are not set |