diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-03-22 10:44:56 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-03-24 09:45:25 -0700 |
| commit | 6806ca66066c0aed2ca82a70404ffc196ec64663 (patch) | |
| tree | 10d058b625f666c1483b0e9ff6b00d4f716962e5 /meta-oe/recipes-devtools | |
| parent | 8df60dc8d69ffa506fd923f8db91a2a8aa33343f (diff) | |
| download | meta-openembedded-6806ca66066c0aed2ca82a70404ffc196ec64663.tar.gz | |
valijson: move out of hard dep on meta-networking
curlpp is only needed to build examples, therefore make it a
packageconfig and keep it disabled, which is default anyway
Add packageconfigs for tests and disabling boost as well.
Include boost support by default.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
| -rw-r--r-- | meta-oe/recipes-devtools/valijson/valijson_0.6.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/valijson/valijson_0.6.bb b/meta-oe/recipes-devtools/valijson/valijson_0.6.bb new file mode 100644 index 0000000000..4bed4a4f10 --- /dev/null +++ b/meta-oe/recipes-devtools/valijson/valijson_0.6.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SUMMARY = "Header-only C++ library for JSON Schema validation" | ||
| 2 | HOMEPAGE = "https://github.com/tristanpenman/valijson" | ||
| 3 | LICENSE = "BSD-2-Clause" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=015106c62262b2383f6c72063f0998f2" | ||
| 5 | |||
| 6 | SRC_URI = "git://github.com/tristanpenman/valijson.git;branch=master;protocol=https" | ||
| 7 | SRCREV = "2dfc7499a31b84edef71189f4247919268ebc74e" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | |||
| 11 | inherit cmake | ||
| 12 | |||
| 13 | PACKAGECONFIG ?= "boost" | ||
| 14 | |||
| 15 | PACKAGECONFIG[boost] = "-Dvalijson_EXCLUDE_BOOST=FALSE,-Dvalijson_EXCLUDE_BOOST=TRUE,boost" | ||
| 16 | PACKAGECONFIG[examples] = "-Dvalijson_BUILD_EXAMPLES=TRUE,-Dvalijson_BUILD_EXAMPLES=FALSE,curlpp" | ||
| 17 | PACKAGECONFIG[tests] = "-Dvalijson_BUILD_TESTS=TRUE,-Dvalijson_BUILD_TESTS=FALSE,curlpp" | ||
| 18 | |||
| 19 | # valijson is a header only C++ library, so the main package will be empty. | ||
| 20 | RDEPENDS:${PN}-dev = "" | ||
| 21 | |||
| 22 | BBCLASSEXTEND = "native nativesdk" | ||
| 23 | |||
| 24 | do_install() { | ||
| 25 | install -d ${D}${includedir}/compat | ||
| 26 | install -d ${D}${includedir}/valijson | ||
| 27 | install -d ${D}${includedir}/valijson/adapters | ||
| 28 | install -d ${D}${includedir}/valijson/constraints | ||
| 29 | install -d ${D}${includedir}/valijson/internal | ||
| 30 | install -d ${D}${includedir}/valijson/utils | ||
| 31 | |||
| 32 | install -m 0644 ${S}/include/compat/* ${D}${includedir}/compat | ||
| 33 | install -D -m 0644 ${S}/include/valijson/*.hpp -t ${D}${includedir}/valijson | ||
| 34 | install -D -m 0644 ${S}/include/valijson/adapters/*.hpp -t ${D}${includedir}/valijson/adapters | ||
| 35 | install -D -m 0644 ${S}/include/valijson/constraints/*.hpp -t ${D}${includedir}/valijson/constraints | ||
| 36 | install -D -m 0644 ${S}/include/valijson/internal/*.hpp -t ${D}${includedir}/valijson/internal | ||
| 37 | install -D -m 0644 ${S}/include/valijson/utils/*.hpp -t ${D}${includedir}/valijson/utils | ||
| 38 | } | ||
