]> 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>
Mon, 15 Apr 2024 13:02:21 +0000 (08:02 -0500)
commit79546fc1b084839e635eba6736cd809bdbda5d6e
treef30cf00b60c4359575a207f901f22a407927cb36
parent1443a1852472181c2c1f6e6dd7085b88805b9e0d
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>
(cherry picked from commit b6799ccbc08aea69a26cdaa97ab436bfae2ae27f)
libblkid/meson.build
libmount/meson.build
libmount/python/meson.build
meson.build
meson_options.txt