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-09-23 15:27:05 +0100 |
commit | ef6ff739c715183cf23e59f77ab9256957d6fffa (patch) | |
tree | 4bc2d01471d508b44e72ddc2b0ab485d53009eee | |
parent | d9369d1ea055a20e5fc8747b0e38916dd6d604a5 (diff) | |
download | poky-ef6ff739c715183cf23e59f77ab9256957d6fffa.tar.gz |
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>
-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 @@ | |||
3 | # This sets up autoconf-based recipes to build introspection data (or not), | 3 | # This sets up autoconf-based recipes to build introspection data (or not), |
4 | # depending on distro and machine features (see gobject-introspection-data class). | 4 | # depending on distro and machine features (see gobject-introspection-data class). |
5 | inherit gobject-introspection-data | 5 | inherit gobject-introspection-data |
6 | EXTRA_OECONF_prepend = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " | 6 | EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " |
7 | |||
8 | # When building native recipes, disable introspection, as it is not necessary, | ||
9 | # pulls in additional dependencies, and makes build times longer | ||
10 | EXTRA_OECONF_prepend_class-native = "--disable-introspection " | ||
11 | EXTRA_OECONF_prepend_class-nativesdk = "--disable-introspection " | ||
7 | 12 | ||
8 | UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection" | 13 | UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection" |
9 | 14 | ||
10 | # Generating introspection data depends on a combination of native and target | 15 | # Generating introspection data depends on a combination of native and target |
11 | # introspection tools, and qemu to run the target tools. | 16 | # introspection tools, and qemu to run the target tools. |
12 | DEPENDS_append = " gobject-introspection gobject-introspection-native qemu-native" | 17 | DEPENDS_append_class-target = " gobject-introspection gobject-introspection-native qemu-native" |
18 | |||
19 | # Even though introspection is disabled on -native, gobject-introspection package is still | ||
20 | # needed for m4 macros. | ||
21 | DEPENDS_append_class-native = " gobject-introspection-native" | ||
22 | DEPENDS_append_class-nativesdk = " gobject-introspection-native" | ||
13 | 23 | ||
14 | # This is necessary for python scripts to succeed - distutils fails if these | 24 | # This is necessary for python scripts to succeed - distutils fails if these |
15 | # are not set | 25 | # are not set |