Ver Fonte

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 <Aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Adam Duskett há 5 anos atrás
pai
commit
c4ed7dd450
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      package/json-glib/json-glib.mk

+ 6 - 1
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)