Files
meta-openembedded/meta-oe/recipes-devtools/nlohmann-json/nlohmann-json_3.10.4.bb
zhengruoqin afe89c5521 nlohmann-json: upgrade 3.10.2 -> 3.10.4
Note you can support this project via GitHub sponsors or PayPal.

Bug Fixes
Fix regression bug introduced in release 3.10.0 which broke compilation
for types with an explicit default constructor with default arguments.
#3077 #3079
Fix regression bug introduced in release 3.10.0 which treated the
return values of std::find and std::remove as pointers which could
break compilation. #3081 #3082
Fix converting std::filesystem::path to JSON. Before release 3.10.3,
such a conversion would trigger a stack overflow. Release 3.10.3 then
further broke compilation on Windows. #3070 #3073

Deprecated functions
Passing iterator pairs or pointer/length pairs to parsing functions
(basic_json::parse, basic_json::accept, basic_json::sax_parse,
basic_json::from_cbor, basic_json::from_msgpack, basic_json::from_ubjson,
basic_json::from_bson) via initializer lists is deprecated. Instead,
pass two iterators; for instance, call basic_json::from_cbor(ptr, ptr+len)
instead of basic_json::from_cbor({ptr, len}).

The following functions have been deprecated in earlier versions and
will be removed in the next major version (i.e., 4.0.0):

Function iterator_wrapper are deprecated.
Please use the member function items() instead.
Functions friend std::istream& operator<<(basic_json&, std::istream&)
and friend std::ostream& operator>>(const basic_json&, std::ostream&)
are deprecated. Please use friend std::istream& operator>>(std::istream&,
basic_json&) and friend operator<<(std::ostream&, const basic_json&) instead.
All deprecations are annotated with HEDLEY_DEPRECATED_FOR to report
which function to use instead.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-19 09:23:08 -07:00

29 lines
721 B
BlitzBasic

SUMMARY = "JSON for modern C++"
HOMEPAGE = "https://nlohmann.github.io/json/"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.MIT;md5=441793d25a658d58d79a1f87516a6ad1"
SRC_URI = "git://github.com/nlohmann/json.git;nobranch=1 \
"
SRCREV = "fec56a1a16c6e1c1b1f4e116a20e79398282626c"
S = "${WORKDIR}/git"
inherit cmake
EXTRA_OECMAKE += "-DJSON_BuildTests=OFF"
# nlohmann-json is a header only C++ library, so the main package will be empty.
RDEPENDS:${PN}-dev = ""
BBCLASSEXTEND = "native nativesdk"
# other packages commonly reference the file directly as "json.hpp"
# create symlink to allow this usage
do_install:append() {
ln -s nlohmann/json.hpp ${D}${includedir}/json.hpp
}