summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/pistache/pistache_0.4.26.bb
blob: b0a20e3eceb7a7c07d3ec5cf4349484b9ecac3af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SUMMARY = "A high-performance REST toolkit written in C++"
HOMEPAGE = "https://pistacheio.github.io/pistache"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"

SRC_URI = "git://github.com/pistacheio/pistache.git;branch=master;protocol=https"
# SRCREV tagged 0.4.26
SRCREV = "ddffda861aa49012dcda28f1362d0339e718cd52"


DEPENDS = "rapidjson"

inherit pkgconfig meson

PACKAGECONFIG ?= "openssl brotli deflate zstd examples"
PACKAGECONFIG[openssl]  = "-DPISTACHE_USE_SSL=true, -DPISTACHE_USE_SSL=false, openssl"
PACKAGECONFIG[brotli]   = "-DPISTACHE_USE_CONTENT_ENCODING_BROTLI=true, -DPISTACHE_USE_CONTENT_ENCODING_BROTLI=false, brotli"
PACKAGECONFIG[deflate]  = "-DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=true, -DPISTACHE_USE_CONTENT_ENCODING_DEFLATE=false, zlib"
PACKAGECONFIG[zstd]     = "-DPISTACHE_USE_CONTENT_ENCODING_ZSTD=true, -DPISTACHE_USE_CONTENT_ENCODING_ZSTD=false, zstd"
PACKAGECONFIG[examples] = "-DPISTACHE_BUILD_EXAMPLES=true, -DPISTACHE_BUILD_EXAMPLES=false"
PACKAGECONFIG[test]     = "-DPISTACHE_BUILD_TESTS=true, -DPISTACHE_BUILD_TESTS=false, gtest curl"

do_install:append () {
    if ${@bb.utils.contains("PACKAGECONFIG", "examples", "true", "false", d)}; then
        install -d ${D}${bindir}
        rm -rf ${B}/examples/*.p/
        install -m 0755 ${B}/examples/run*   ${D}${bindir}/
    fi
}

PACKAGES += "${PN}-examples"
FILES:${PN}:remove  = " ${bindir}/*"
RDEPENDS:${PN}-examples += "${PN}"
FILES:${PN}-examples = "${bindir}"

RDEPENDS:${PN} += "rapidjson"

COMPATIBLE_HOST:libc-musl = "null"

BBCLASSEXTEND = "native nativesdk"