From: Adam Duskett Date: Wed, 1 Apr 2020 00:21:27 +0000 (-0700) Subject: package/json-glib: enable gobject-introspection support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4ed7dd4503ef7ed4ea955130a3d6b1e572e8331;p=buildroot.git 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 --- 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)