diff options
author | David Cobbley <david.j.cobbley@linux.intel.com> | 2017-12-19 01:43:42 +0300 |
---|---|---|
committer | David Cobbley <david.j.cobbley@linux.intel.com> | 2017-12-21 00:27:26 +0300 |
commit | f0f74b95193e4ae0e4f25e8d6490b9e3ed5e0a41 (patch) | |
tree | 8ed6446f0c88fe0b7ddf29ff6a4b1965b549be73 | |
parent | 36a02343088678ca3d6e168b73cad89529d11812 (diff) | |
download | openbmc-f0f74b95193e4ae0e4f25e8d6490b9e3ed5e0a41.tar.xz |
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 <david.j.cobbley@linux.intel.com>
-rw-r--r-- | meta-phosphor/common/recipes-support/nlohmann-json/nlohmann-json_git.bb | 16 |
1 files changed, 16 insertions, 0 deletions
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 +} |