summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome
diff options
context:
space:
mode:
authorGuðni Már Gilbert <gudni.m.g@gmail.com>2024-06-25 18:50:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-23 11:17:11 +0100
commit6f19b5418af32ad1a97ba7415be8472360b10dd9 (patch)
treeb8801316044c4757f6ea64265ffc45eeb0c7f0f3 /meta/recipes-gnome
parentd045fed31acd3f31fbe99815204e8540dc5f6846 (diff)
downloadpoky-6f19b5418af32ad1a97ba7415be8472360b10dd9.tar.gz
gobject-introspection: split tools and giscanner into a separate package
The tools and giscanner require python3-setuptools at runtime. This increases the image size quite a bit (on my end ~1.7MB compressed). Most users don't need these tools in the final image so make them optional. This commit introduces a new packcage gobject-introspection-tools (From OE-Core rev: 57a5dfd3785c75863a9e366be656d50d98ddb4bd) Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection_1.80.1.bb22
1 files changed, 20 insertions, 2 deletions
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.80.1.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.80.1.bb
index 582ac248fd..e161f3ca2d 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.80.1.bb
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.80.1.bb
@@ -26,7 +26,8 @@ GTKDOC_MESON_OPTION = "gtk_doc"
26 26
27MULTILIB_SCRIPTS = "${PN}:${bindir}/g-ir-annotation-tool ${PN}:${bindir}/g-ir-scanner" 27MULTILIB_SCRIPTS = "${PN}:${bindir}/g-ir-annotation-tool ${PN}:${bindir}/g-ir-scanner"
28 28
29DEPENDS += " libffi zlib python3 flex-native bison-native" 29# setuptools are required to provide distutils to build the tools
30DEPENDS += " libffi zlib python3 python3-setuptools flex-native bison-native"
30DEPENDS:append:class-native = " glib-2.0" 31DEPENDS:append:class-native = " glib-2.0"
31DEPENDS:append:class-target = " glib-2.0-initial" 32DEPENDS:append:class-target = " glib-2.0-initial"
32 33
@@ -169,6 +170,15 @@ gi_package_preprocess() {
169 170
170SSTATE_SCAN_FILES += "g-ir-scanner-qemuwrapper g-ir-scanner-wrapper g-ir-compiler-wrapper g-ir-scanner-lddwrapper Gio-2.0.gir postinst-ldsoconf-${PN}" 171SSTATE_SCAN_FILES += "g-ir-scanner-qemuwrapper g-ir-scanner-wrapper g-ir-compiler-wrapper g-ir-scanner-lddwrapper Gio-2.0.gir postinst-ldsoconf-${PN}"
171 172
173PACKAGES =+ "\
174 ${PN}-tools \
175"
176
177FILES:${PN}-tools = "\
178 ${bindir} \
179 ${libdir}/gobject-introspection/giscanner \
180"
181
172# .typelib files are needed at runtime and so they go to the main package 182# .typelib files are needed at runtime and so they go to the main package
173FILES:${PN}:append = " ${libdir}/girepository-*/*.typelib" 183FILES:${PN}:append = " ${libdir}/girepository-*/*.typelib"
174 184
@@ -190,7 +200,15 @@ FILES:${PN}-dev:append = " ${datadir}/gobject-introspection-1.0/tests/*.c \
190FILES:${PN}-dbg += "${libdir}/gobject-introspection/giscanner/.debug/" 200FILES:${PN}-dbg += "${libdir}/gobject-introspection/giscanner/.debug/"
191FILES:${PN}-staticdev += "${libdir}/gobject-introspection/giscanner/*.a" 201FILES:${PN}-staticdev += "${libdir}/gobject-introspection/giscanner/*.a"
192 202
203# glib-2.0 is required for libgirepository
204RDEPENDS:${PN} = "glib-2.0"
205
193# setuptools can be removed when upstream removes all uses of distutils 206# setuptools can be removed when upstream removes all uses of distutils
194RDEPENDS:${PN} = "python3-pickle python3-xml python3-setuptools glib-2.0" 207RDEPENDS:${PN}-tools = "\
208 glib-2.0 \
209 python3-pickle \
210 python3-setuptools \
211 python3-xml \
212"
195 213
196BBCLASSEXTEND = "native" 214BBCLASSEXTEND = "native"