From 138a37525b3c91759b2dc89833b24961eb457eca Mon Sep 17 00:00:00 2001 From: Alexander Shursha Date: Mon, 16 Dec 2024 14:46:58 +0300 Subject: [PATCH] meson: add checking build-findfs. On FreeBSD run --auto-features=disabled -Dbuild-libblkid=enabled -Dprogram-tests=false builded sbin/findfs Sponsored by: Future Crew, LLC --- meson.build | 6 ++++-- meson_options.txt | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index e4b2cb4c1d6..582fe54b745 100644 --- a/meson.build +++ b/meson.build @@ -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'] diff --git a/meson_options.txt b/meson_options.txt index da39893bbd5..8becfbdaab3 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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