package/libcpprestsdk: zlib is optional, not mandatory
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 14 Mar 2020 22:20:26 +0000 (23:20 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 25 Apr 2020 13:41:11 +0000 (15:41 +0200)
commitfe2b8e8a394c3a0a21edc869e31da6e038a24623
treeac4d4faefd448c5f4eed87c58e5ba40c29dc8e19
parente431e04c90dbe6434e26b6f8acd92620a21c71e8
package/libcpprestsdk: zlib is optional, not mandatory

The CMakeLists.txt contains:

  if(CPPREST_EXCLUDE_COMPRESSION)
  if(NOT CPPREST_EXCLUDE_BROTLI)
  message(FATAL_ERROR "Use of Brotli requires compression to be enabled")
  endif()

libcpprestsdk requires openssl, so if the libopenssl provider is
chosen, it anyway pulls in zlib. But if libressl is used as a
provider, it doesn't pull in zlib, and building libcpprestsdk becomes
possible without zlib thanks to this patch.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libcpprestsdk/Config.in
package/libcpprestsdk/libcpprestsdk.mk