commit | e11895fd80d47fe24faaf04d9fe91e2ed206a214 | [log] [tgz] |
---|---|---|
author | Konstantin Aladyshev <aladyshev22@gmail.com> | Thu Apr 04 12:35:33 2024 +0300 |
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | Tue Apr 23 21:59:49 2024 +0000 |
tree | d1415fc0d8bf255f2d3518318212a6a0c61ad457 | |
parent | d82cb7852f38a99d0631712550377fb90f6fb8ba [diff] |
meson: Use boost as a dependency Currently boost library is found via the 'cpp.find_library' call. With this method local build of the project requires host to have the boost libraries installed. Since the meson have a subproject system to download missing dependencies, rewrite boost requirement to a 'dependency' object. This way it would be possible to build the project locally on the system without the boost library installed. Tested: Both local meson build and Yocto build are performed successfully. Change-Id: I082aeb1d6c09627ea53f58cb6cd375f080401d57 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage