![Martin Elshuber](/assets/img/avatar_default.png)
libwebsockets allows the usage of unix-domain-sockets since 2016, so explicitly enable it (size increase is a ridiculous 12 bytes on ARM). Signed-off-by: Martin Elshuber <martin.elshuber@theobroma-systems.com> Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com> [yann.morin.1998@free.fr: always enable, don't add a menuconfig entry] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
66 lines
1.8 KiB
Makefile
66 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# libwebsockets
|
|
#
|
|
################################################################################
|
|
|
|
LIBWEBSOCKETS_VERSION = 3.2.2
|
|
LIBWEBSOCKETS_SITE = $(call github,warmcat,libwebsockets,v$(LIBWEBSOCKETS_VERSION))
|
|
LIBWEBSOCKETS_LICENSE = LGPL-2.1 with exceptions
|
|
LIBWEBSOCKETS_LICENSE_FILES = LICENSE
|
|
LIBWEBSOCKETS_DEPENDENCIES = zlib
|
|
LIBWEBSOCKETS_INSTALL_STAGING = YES
|
|
LIBWEBSOCKETS_CONF_OPTS = \
|
|
-DLWS_WITHOUT_TESTAPPS=ON \
|
|
-DLWS_IPV6=ON \
|
|
-DLWS_UNIX_SOCK=ON
|
|
|
|
# If LWS_MAX_SMP=1, then there is no code related to pthreads compiled
|
|
# in the library. If unset, LWS_MAX_SMP defaults to 32 and a small
|
|
# amount of pthread mutex code is built into the library.
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=1
|
|
else
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON
|
|
else
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF
|
|
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_DEPENDENCIES += libevent
|
|
LIBWEBSOCKETS_CONF_OPTS += \
|
|
-DLWS_WITH_LIBEV=OFF \
|
|
-DLWS_WITH_LIBEVENT=ON
|
|
else
|
|
LIBWEBSOCKETS_CONF_OPTS += \
|
|
-DLWS_WITH_LIBEV=OFF \
|
|
-DLWS_WITH_LIBEVENT=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUV),y)
|
|
LIBWEBSOCKETS_DEPENDENCIES += libuv
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=ON
|
|
else
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SHARED=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_SHARED_LIBS),y)
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_STATIC=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|