package/libqrtr-glib: add gobject-introspection optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 4 Aug 2021 20:44:42 +0000 (22:44 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 5 Aug 2021 21:44:35 +0000 (23:44 +0200)
gobject-introspection is an optional dependency (enabled by default)
since the addition of the package in commit
ea64e05a1bfbe3b258a69013462f94d7db7a9c0b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libqrtr-glib/libqrtr-glib.mk

index b9fc5cf3bab4646107d97b61a6790a265376bf9d..6ab833541729f919172dd19431b2a9a460f2ac0d 100644 (file)
@@ -12,4 +12,11 @@ LIBQRTR_GLIB_LICENSE_FILES = COPYING.LIB
 LIBQRTR_GLIB_INSTALL_STAGING = YES
 LIBQRTR_GLIB_DEPENDENCIES = libglib2
 
+ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
+LIBQRTR_GLIB_CONF_OPTS += --enable-introspection
+LIBQRTR_GLIB_DEPENDENCIES += gobject-introspection
+else
+LIBQRTR_GLIB_CONF_OPTS += --disable-introspection
+endif
+
 $(eval $(autotools-package))