cpp-common: add nlohmann/json header-only dependency
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 20 Jan 2022 15:31:33 +0000 (10:31 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 31 May 2023 19:47:48 +0000 (15:47 -0400)
commitd43d15c805bb5a8ca39212b07852a5b12de56432
treef89461bfdb7a861a9db8d2c9066d961f9eb38ecd
parentfb10c90e14cca6cc8743cde1b4d116d45ce03bf7
cpp-common: add nlohmann/json header-only dependency

This commit adds the C++ nlohmann JSON library which comes from the
MIT-licensed <https://github.com/nlohmann/json/> project [1].

Babeltrace 2 will be using this library to encode JSON strings during
the generation of CTF 2 traces.

In any Babeltrace 2 C++ file, include it like this:

    #include "cpp-common/nlohmann/json.hpp"

[1] https://raw.githubusercontent.com/nlohmann/json/a0c1318830519eac027a31edec1a99ce1ae5670e/single_include/nlohmann/json.hpp

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I139ea0c0763a129a8d4db351f8ece2edb1c112dd
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7321
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7138
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/Makefile.am
src/cpp-common/nlohmann/json.hpp [new file with mode: 0644]
tools/format-cpp
This page took 0.026642 seconds and 4 git commands to generate.