package/libwebsockets: option for building with LWS_WITH_ZIP_FOPS
PATCH 1/1 package/libwebsockets: option for building with LWS_WITH_ZIP_FOPS
--- package/libwebsockets/Config.in | 14 ++++++++++++++ package/libwebsockets/libwebsockets.mk | 4 ++++ 2 files changed, 18 insertions(+)
package/libwebsockets/Config.in +14 -0
@@ -9,5 +9,19 @@ config BR2_PACKAGE_LIBWEBSOCKETS https://libwebsockets.org/ +if BR2_PACKAGE_LIBWEBSOCKETS + +config BR2_PACKAGE_LIBWEBSOCKETS_ZIP_FOPS + bool "enable serving files from zip archives" + default y + help + By enabling this flag, files can be served from a (preferably + uncompressed) zip file. Furthermore, the contained files can + be gzipped. Gzipped files may be delivered as-is (no deflation + needed) to clients that accept gzipped encoded contents (all + modern browsers do that). + +endif + comment "libwebsockets needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS
package/libwebsockets/libwebsockets.mk +4 -0
@@ -73,4 +73,8 @@ ifeq ($(BR2_SHARED_LIBS),y) LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_STATIC=OFF endif +ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS_ZIP_FOPS),y) +LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_ZIP_FOPS=ON +endif + $(eval $(cmake-package))
Signature · 6 lines
2.32.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 1 line · Jörgen Sigvardsson
Signed-off-by Jörgen Sigvardsson <[email protected]>
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Jörgen, All,
Sorry for the later feedback.
On 2022-02-11 09:13 +0100, Jörgen Sigvardsson spake thusly:
package/libwebsockets/Config.in config BR2_PACKAGE_LIBWEBSOCKETS · line 16
Quoted 7 lines
Signed-off-by Jörgen Sigvardsson <[email protected]>---
package/libwebsockets/Config.in +5
-0+if BR2_PACKAGE_LIBWEBSOCKETS + +config BR2_PACKAGE_LIBWEBSOCKETS_ZIP_FOPS + bool "enable serving files from zip archives" + default y
Options should not default to y, unless for backward compatibility.
package/libwebsockets/Config.in config BR2_PACKAGE_LIBWEBSOCKETS · line 22
Quoted 6 lines
package/libwebsockets/Config.in +6
-0+ help + By enabling this flag, files can be served from a (preferably + uncompressed) zip file. Furthermore, the contained files can + be gzipped. Gzipped files may be delivered as-is (no deflation + needed) to clients that accept gzipped encoded contents (all + modern browsers do that).
This is all a bit confusing... "Uncompressed zipfiles that can contain gzipped files, which can be served as-is..."
Maybe just duplicate the help text of the corresponding option:
option(LWS_WITH_ZIP_FOPS "Support serving pre-zipped files" OFF)
package/libwebsockets/libwebsockets.mk ifeq ($(BR2_SHARED_LIBS),y) · line 78
Quoted 3 lines
package/libwebsockets/libwebsockets.mk +3
-0+ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS_ZIP_FOPS),y) +LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_ZIP_FOPS=ON +endif
The option must be explicitly disabled:
ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS_ZIP_FOPS),y)
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_ZIP_FOPS=ON
else
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_ZIP_FOPS=OFF
endifRegards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot