* [Buildroot] [PATCH 1/1] package/libwebsockets: enable libev and libevent support indipendently
@ 2023-03-10 13:48 Luca Pesce via buildroot
2023-03-12 9:58 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Luca Pesce via buildroot @ 2023-03-10 13:48 UTC (permalink / raw)
To: buildroot; +Cc: Luca Pesce
libev and libevent can be enabled at the same time since version 4.1.0,
thanks to the event lib support refactoring into plugins, which is enabled by
default for unix platform builds (LWS_WITH_EVLIB_PLUGINS=ON):
https://github.com/warmcat/libwebsockets/commit/c6c7ab2b4498c62bf9461b36395d8466e023575d
In this way, libwebsockets can be compiled with both libev and libevent
support, which is then user-selectable at runtime.
This basically restores the behavior changed by previous commit 27f257e.
Signed-off-by: Luca Pesce <luca.pesce@vimar.com>
---
package/libwebsockets/libwebsockets.mk | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
index 7962494..fb0ee66 100644
--- a/package/libwebsockets/libwebsockets.mk
+++ b/package/libwebsockets/libwebsockets.mk
@@ -57,18 +57,16 @@ endif
ifeq ($(BR2_PACKAGE_LIBEV),y)
LIBWEBSOCKETS_DEPENDENCIES += libev
-LIBWEBSOCKETS_CONF_OPTS += \
- -DLWS_WITH_LIBEV=ON \
- -DLWS_WITH_LIBEVENT=OFF
-else ifeq ($(BR2_PACKAGE_LIBEVENT),y)
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=ON
+else
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_LIBEVENT),y)
LIBWEBSOCKETS_DEPENDENCIES += libevent
-LIBWEBSOCKETS_CONF_OPTS += \
- -DLWS_WITH_LIBEV=OFF \
- -DLWS_WITH_LIBEVENT=ON
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEVENT=ON
else
-LIBWEBSOCKETS_CONF_OPTS += \
- -DLWS_WITH_LIBEV=OFF \
- -DLWS_WITH_LIBEVENT=OFF
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEVENT=OFF
endif
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
--
2.7.4
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libwebsockets: enable libev and libevent support indipendently
2023-03-10 13:48 [Buildroot] [PATCH 1/1] package/libwebsockets: enable libev and libevent support indipendently Luca Pesce via buildroot
@ 2023-03-12 9:58 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-03-12 9:58 UTC (permalink / raw)
To: Luca Pesce via buildroot; +Cc: Luca Pesce
On Fri, 10 Mar 2023 14:48:31 +0100
Luca Pesce via buildroot <buildroot@buildroot.org> wrote:
> libev and libevent can be enabled at the same time since version 4.1.0,
> thanks to the event lib support refactoring into plugins, which is enabled by
> default for unix platform builds (LWS_WITH_EVLIB_PLUGINS=ON):
> https://github.com/warmcat/libwebsockets/commit/c6c7ab2b4498c62bf9461b36395d8466e023575d
>
> In this way, libwebsockets can be compiled with both libev and libevent
> support, which is then user-selectable at runtime.
>
> This basically restores the behavior changed by previous commit 27f257e.
>
> Signed-off-by: Luca Pesce <luca.pesce@vimar.com>
> ---
> package/libwebsockets/libwebsockets.mk | 18 ++++++++----------
> 1 file changed, 8 insertions(+), 10 deletions(-)
Applied to next, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-12 9:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-10 13:48 [Buildroot] [PATCH 1/1] package/libwebsockets: enable libev and libevent support indipendently Luca Pesce via buildroot
2023-03-12 9:58 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox