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

	  https://gitlab.gnome.org/GNOME/libsoup

if BR2_PACKAGE_LIBSOUP3

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

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

endif

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