package/modem-manager: add support for introspection
authorEinar Jon Gunnarsson <tolvupostur@gmail.com>
Thu, 15 Apr 2021 11:19:56 +0000 (13:19 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 15 Apr 2021 21:07:01 +0000 (23:07 +0200)
Enable introspection when GObject Introspection is enabled.

Signed-off-by: Einar Jon Gunnarsson <tolvupostur@gmail.com>
Acked-by: Aleksander Morgado <aleksander@aleksander.es>
[yann.morin.1998@free.fr: drop config option, rely on GOI package]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/modem-manager/modem-manager.mk

index 2cc45d266b34deeb6c4341d357f3617975e83481..792a37b8db412d450c24d4ddedf7c02d45a80bb6 100644 (file)
@@ -34,6 +34,13 @@ else
 MODEM_MANAGER_CONF_OPTS += --without-mbim
 endif
 
+ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
+MODEM_MANAGER_DEPENDENCIES += gobject-introspection
+MODEM_MANAGER_CONF_OPTS += --enable-introspection
+else
+MODEM_MANAGER_CONF_OPTS += --disable-introspection
+endif
+
 define MODEM_MANAGER_INSTALL_INIT_SYSV
        $(INSTALL) -m 0755 -D package/modem-manager/S44modem-manager \
                $(TARGET_DIR)/etc/init.d/S44modem-manager