blob: 65e49bc95b9ade70a5a3a1cc0d52e7624e7ca27d [file] [log] [blame]
James Feiste3322992018-10-04 16:15:37 -07001SUMMARY = "JSON for modern C++"
2HOMEPAGE = "https://nlohmann.github.io/json/"
3SECTION = "libs"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE.MIT;md5=9a8ae1c2d606c432a2aa2e2de15be22a"
6
7SRC_URI = "git://github.com/nlohmann/json.git"
8
James Feistcb07cdf2018-10-11 13:47:04 -07009PV = "3.3.0+git${SRCPV}"
James Feiste3322992018-10-04 16:15:37 -070010
James Feistcb07cdf2018-10-11 13:47:04 -070011SRCREV = "aafad2be1f3cd259a1e79d2f6fcf267d1ede9ec7"
James Feiste3322992018-10-04 16:15:37 -070012
13S = "${WORKDIR}/git"
14
15inherit cmake
16
17EXTRA_OECMAKE += "-DJSON_BuildTests=OFF"
18
19# nlohmann-json is a header only C++ library, so the main package will be empty.
20
21RDEPENDS_${PN}-dev = ""
22
23BBCLASSEXTEND = "native nativesdk"
James Feistcb07cdf2018-10-11 13:47:04 -070024
25# other packages commonly reference the file directly as "json.hpp"
26# create symlink to allow this usage
27do_install_append() {
28 ln -s nlohmann/json.hpp ${D}${includedir}/json.hpp
29}