Upgrade boost 1.83->1.89
Boost 1.88 is now functionally required because it adds std::span
support for buffers. upgrade the subproject.
While we're here, update the minimum to require 1.88, and update to use
the cmake version that doesn't require wrapping.
Change-Id: I0ad724735edb5930c3dac727461bccad3f7b265e
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/subprojects/packagefiles/boost/meson.build b/subprojects/packagefiles/boost/meson.build
index 81e714b..85fd9b3 100644
--- a/subprojects/packagefiles/boost/meson.build
+++ b/subprojects/packagefiles/boost/meson.build
@@ -1,5 +1,21 @@
-project('boost', 'cpp', version: '1.83.0', license: 'Boost')
+project('boost', 'cpp', version: '1.89.0', license: 'Boost')
-boost_dep = declare_dependency(include_directories: include_directories('.'))
+cmake = import('cmake')
+opt = cmake.subproject_options()
+boost_libs = ['asio', 'headers']
+opt.add_cmake_defines(
+ {
+ 'BOOST_INCLUDE_LIBRARIES': ';'.join(boost_libs),
+ 'BUILD_SHARED_LIBS': 'OFF',
+ },
+)
+
+boost_cmake = cmake.subproject('boost', required: true, options: opt)
+boost_deps = []
+foreach boost_lib : boost_libs
+ boost_lib_instance = boost_cmake.dependency('boost_' + boost_lib).as_system()
+ boost_deps += [boost_lib_instance]
+endforeach
+boost_dep = declare_dependency(dependencies: boost_deps)
meson.override_dependency('boost', boost_dep)