package/libcurl: introduce option to enable WebSockets support

Signed-off-by: Alisa Volk <aolvolk@salutedevices.com>
[yann.morin.1998@free.fr: drop "default n"]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Alisa Volk 2023-10-31 20:24:15 +03:00 committed by Yann E. MORIN
parent 9705d30026
commit 6e000dba5f
2 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,11 @@ config BR2_PACKAGE_LIBCURL_COOKIES_SUPPORT
help
Enable support for cookies.
config BR2_PACKAGE_LIBCURL_WEBSOCKETS_SUPPORT
bool "websockets support"
help
Enable support for websockets.
config BR2_PACKAGE_LIBCURL_EXTRA_PROTOCOLS_FEATURES
bool "enable extra protocols and features"
default y

View File

@ -154,6 +154,12 @@ else
LIBCURL_CONF_OPTS += --disable-proxy
endif
ifeq ($(BR2_PACKAGE_LIBCURL_WEBSOCKETS_SUPPORT),y)
LIBCURL_CONF_OPTS += --enable-websockets
else
LIBCURL_CONF_OPTS += --disable-websockets
endif
ifeq ($(BR2_PACKAGE_LIBCURL_EXTRA_PROTOCOLS_FEATURES),y)
LIBCURL_CONF_OPTS += \
--enable-dict \