Enable standalone build

This adds the wrap files needed to build host-error-monitor using meson
directly without Yocto.

Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Change-Id: I5ee43dd5c72889b798070346dd705f3923a31690
diff --git a/meson.build b/meson.build
index 6f6a1f7..8bb3675 100644
--- a/meson.build
+++ b/meson.build
@@ -30,7 +30,11 @@
     'systemdsystemunitdir'
 )
 
-boost = dependency('boost', version: '>=1.82')
+boost = dependency('boost', version : '>=1.82.0', required : false, include_type: 'system')
+if not boost.found()
+  boost = subproject('boost', required: true).get_variable('boost_dep')
+  boost = boost.as_system('system')
+endif
 add_project_arguments(
   [
     '-DBOOST_ASIO_DISABLE_THREADS',
diff --git a/subprojects/boost.wrap b/subprojects/boost.wrap
new file mode 100644
index 0000000..a25e9f1
--- /dev/null
+++ b/subprojects/boost.wrap
@@ -0,0 +1,11 @@
+[wrap-file]
+directory = boost_1_82_0
+
+source_url = https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.tar.bz2
+source_hash = a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6
+source_filename = 1_82_0.tar.bz2
+
+patch_directory = boost
+
+[provide]
+boost = boost_dep
diff --git a/subprojects/libgpiod.wrap b/subprojects/libgpiod.wrap
new file mode 100755
index 0000000..f650e74
--- /dev/null
+++ b/subprojects/libgpiod.wrap
@@ -0,0 +1,13 @@
+[wrap-file]
+directory = libgpiod-1.6.3
+source_url = https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-1.6.3.tar.gz
+source_filename = libgpiod-1.6.3.tar.gz
+source_hash = eb446070be1444fd7d32d32bbca53c2f3bbb0a21193db86198cf6050b7a28441
+patch_filename = libgpiod_1.6.3-1_patch.zip
+patch_url = https://wrapdb.mesonbuild.com/v2/libgpiod_1.6.3-1/get_patch
+patch_hash = 76821c637073679a88f77593c6f7ce65b4b5abf8c998f823fffa13918c8761df
+
+[provide]
+libgpiod = gpiod_dep
+libgpiodcxx = gpiodcxx_dep
+
diff --git a/subprojects/libpeci.wrap b/subprojects/libpeci.wrap
new file mode 100644
index 0000000..521591b
--- /dev/null
+++ b/subprojects/libpeci.wrap
@@ -0,0 +1,6 @@
+[wrap-git]
+url = https://github.com/openbmc/libpeci.git
+revision = HEAD
+
+[provide]
+libpeci = libpeci_dep
diff --git a/subprojects/packagefiles/boost/meson.build b/subprojects/packagefiles/boost/meson.build
new file mode 100644
index 0000000..ba95618
--- /dev/null
+++ b/subprojects/packagefiles/boost/meson.build
@@ -0,0 +1,9 @@
+project('boost',
+    'cpp',
+    version : '1.82.0',
+    license : 'Boost'
+)
+
+boost_dep = declare_dependency(
+    include_directories : include_directories('.'),
+)
diff --git a/subprojects/sdbusplus.wrap b/subprojects/sdbusplus.wrap
new file mode 100644
index 0000000..edd9a31
--- /dev/null
+++ b/subprojects/sdbusplus.wrap
@@ -0,0 +1,7 @@
+[wrap-git]
+url = https://github.com/openbmc/sdbusplus.git
+revision = HEAD
+
+[provide]
+sdbusplus = sdbusplus_dep
+program_names = sdbus++, sdbus++-gen-meson