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 15:58:14 +0100 |
commit | 1b71c59b12301a6d4816bf1d8659db3060870b63 (patch) | |
tree | 859a5e2633f33ad01a92b3a945762544a6deb84c /meta | |
parent | 0f64a717d28184b01d8ec76cb4fe12c9102392d3 (diff) | |
download | poky-1b71c59b12301a6d4816bf1d8659db3060870b63.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)
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>
Diffstat (limited to 'meta')
-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 |