meson: Provide wrap file for boost
Currently local build on the system without boost can fail with
the following message:
"""
meson.build: ERROR: Dependency "boost" not found, tried system
"""
Provide "boost.wrap" file to fix the issue.
Change-Id: I97f1e5542b7b097de8241d68dd021f44b7e3e5f4
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/.gitignore b/.gitignore
index 22d836c..bf72bf2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
/subprojects/*
!subprojects/sdbusplus.wrap
!subprojects/phosphor-logging.wrap
+!subprojects/boost.wrap
+!subprojects/packagefiles
diff --git a/subprojects/boost.wrap b/subprojects/boost.wrap
new file mode 100644
index 0000000..49a32b8
--- /dev/null
+++ b/subprojects/boost.wrap
@@ -0,0 +1,11 @@
+[wrap-file]
+directory = boost_1_84_0
+
+source_url = https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.bz2
+source_hash = cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454
+source_filename = 1_84_0.tar.bz2
+
+patch_directory = boost
+
+[provide]
+boost = boost_dep
diff --git a/subprojects/packagefiles/boost/meson.build b/subprojects/packagefiles/boost/meson.build
new file mode 100644
index 0000000..2caabf5
--- /dev/null
+++ b/subprojects/packagefiles/boost/meson.build
@@ -0,0 +1,11 @@
+project('boost',
+ 'cpp',
+ version : '1.84.0',
+ license : 'Boost'
+)
+
+boost_dep = declare_dependency(
+ include_directories : include_directories('.'),
+)
+
+meson.override_dependency('boost', boost_dep)