buildroot/package/libcurl/Config.in
Thomas De Schampheleire 02e6805010 package/libcurl: introduce options to extend/reduce feature set
Libcurl is more than 250 KiB (libcurl) / 100 KiB (curl binary) in size.
About 50 KiB / 15 KiB of this can be saved by disabling features/protocols
that are not commonly needed:

- proxy support: 15 KiB
- cookies support: 10 KiB
- various less common protocols: 25 KiB (libcurl) + 15 KiB (curl binary)

Note that the exact amount of space saved depends on the architecture,
toolchain, and other factors.

Other packages that are selecting libcurl might require protocols from the
'extra' set. But, there is no clear way to find out which packages are in
this situation, in particular because issues may only be visible at runtime.

Note: remove the text 'enable' on the option for 'verbose strings' as that
is more common in Buildroot.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
[Peter: unconditionally remove the libcurl-option to generate C code]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-08-04 12:11:19 +02:00

81 lines
1.6 KiB
Plaintext

config BR2_PACKAGE_LIBCURL
bool "libcurl"
help
cURL is a tool for getting files from FTP, HTTP, Gopher,
Telnet, and Dict servers, using any of the supported
protocols.
http://curl.haxx.se/
if BR2_PACKAGE_LIBCURL
config BR2_PACKAGE_CURL
bool "curl binary"
help
Install curl binary as well
config BR2_PACKAGE_LIBCURL_VERBOSE
bool "verbose strings"
help
Enable verbose text strings
config BR2_PACKAGE_LIBCURL_PROXY_SUPPORT
bool "proxy support"
default y
help
Enable proxy support.
config BR2_PACKAGE_LIBCURL_COOKIES_SUPPORT
bool "cookies support"
default y
help
Enable support for cookies.
config BR2_PACKAGE_LIBCURL_EXTRA_PROTOCOLS_FEATURES
bool "enable extra protocols and features"
default y
help
Enable the following extra protocols and features:
- LDAP / LDAPS
- POP3 / IMAP / SMTP
- Telnet
- TFTP
- RTSP
- SMB / CIFS
- DICT
- Gopher
config BR2_PACKAGE_LIBCURL_TLS_SUPPORT
bool
default y if BR2_PACKAGE_OPENSSL
default y if BR2_PACKAGE_GNUTLS
default y if BR2_PACKAGE_LIBNSS
default y if BR2_PACKAGE_MBEDTLS
choice
prompt "SSL/TLS library to use"
depends on BR2_PACKAGE_LIBCURL_TLS_SUPPORT
config BR2_PACKAGE_LIBCURL_OPENSSL
bool "OpenSSL"
depends on BR2_PACKAGE_OPENSSL
config BR2_PACKAGE_LIBCURL_GNUTLS
bool "GnuTLS"
depends on BR2_PACKAGE_GNUTLS
config BR2_PACKAGE_LIBCURL_LIBNSS
bool "NSS"
depends on BR2_PACKAGE_LIBNSS
config BR2_PACKAGE_LIBCURL_MBEDTLS
bool "mbed TLS"
depends on BR2_PACKAGE_MBEDTLS
endchoice
comment "A TLS library is needed for SSL/TLS support"
depends on !BR2_PACKAGE_LIBCURL_TLS_SUPPORT
endif