]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: add build-fincore option
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:33:03 +0000 (14:33 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 May 2026 11:48:38 +0000 (13:48 +0200)
Allow the build of the target to be disabled by the user and also enable
the addition of platform restrictions.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build
meson_options.txt

index 19a8f1bbece70ca64ba0524ea497275305841ad6..06061ddce508ba1e3356825a79a02ee6c84ab3a6 100644 (file)
@@ -3297,6 +3297,7 @@ if opt and not is_disabler(exe)
   bashcompletions += ['getopt']
 endif
 
+opt = get_option('build-fincore').allowed()
 exe = executable(
   'fincore',
   fincore_sources,
@@ -3304,8 +3305,9 @@ exe = executable(
   link_with : [lib_common,
                lib_smartcols],
   install_dir : usrbin_exec_dir,
-  install : true)
-if not is_disabler(exe)
+  install : opt,
+  build_by_default : opt)
+if opt and not is_disabler(exe)
   exes += exe
   manadocs += fincore_manadocs
   bashcompletions += ['fincore']
index 8e23ee76e75bc5b0e8a512e891f1853619a2b6ed..9d87ed375db4191bc0bf702ec31242d24af1079b 100644 (file)
@@ -265,6 +265,8 @@ option('build-copyfilerange', type : 'feature',
        description : 'build copyfilerange')
 option('build-prlimit', type : 'feature',
        description : 'build prlimit')
+option('build-fincore', type : 'feature',
+       description : 'build fincore')
 
 # static programs