]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
gobject-introspection-data.bbclass: move do_compile() tweak to g-i class
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 16 Jan 2024 11:08:13 +0000 (12:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Jan 2024 11:53:56 +0000 (11:53 +0000)
g-i-data class is strictly for setting GI_DATA_ENABLED. Any build tweaks
should be in g-i class.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/gobject-introspection-data.bbclass
meta/classes-recipe/gobject-introspection.bbclass

index 7f522a1ed324d21b21460cb3fbc6d2af11a51fe6..aa04c70ca6cca83aaceb87d7196ae5b4e1125a99 100644 (file)
@@ -11,8 +11,3 @@
 # so that qemu use can be avoided when necessary.
 GI_DATA_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', \
                       bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}"
-
-do_compile:prepend() {
-    # This prevents g-ir-scanner from writing cache data to $HOME
-    export GI_SCANNER_DISABLE_CACHE=1
-}
index 65c67ddc7212881413803eae07164f535b3f71ef..d0052cd623175749c675ee6f4cb47ce5b17cd8da 100644 (file)
@@ -50,6 +50,11 @@ do_configure:prepend:class-target () {
     cp ${STAGING_DIR_NATIVE}/${datadir}/aclocal/introspection.m4 ${S}/m4
 }
 
+do_compile:prepend() {
+    # This prevents g-ir-scanner from writing cache data to $HOME
+    export GI_SCANNER_DISABLE_CACHE=1
+}
+
 # .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"