1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/plat/unix
Andy Green c6c7ab2b44 event libs: default to building as dynamically loaded plugins
Event lib support as it has been isn't scaling well, at the low level
libevent and libev headers have a namespace conflict so they can't
both be built into the same image, and at the distro level, binding
all the event libs to libwebsockets.so makes a bloaty situation for
packaging, lws will drag in all the event libs every time.

This patch implements the plan discussed here

https://github.com/warmcat/libwebsockets/issues/1980

and refactors the event lib support so they are built into isolated
plugins and bound at runtime according to what the application says
it wants to use.  The event lib plugins can be packaged individually
so that only the needed sets of support are installed (perhaps none
of them if the user code is OK with the default poll() loop).  And
dependent user code can mark the specific event loop plugin package
as required so pieces are added as needed.

The eventlib-foreign example is also refactored to build the selected
lib support isolated.

A readme is added detailing the changes and how to use them.

https://libwebsockets.org/git/libwebsockets/tree/READMEs/README.event-libs.md
2020-08-31 16:51:37 +01:00
..
android cleaning 2020-01-05 22:17:58 +00:00
CMakeLists.txt event libs: default to building as dynamically loaded plugins 2020-08-31 16:51:37 +01:00
private-lib-plat-unix.h lws_mutex 2020-06-16 19:45:35 +01:00
unix-caps.c coverity: 49785: confirm initgroups worked 2020-08-19 07:21:55 +01:00
unix-fds.c CTest: migrate and deprecate existing selftest scripts 2020-05-11 15:40:13 +01:00
unix-file.c _GNU_SOURCE: only define if not already defined 2019-12-22 18:17:45 +00:00
unix-init.c event libs: default to building as dynamically loaded plugins 2020-08-31 16:51:37 +01:00
unix-misc.c coverity: 50976: check fsync return for cert write 2020-08-19 07:23:19 +01:00
unix-pipe.c event libs: default to building as dynamically loaded plugins 2020-08-31 16:51:37 +01:00
unix-plugins.c event libs: default to building as dynamically loaded plugins 2020-08-31 16:51:37 +01:00
unix-resolv.c ntpclient: add plat-specific init with env var LWS_NTP_SERVER able to set it on unix and windows 2020-04-25 15:11:21 +01:00
unix-service.c coverity: 62374: no need to init n 2020-08-18 14:00:54 +01:00
unix-sockets.c lws_interface_to_sa: confirm getifaddrs worked 2020-07-29 11:14:37 +01:00
unix-spawn.c freebsd: sai build adaptations 2020-08-10 15:04:10 +01:00