meson: rely on nlohmann json
This project relies on nlohmann json, but didn't specifies the
correct dependency.
This commit adds the missing dep. The wrap file is from other repos.
Tested: it builds
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I18ba19085eec5e24e75859548de07e621e1fb163
diff --git a/meson.build b/meson.build
index 24403ad..4271a39 100644
--- a/meson.build
+++ b/meson.build
@@ -38,6 +38,7 @@
dependency('systemd'),
dependency('sdbusplus'),
dependency('phosphor-logging'),
+ dependency('nlohmann_json'),
]
executable(
diff --git a/subprojects/nlohmann_json.wrap b/subprojects/nlohmann_json.wrap
new file mode 100644
index 0000000..3745380
--- /dev/null
+++ b/subprojects/nlohmann_json.wrap
@@ -0,0 +1,6 @@
+[wrap-git]
+revision = HEAD
+url = https://github.com/nlohmann/json.git
+
+[provide]
+nlohmann_json = nlohmann_json_dep