]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: add checking build-findfs.
authorAlexander Shursha <kekek2@ya.ru>
Mon, 16 Dec 2024 11:46:58 +0000 (14:46 +0300)
committerAlexander Shursha <kekek2@ya.ru>
Sun, 29 Dec 2024 05:50:38 +0000 (08:50 +0300)
On FreeBSD run --auto-features=disabled -Dbuild-libblkid=enabled
-Dprogram-tests=false

builded sbin/findfs

Sponsored by: Future Crew, LLC

meson.build
meson_options.txt

index e4b2cb4c1d614d7ed2b5b231fac6d65b88e43d46..582fe54b7455378b3331a285335330daca7b0117 100644 (file)
@@ -3085,14 +3085,16 @@ endif
 
 ############################################################
 
+opt = not get_option('build-findfs').disabled()
 exe = executable(
   'findfs',
   findfs_sources,
   include_directories : includes,
   dependencies : [blkid_dep],
   install_dir : sbindir,
-  install : true)
-if not is_disabler(exe)
+  install : opt,
+  build_by_default : opt)
+if opt and not is_disabler(exe)
   exes += exe
   manadocs += ['misc-utils/findfs.8.adoc']
   bashcompletions += ['findfs']
index da39893bbd59d5cbcce6d13d4e44aa8a35a7e4f2..8becfbdaab3461985e957ff8a2cbda2eb12bcf8c 100644 (file)
@@ -255,6 +255,8 @@ option('build-pylibmount', type : 'feature',
        description : 'build pylibmount')
 option('build-hexdump', type : 'feature',
        description : 'build hexdump')
+option('build-findfs', type : 'feature',
+       description : 'build findfs')
 
 # static programs