package/libcpprestsdk: add optional brotli dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 24 Mar 2019 14:09:38 +0000 (15:09 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 24 Mar 2019 22:04:44 +0000 (23:04 +0100)
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>
package/libcpprestsdk/libcpprestsdk.mk

index d527aaad98046dd254b9d0014d3afc8889faada8..fd1201f287a31fc20b90b81ec55ef4cb2ada22ac 100644 (file)
@@ -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