]> git.ipfire.org Git - thirdparty/util-linux.git/commit
meson: Only build libmount when required
authorJordan Williams <jordan@jwillikers.com>
Fri, 5 Apr 2024 14:49:17 +0000 (07:49 -0700)
committerJordan Williams <jordan@jwillikers.com>
Fri, 5 Apr 2024 15:56:24 +0000 (08:56 -0700)
commitb6799ccbc08aea69a26cdaa97ab436bfae2ae27f
tree4d54962c98e9ad6f845677eef59442cfa18620ca
parenta764efb5fb14b9a66bff8807c04ddcebc51939ea
meson: Only build libmount when required

It is not currently possible to build any part of util-linux without
building libmount when using Meson.
The libuuid library is commonly used on macOS, where it is not possible
to build libmount.
To address this, this PR makes it possible to build without libmount and
 libblkid.

Options have been added to allow toggling whether to build targets that
require libmount.
This makes it possible to fully disable building libmount.

The python object had to be defined outside of the meson.build file in
libmount/python since this may no longer be included.
The python object is used for tests.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
libblkid/meson.build
libmount/meson.build
libmount/python/meson.build
meson.build
meson_options.txt