summaryrefslogtreecommitdiffstats
path: root/meta/classes/gobject-introspection.bbclass
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-06-06 16:11:38 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-07 15:22:37 +0100
commita2eb6d486710973dc40d62d37c70aedf86c8ec3e (patch)
treec6abe5c7acd2abea20746de06e29984c68a025f0 /meta/classes/gobject-introspection.bbclass
parent794a23a3818e41756e40a95dc037b4e6b9bf3dbf (diff)
downloadpoky-a2eb6d486710973dc40d62d37c70aedf86c8ec3e.tar.gz
gobject-introspection: move to Python 3
(From OE-Core rev: db702fb12f7b34928a52e522ad269ac43f1dcace) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/gobject-introspection.bbclass')
-rw-r--r--meta/classes/gobject-introspection.bbclass7
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).
5inherit gobject-introspection-data 8inherit python3native gobject-introspection-data
6EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " 9EXTRA_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,