From: Alexander Shursha Date: Mon, 16 Dec 2024 11:46:58 +0000 (+0300) Subject: meson: add checking build-findfs. X-Git-Tag: v2.42-start~101^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=138a37525b3c91759b2dc89833b24961eb457eca;p=thirdparty%2Futil-linux.git 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 --- diff --git a/meson.build b/meson.build index e4b2cb4c1..582fe54b7 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 da39893bb..8becfbdaa 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