summaryrefslogtreecommitdiff
path: root/meta/classes/gobject-introspection.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/gobject-introspection.bbclass')
-rw-r--r--meta/classes/gobject-introspection.bbclass26
1 files changed, 12 insertions, 14 deletions
diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass
index ef5162974f..d8b8b3ed27 100644
--- a/meta/classes/gobject-introspection.bbclass
+++ b/meta/classes/gobject-introspection.bbclass
@@ -1,22 +1,22 @@
# Inherit this class in recipes to enable building their introspection files
-# This allows disabling introspection support in recipes
-# (and therefore avoiding the use of qemu)
-# if gobject-introspection-data is omitted from DISTRO_FEATURES and MACHINE_FEATURES.
+# This allows disabling introspection support (and therefore avoiding the use
+# of qemu) in recipes if gobject-introspection-data is omitted from
+# DISTRO_FEATURES or MACHINE_FEATURES.
EXTRA_OECONF_prepend = "${@bb.utils.contains('COMBINED_FEATURES', 'gobject-introspection-data', '--enable-introspection', '--disable-introspection', d)} "
UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"
-# Generating introspection data depends on a combination of native and target introspection tools,
-# and qemu to run the target tools.
+# Generating introspection data depends on a combination of native and target
+# introspection tools, and qemu to run the target tools.
DEPENDS_append = " gobject-introspection gobject-introspection-native qemu-native"
-# This is necessary for python scripts to succeed - distutils
-# failes if these are not set
+# This is necessary for python scripts to succeed - distutils fails if these
+# are not set
export BUILD_SYS
export HOST_SYS
-export STAGING_LIBDIR
export STAGING_INCDIR
+export STAGING_LIBDIR
# This is used by introspection tools to find .gir includes
export XDG_DATA_DIRS = "${STAGING_DATADIR}"
@@ -28,12 +28,10 @@ do_configure_prepend_class-target () {
cp ${STAGING_DIR_TARGET}/${datadir}/aclocal/introspection.m4 ${S}/m4
}
-
-# .typelib files are needed at runtime and so they go to the main package
-# (so they'll be together with libraries they support).
+# .typelib files are needed at runtime and so they go to the main package (so
+# they'll be together with libraries they support).
FILES_${PN}_append = " ${libdir}/girepository-*/*.typelib"
-# .gir files go to dev package, as they're needed for developing (but not for running)
-# things that depends on introspection.
+# .gir files go to dev package, as they're needed for developing (but not for
+# running) things that depends on introspection.
FILES_${PN}-dev_append = " ${datadir}/gir-*/*.gir"
-