diff options
Diffstat (limited to 'meta/classes/gobject-introspection.bbclass')
-rw-r--r-- | meta/classes/gobject-introspection.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass index f16627dacd..8cd7b7ed50 100644 --- a/meta/classes/gobject-introspection.bbclass +++ b/meta/classes/gobject-introspection.bbclass | |||
@@ -1,8 +1,11 @@ | |||
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 sets up autoconf-based recipes to build introspection data (or not), | 3 | # python3native is inherited to prevent introspection tools being run with |
4 | # host's python 3 (they need to be run with native python 3) | ||
5 | # | ||
6 | # This also sets up autoconf-based recipes to build introspection data (or not), | ||
4 | # depending on distro and machine features (see gobject-introspection-data class). | 7 | # depending on distro and machine features (see gobject-introspection-data class). |
5 | inherit gobject-introspection-data | 8 | inherit python3native gobject-introspection-data |
6 | EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " | 9 | EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " |
7 | 10 | ||
8 | # When building native recipes, disable introspection, as it is not necessary, | 11 | # When building native recipes, disable introspection, as it is not necessary, |