From 8d6d1264a77dc338a9e02294a606b2048bf87dbc Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 31 Oct 2025 12:10:00 -0700 Subject: [PATCH] Add meson information to FILES.md Signed-off-by: Dylan Baker --- FILES.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/FILES.md b/FILES.md index 2e8bfaecf..5c5106f10 100644 --- a/FILES.md +++ b/FILES.md @@ -260,7 +260,22 @@ make BUILD.bazel The "Check amalgamation" workflow fails if the file is out of date. -### `meson.build` +### `meson.build` and `meson_options.txt` + +Meson build definitions suitable for use as a subproject ("wrap" in Meson terminology). + +Projects wishing to use the wrap can execute: +```sh +meson wrap install nlohmann_json +``` + +Which allows Meson to build from source when a system provided dependency isn't available. + +To build directly: +```sh +meson setup builddir +ninja -C builddir +``` The build definition for the [Meson](https://mesonbuild.com) build system. When installing, it also installs the CMake package config files so that `find_package(nlohmann_json)` works. As Meson cannot generate `nlohmann_jsonTargets.cmake` itself, it is