[Buildroot] [git commit branch/2021.02.x] package/libqmi: add gobject-introspection optional dependency

Peter Korsgaard peter at korsgaard.com
Sun Aug 8 19:11:57 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=0175b49f0c341ad1129aab658f3f7cd5338db738
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x

gobject-introspection is an optional dependency (enabled by default)
since version 1.26.0 and
https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/commit/2aa0badc79595c92981793d18f05c99485156a6b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit af34a67be6ae5d399e6894e7825a30df71365773)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/libqmi/libqmi.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/libqmi/libqmi.mk b/package/libqmi/libqmi.mk
index a49b8615d3..1be9cf457f 100644
--- a/package/libqmi/libqmi.mk
+++ b/package/libqmi/libqmi.mk
@@ -16,6 +16,13 @@ LIBQMI_DEPENDENCIES = libglib2
 
 LIBQMI_CONF_OPTS = --disable-Werror
 
+ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
+LIBQMI_DEPENDENCIES += gobject-introspection
+LIBQMI_CONF_OPTS += --enable-introspection
+else
+LIBQMI_CONF_OPTS += --disable-introspection
+endif
+
 # if libgudev available, request udev support for a better
 # qmi-firmware-update experience
 ifeq ($(BR2_PACKAGE_LIBGUDEV),y)



More information about the buildroot mailing list