Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libwebsockets: option for building with LWS_WITH_ZIP_FOPS
@ 2022-02-11  8:13 Jörgen Sigvardsson
  2022-04-01  7:42 ` Joachim Wiberg
  2022-08-21 20:13 ` Yann E. MORIN
  0 siblings, 2 replies; 3+ messages in thread
From: Jörgen Sigvardsson @ 2022-02-11  8:13 UTC (permalink / raw)
  To: buildroot; +Cc: Jörgen Sigvardsson

Signed-off-by: Jörgen Sigvardsson <jorgen.sigvardsson@gmail.com>
---
 package/libwebsockets/Config.in        | 14 ++++++++++++++
 package/libwebsockets/libwebsockets.mk |  4 ++++
 2 files changed, 18 insertions(+)

diff --git a/package/libwebsockets/Config.in b/package/libwebsockets/Config.in
index d7b529cafd..8db1d8b975 100644
--- a/package/libwebsockets/Config.in
+++ b/package/libwebsockets/Config.in
@@ -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
diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
index c25686d385..a62f1c70d9 100644
--- a/package/libwebsockets/libwebsockets.mk
+++ b/package/libwebsockets/libwebsockets.mk
@@ -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))
-- 
2.32.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-21 20:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11  8:13 [Buildroot] [PATCH 1/1] package/libwebsockets: option for building with LWS_WITH_ZIP_FOPS Jörgen Sigvardsson
2022-04-01  7:42 ` Joachim Wiberg
2022-08-21 20:13 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox