SUMMARY = "Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design."
SECTION = "libs/network"
HOMEPAGE = "https://github.com/Microsoft/cpprestsdk/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/license.txt;md5=a2e15b954769218ff912468eecd6a02f"
DEPENDS = "openssl websocketpp zlib boost brotli"

EXTRA_OECMAKE = "-DCPPREST_EXPORT_DIR=cmake -DCPPREST_EXCLUDE_BROTLI=OFF"

SRC_URI = "git://github.com/Microsoft/cpprestsdk.git;protocol=https;branch=master \
           file://disable-float-tests.patch \
           file://disable-outside-tests.patch "

# tag 2.10.13
SRCREV= "9d8f544001cb74544de6dc8c565592f7e2626d6e"

S = "${WORKDIR}/git"

inherit cmake pkgconfig

# Temporary until https://github.com/Microsoft/cpprestsdk/issues/1099
# is fixed properly
CXXFLAGS += "-Wno-error=deprecated-copy -Wno-error=redundant-move"

SUMMARY = "Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design."
SECTION = "libs/network"
HOMEPAGE = "https://github.com/Microsoft/cpprestsdk/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/license.txt;md5=a2e15b954769218ff912468eecd6a02f"
DEPENDS = "openssl websocketpp zlib boost brotli"

EXTRA_OECMAKE = "-DCPPREST_EXPORT_DIR=cmake -DCPPREST_EXCLUDE_BROTLI=OFF"

SRC_URI = "git://github.com/Microsoft/cpprestsdk.git;protocol=https;branch=master \
           file://disable-float-tests.patch \
           file://disable-outside-tests.patch "

# tag 2.10.13
SRCREV= "9d8f544001cb74544de6dc8c565592f7e2626d6e"

S = "${WORKDIR}/git"

inherit cmake pkgconfig

CXXFLAGS += "-Wno-error"

Fix build failure with gcc 8
cpprest: Fix build failure with gcc 8

The workaround for gcc 9 broke building with gcc 8:
     cc1plus: error: -Werror=deprecated-copy: no option -Wdeprecated-copy
     cc1plus: error: -Werror=redundant-move: no option -Wredundant-move
     ninja: build stopped: subcommand failed.

-Werror is often problematic in distribution builds,
disable it globally and permanently.

Signed-off-by: Adrian Bunk <0b86548ef377da0031a3ff3f0c4e06f016e20105@stusta.de>
Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
