config BR2_PACKAGE_LIBSOUP
	bool "libsoup"
	depends on BR2_USE_WCHAR # glib2 and gnutls
	depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
	depends on BR2_USE_MMU # glib2
	select BR2_PACKAGE_LIBXML2
	select BR2_PACKAGE_LIBGLIB2
	select BR2_PACKAGE_SQLITE
	help
	  libsoup is an HTTP client/server library. It uses GObject
	  and the GLib main loop, to integrate well with GNOME
	  applications.

	  https://wiki.gnome.org/Projects/libsoup

if BR2_PACKAGE_LIBSOUP

config BR2_PACKAGE_LIBSOUP_GNOME
	bool "libsoup-gnome"
	help
	  Build libsoup-gnome library.

config BR2_PACKAGE_LIBSOUP_SSL
	bool "https support"
	depends on !BR2_STATIC_LIBS # glib-networking, gnutls
	select BR2_PACKAGE_GLIB_NETWORKING
	select BR2_PACKAGE_GNUTLS
	help
	  Enable HTTPS (SSL) support.

comment "libsoup https support needs a toolchain w/ dynamic library"
	depends on BR2_STATIC_LIBS

endif

comment "libsoup needs a toolchain w/ wchar, threads"
	depends on BR2_USE_MMU
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS