LIBGLIB2_DEPENDENCIES+=libiconv
endif
+define LIBGLIB2_REMOVE_DEV_FILES
+ rm -rf $(TARGET_DIR)/usr/lib/glib-2.0
+ rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gettext
+ rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/glib-2.0
+ rm -f $(addprefix $(TARGET_DIR)/usr/bin/,glib-genmarshal glib-gettextize glib-mkenums gobject-query gtester gtester-report)
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DEV_FILES
+endif
+
$(eval $(call AUTOTARGETS,package,libglib2))
$(eval $(call AUTOTARGETS,package,libglib2,host))