diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/gobject-introspection-data.bbclass | 9 | ||||
-rw-r--r-- | meta/classes/gobject-introspection.bbclass | 8 |
2 files changed, 13 insertions, 4 deletions
diff --git a/meta/classes/gobject-introspection-data.bbclass b/meta/classes/gobject-introspection-data.bbclass new file mode 100644 index 0000000000..b1bdd268e6 --- /dev/null +++ b/meta/classes/gobject-introspection-data.bbclass | |||
@@ -0,0 +1,9 @@ | |||
1 | # This variable is set to True if gobject-introspection-data is in | ||
2 | # DISTRO_FEATURES and qemu-usermode is in MACHINE_FEATURES, and False otherwise. | ||
3 | # | ||
4 | # It should be used in recipes to determine whether introspection data should be built, | ||
5 | # so that qemu use can be avoided when necessary. | ||
6 | GI_DATA_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', \ | ||
7 | bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}" | ||
8 | |||
9 | |||
diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass index d8b8b3ed27..2d73e402ce 100644 --- a/meta/classes/gobject-introspection.bbclass +++ b/meta/classes/gobject-introspection.bbclass | |||
@@ -1,9 +1,9 @@ | |||
1 | # Inherit this class in recipes to enable building their introspection files | 1 | # Inherit this class in recipes to enable building their introspection files |
2 | 2 | ||
3 | # This allows disabling introspection support (and therefore avoiding the use | 3 | # This sets up autoconf-based recipes to build introspection data (or not), |
4 | # of qemu) in recipes if gobject-introspection-data is omitted from | 4 | # depending on distro and machine features (see gobject-introspection-data class). |
5 | # DISTRO_FEATURES or MACHINE_FEATURES. | 5 | inherit gobject-introspection-data |
6 | EXTRA_OECONF_prepend = "${@bb.utils.contains('COMBINED_FEATURES', 'gobject-introspection-data', '--enable-introspection', '--disable-introspection', d)} " | 6 | EXTRA_OECONF_prepend = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " |
7 | 7 | ||
8 | UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection" | 8 | UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection" |
9 | 9 | ||