2018-01-14 20:56:44 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libcpprestsdk
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-04-20 18:22:21 +02:00
|
|
|
LIBCPPRESTSDK_VERSION = v2.10.12
|
2018-01-14 20:56:44 +01:00
|
|
|
LIBCPPRESTSDK_SITE = $(call github,Microsoft,cpprestsdk,$(LIBCPPRESTSDK_VERSION))
|
|
|
|
LIBCPPRESTSDK_LICENSE = MIT
|
|
|
|
LIBCPPRESTSDK_LICENSE_FILES = license.txt
|
|
|
|
LIBCPPRESTSDK_SUBDIR = Release
|
2018-02-15 22:35:36 +01:00
|
|
|
LIBCPPRESTSDK_DEPENDENCIES += host-pkgconf boost openssl zlib
|
2019-03-05 10:59:38 +01:00
|
|
|
LIBCPPRESTSDK_CONF_OPTS = -DWERROR=OFF -DBUILD_SAMPLES=OFF
|
2018-01-14 20:56:44 +01:00
|
|
|
|
2019-04-17 23:00:50 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LIBCPPRESTSDK_CONF_OPTS += \
|
|
|
|
-DBoost_USE_STATIC_LIBS=ON \
|
|
|
|
-DBoost_USE_STATIC_RUNTIME=ON
|
|
|
|
endif
|
|
|
|
|
2019-02-15 22:33:15 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
|
|
|
|
endif
|
|
|
|
|
2019-03-24 15:09:38 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
|
|
|
LIBCPPRESTSDK_DEPENDENCIES += brotli
|
|
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_BROTLI=OFF
|
|
|
|
else
|
|
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_BROTLI=ON
|
|
|
|
endif
|
|
|
|
|
2019-02-12 23:45:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_WEBSOCKETPP),y)
|
|
|
|
LIBCPPRESTSDK_DEPENDENCIES += websocketpp
|
|
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_WEBSOCKETS=OFF
|
|
|
|
else
|
|
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_WEBSOCKETS=ON
|
|
|
|
endif
|
2018-01-14 20:56:44 +01:00
|
|
|
|
|
|
|
$(eval $(cmake-package))
|