2013-02-06 02:28:59 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libwebsockets
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-10-18 03:51:46 +02:00
|
|
|
LIBWEBSOCKETS_VERSION = v2.1.0
|
2016-03-02 22:35:40 +01:00
|
|
|
LIBWEBSOCKETS_SITE = $(call github,warmcat,libwebsockets,$(LIBWEBSOCKETS_VERSION))
|
2014-05-01 00:45:00 +02:00
|
|
|
LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
|
|
|
|
LIBWEBSOCKETS_LICENSE_FILES = LICENSE
|
2013-02-06 02:28:59 +01:00
|
|
|
LIBWEBSOCKETS_DEPENDENCIES = zlib
|
|
|
|
LIBWEBSOCKETS_INSTALL_STAGING = YES
|
2015-04-29 15:39:00 +02:00
|
|
|
LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON
|
2014-10-31 14:49:02 +01:00
|
|
|
|
2016-03-30 22:22:37 +02:00
|
|
|
# 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
|
|
|
|
|
2014-05-01 00:45:00 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2014-11-03 11:03:30 +01:00
|
|
|
LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl
|
2014-10-31 14:49:02 +01:00
|
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON
|
2014-05-01 00:45:00 +02:00
|
|
|
else
|
2014-10-31 14:49:02 +01:00
|
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF
|
2014-05-01 00:45:00 +02:00
|
|
|
endif
|
|
|
|
|
2016-03-02 22:35:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEV),y)
|
|
|
|
LIBWEBSOCKETS_DEPENDENCIES += libev
|
|
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=ON
|
|
|
|
else
|
|
|
|
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=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
|
|
|
|
|
2014-05-01 00:45:00 +02:00
|
|
|
$(eval $(cmake-package))
|