meson: Fix local build
Provide missing dependencies and necessary wrap files for the local
meson build.
Tested:
"meson setup build && cd build && meson compile" finishes successfully.
Change-Id: Ic5fc03326b12fd25cd041f53266fbdd9412e10bc
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..043584c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+build*/
+subprojects/*
+!subprojects/phosphor-logging.wrap
+!subprojects/nlohmann_json.wrap
diff --git a/meson.build b/meson.build
index f40a8a0..9f35bc3 100644
--- a/meson.build
+++ b/meson.build
@@ -21,6 +21,7 @@
dependency('sdbusplus'),
dependency('phosphor-dbus-interfaces'),
dependency('sdeventplus'),
+ dependency('nlohmann_json')
],
install: true,
install_dir: get_option('bindir')
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
diff --git a/subprojects/phosphor-logging.wrap b/subprojects/phosphor-logging.wrap
new file mode 100644
index 0000000..71eee8b
--- /dev/null
+++ b/subprojects/phosphor-logging.wrap
@@ -0,0 +1,6 @@
+[wrap-git]
+url = https://github.com/openbmc/phosphor-logging.git
+revision = HEAD
+
+[provide]
+phosphor-logging = phosphor_logging_dep