1config BR2_PACKAGE_LIBSOUP
2	bool "libsoup"
3	depends on BR2_USE_WCHAR # glib2, gnutls and libpsl
4	depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
5	depends on BR2_USE_MMU # glib2
6	select BR2_PACKAGE_LIBXML2
7	select BR2_PACKAGE_LIBGLIB2
8	select BR2_PACKAGE_LIBPSL
9	select BR2_PACKAGE_SQLITE
10	help
11	  libsoup is an HTTP client/server library. It uses GObject
12	  and the GLib main loop, to integrate well with GNOME
13	  applications.
14
15	  https://wiki.gnome.org/Projects/libsoup
16
17if BR2_PACKAGE_LIBSOUP
18
19config BR2_PACKAGE_LIBSOUP_GNOME
20	bool "libsoup-gnome"
21	help
22	  Build libsoup-gnome library.
23
24config BR2_PACKAGE_LIBSOUP_SSL
25	bool "https support"
26	depends on !BR2_STATIC_LIBS # glib-networking, gnutls
27	select BR2_PACKAGE_GLIB_NETWORKING # runtime
28	select BR2_PACKAGE_GNUTLS # runtime
29	help
30	  Enable HTTPS (SSL) support.
31
32comment "libsoup https support needs a toolchain w/ dynamic library"
33	depends on BR2_STATIC_LIBS
34
35endif
36
37comment "libsoup needs a toolchain w/ wchar, threads"
38	depends on BR2_USE_MMU
39	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
40