2019-09-15 00:23:02 +08:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libuwsc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-07 13:13:25 +08:00
|
|
|
LIBUWSC_VERSION = 3.3.5
|
2019-09-15 00:23:02 +08:00
|
|
|
LIBUWSC_SITE = https://github.com/zhaojh329/libuwsc/releases/download/v$(LIBUWSC_VERSION)
|
|
|
|
LIBUWSC_LICENSE = MIT
|
|
|
|
LIBUWSC_LICENSE_FILES = LICENSE
|
|
|
|
LIBUWSC_INSTALL_STAGING = YES
|
|
|
|
LIBUWSC_DEPENDENCIES = libev
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBUWSC_DEPENDENCIES += openssl
|
|
|
|
LIBUWSC_CONF_OPTS += \
|
|
|
|
-DUWSC_SSL_SUPPORT=ON \
|
|
|
|
-DUWSC_USE_MBEDTLS=OFF \
|
|
|
|
-DUWSC_USE_OPENSSL=ON \
|
|
|
|
-DUWSC_USE_WOLFSSL=OFF
|
2022-12-09 04:26:10 +08:00
|
|
|
else ifeq ($(BR2_PACKAGE_WOLFSSL_ALL),y)
|
2019-09-15 00:23:02 +08:00
|
|
|
LIBUWSC_DEPENDENCIES += wolfssl
|
|
|
|
LIBUWSC_CONF_OPTS += \
|
|
|
|
-DUWSC_SSL_SUPPORT=ON \
|
|
|
|
-DUWSC_USE_MBEDTLS=OFF \
|
|
|
|
-DUWSC_USE_OPENSSL=OFF \
|
|
|
|
-DUWSC_USE_WOLFSSL=ON
|
|
|
|
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
|
|
|
LIBUWSC_DEPENDENCIES += mbedtls
|
|
|
|
LIBUWSC_CONF_OPTS += \
|
|
|
|
-DUWSC_SSL_SUPPORT=ON \
|
|
|
|
-DUWSC_USE_MBEDTLS=ON \
|
|
|
|
-DUWSC_USE_OPENSSL=OFF \
|
|
|
|
-DUWSC_USE_WOLFSSL=OFF
|
|
|
|
else
|
|
|
|
LIBUWSC_CONF_OPTS += -DUWSC_SSL_SUPPORT=OFF
|
|
|
|
endif
|
|
|
|
|
2020-04-20 07:26:27 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_LUA):$(BR2_STATIC_LIBS),y:)
|
2019-09-15 00:23:02 +08:00
|
|
|
LIBUWSC_DEPENDENCIES += lua
|
|
|
|
LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=ON
|
|
|
|
else
|
|
|
|
LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=OFF
|
|
|
|
endif
|
|
|
|
|
2020-04-20 07:26:28 +08:00
|
|
|
# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable
|
|
|
|
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
|
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
|
|
|
|
endif
|
|
|
|
|
2019-09-15 00:23:02 +08:00
|
|
|
$(eval $(cmake-package))
|