3d1586109e
libcpprestsdk is a library so it makes sense to install it in staging even if no current package is using it for now Fixes: - https://bugs.buildroot.org/show_bug.cgi?id=11936 Signed-off-by: Hein Gustavsen <hein.gustavsen@miros-group.com> [Retrieved (and slightly update commit message) from: https://bugs.buildroot.org/show_bug.cgi?id=11936] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# libcpprestsdk
|
|
#
|
|
################################################################################
|
|
|
|
LIBCPPRESTSDK_VERSION = 2.10.14
|
|
LIBCPPRESTSDK_SITE = $(call github,Microsoft,cpprestsdk,v$(LIBCPPRESTSDK_VERSION))
|
|
LIBCPPRESTSDK_LICENSE = MIT
|
|
LIBCPPRESTSDK_LICENSE_FILES = license.txt
|
|
LIBCPPRESTSDK_SUBDIR = Release
|
|
LIBCPPRESTSDK_INSTALL_STAGING = YES
|
|
LIBCPPRESTSDK_DEPENDENCIES += host-pkgconf boost openssl zlib
|
|
LIBCPPRESTSDK_CONF_OPTS = -DWERROR=OFF -DBUILD_SAMPLES=OFF
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
LIBCPPRESTSDK_CONF_OPTS += \
|
|
-DBoost_USE_STATIC_LIBS=ON \
|
|
-DBoost_USE_STATIC_RUNTIME=ON
|
|
endif
|
|
|
|
LIBCPPRESTSDK_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
LIBCPPRESTSDK_CXXFLAGS += -latomic
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
|
LIBCPPRESTSDK_DEPENDENCIES += brotli
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_BROTLI=OFF
|
|
else
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_BROTLI=ON
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_WEBSOCKETPP),y)
|
|
LIBCPPRESTSDK_DEPENDENCIES += websocketpp
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_WEBSOCKETS=OFF
|
|
else
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_WEBSOCKETS=ON
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
LIBCPPRESTSDK_CXXFLAGS += -O0
|
|
endif
|
|
|
|
LIBCPPRESTSDK_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(LIBCPPRESTSDK_CXXFLAGS)"
|
|
|
|
$(eval $(cmake-package))
|