package/json-for-modern-cpp: enable multiple headers by default
authorDimitrij Kotrev <dimitrij.kotrev@googlemail.com>
Mon, 15 Mar 2021 08:17:02 +0000 (09:17 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 16 Mar 2021 20:57:52 +0000 (21:57 +0100)
commitf17b25550df9223dfeb62b0eeb66cacb5189125f
treeb56806671c4a0b6fe0e4665128f711bee22083c3
parente471e5dd41d382d96ecc47ff082a7433571494d8
package/json-for-modern-cpp: enable multiple headers by default

json-for-modern-cpp provides an option to enable multiple headers support.
Currently this option is disabled and the package creates just a
single header: "nlohmann/json.hpp", which contains everything. Enabling
this option, splits this single header into multiple ones. First of all
this provides an additional header: "nlohmann/json_fwd.hpp", which contains
only forwarding declarations of types provided by this library. This
gives you a more finer control over include dependencies and can speed up
build times significantly. The top level header: "nlohmann/json.hpp" is
still there and therefore code which used it before, would stay compatible.

Signed-off-by: Dimitrij Kotrev <dimitrij.kotrev@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/json-for-modern-cpp/json-for-modern-cpp.mk