summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/gobject-introspection.bbclass14
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).
5inherit gobject-introspection-data 5inherit gobject-introspection-data
6EXTRA_OECONF_prepend = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " 6EXTRA_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
10EXTRA_OECONF_prepend_class-native = "--disable-introspection "
11EXTRA_OECONF_prepend_class-nativesdk = "--disable-introspection "
7 12
8UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection" 13UNKNOWN_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.
12DEPENDS_append = " gobject-introspection gobject-introspection-native qemu-native" 17DEPENDS_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.
21DEPENDS_append_class-native = " gobject-introspection-native"
22DEPENDS_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