aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-03-24 15:09:38 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-03-24 23:04:44 +0100
commitb386e153958ece9a497efd4e27e7bd7657141c64 (patch)
treea4e5c4b612d3a20710777b471d1041443af70da2 /package
parent735bedd0d32e18210c38d10ef74f69fc750114c9 (diff)
downloadbuildroot-b386e153958ece9a497efd4e27e7bd7657141c64.tar.gz
buildroot-b386e153958ece9a497efd4e27e7bd7657141c64.tar.bz2
package/libcpprestsdk: add optional brotli dependency
Official brotli support has been added in version 2.10.8 and https://github.com/Microsoft/cpprestsdk/commit/f3824aa8d01705656e7ee4c0c49ae6980c868b20 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package')
-rw-r--r--package/libcpprestsdk/libcpprestsdk.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/libcpprestsdk/libcpprestsdk.mk b/package/libcpprestsdk/libcpprestsdk.mk
index d527aaad98..fd1201f287 100644
--- a/package/libcpprestsdk/libcpprestsdk.mk
+++ b/package/libcpprestsdk/libcpprestsdk.mk
@@ -16,6 +16,13 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
LIBCPPRESTSDK_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_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