From f0f74b95193e4ae0e4f25e8d6490b9e3ed5e0a41 Mon Sep 17 00:00:00 2001 From: David Cobbley Date: Mon, 18 Dec 2017 14:43:42 -0800 Subject: Add Nlohmann JSON library This will make use of the Nlohmann JSON library accessible in the sysroot for other packages to compile with. Use: #include "nlohmann/json.hpp" Change-Id: Ia1dc032bc847fa156c0f7c12afb117e2ae3c2192 Signed-off-by: David Cobbley --- .../recipes-support/nlohmann-json/nlohmann-json_git.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta-phosphor/common/recipes-support/nlohmann-json/nlohmann-json_git.bb (limited to 'meta-phosphor') diff --git a/meta-phosphor/common/recipes-support/nlohmann-json/nlohmann-json_git.bb b/meta-phosphor/common/recipes-support/nlohmann-json/nlohmann-json_git.bb new file mode 100644 index 000000000..2f58e4b48 --- /dev/null +++ b/meta-phosphor/common/recipes-support/nlohmann-json/nlohmann-json_git.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "JSON for modern C++" +HOMEPAGE = "https://nlohmann.github.io/json/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.MIT;md5=f8a8f918f1513404c8366d7a63ab6d97" + +SRC_URI = "git://github.com/nlohmann/json.git;branch=release/3.0.0" + +PV = "3.0.0+git${SRCPV}" + +SRCREV = "106f9f5436f6726006627ce3122fddf7fc9ca330" + +S = "${WORKDIR}/git" +do_install_append(){ + install -d ${D}${includedir}/nlohmann + install -m 644 ${S}/src/json.hpp ${D}${includedir}/nlohmann/json.hpp +} -- cgit v1.2.1