diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-06-06 16:11:38 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-06 15:44:04 +0100 |
commit | db702fb12f7b34928a52e522ad269ac43f1dcace (patch) | |
tree | 76f534541c89e043207ce2cd229cd1810cdddfcd /meta/classes | |
parent | 8ea6be55b795ae5306606f7d4cdacdf3c2afa5ae (diff) | |
download | openembedded-core-db702fb12f7b34928a52e522ad269ac43f1dcace.tar.gz openembedded-core-db702fb12f7b34928a52e522ad269ac43f1dcace.tar.bz2 openembedded-core-db702fb12f7b34928a52e522ad269ac43f1dcace.zip |
gobject-introspection: move to Python 3
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 @@ # Inherit this class in recipes to enable building their introspection files -# This sets up autoconf-based recipes to build introspection data (or not), +# python3native is inherited to prevent introspection tools being run with +# host's python 3 (they need to be run with native python 3) +# +# This also sets up autoconf-based recipes to build introspection data (or not), # depending on distro and machine features (see gobject-introspection-data class). -inherit gobject-introspection-data +inherit python3native gobject-introspection-data EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " # When building native recipes, disable introspection, as it is not necessary, |