From c4ed7dd4503ef7ed4ea955130a3d6b1e572e8331 Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Tue, 31 Mar 2020 17:21:27 -0700 Subject: [PATCH] package/json-glib: enable gobject-introspection support If gobject-introspection is selected, add the gobject-introspection package to the dependency list and set the conf opt -Dintrospection=true. Signed-off-by: Adam Duskett Signed-off-by: Yann E. MORIN --- package/json-glib/json-glib.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/json-glib/json-glib.mk b/package/json-glib/json-glib.mk index 7405b28b2e..accdb4f888 100644 --- a/package/json-glib/json-glib.mk +++ b/package/json-glib/json-glib.mk @@ -17,7 +17,12 @@ JSON_GLIB_DEPENDENCIES = \ host-pkgconf \ libglib2 -JSON_GLIB_CONF_OPTS = -Dintrospection=false +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) +JSON_GLIB_CONF_OPTS += -Dintrospection=true +JSON_GLIB_DEPENDENCIES += gobject-introspection +else +JSON_GLIB_CONF_OPTS += -Dintrospection=false +endif JSON_GLIB_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS) -- 2.30.2