]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Add build-hexdump option
authorAlexander Shursha <kekek2@ya.ru>
Thu, 28 Nov 2024 08:50:40 +0000 (11:50 +0300)
committerАлександр Шурша <avshur10@mts.ru>
Fri, 6 Dec 2024 08:36:10 +0000 (11:36 +0300)
Sponsored by: Future Crew, LLC

meson.build
meson_options.txt

index b893656fe52944d425c0615849c81337665654ba..df6d064253750b95c3ffb7209974cbe6cc6a98fe 100644 (file)
@@ -1364,18 +1364,21 @@ if opt and not is_disabler(exe)
   bashcompletions += ['more']
 endif
 
-exe = executable(
-  'hexdump',
-  hexdump_sources,
-  include_directories : includes,
-  link_with : [lib_common,
-               lib_tcolors],
-  install_dir : usrbin_exec_dir,
-  install : true)
+if not get_option('build-hexdump').disabled()
+  exe = executable(
+    'hexdump',
+    hexdump_sources,
+    include_directories : includes,
+    link_with : [lib_common,
+                 lib_tcolors],
+    install_dir : usrbin_exec_dir)
+else
+  exe = disabler()
+endif
 if not is_disabler(exe)
-  exes += exe
-  manadocs += ['text-utils/hexdump.1.adoc']
-  bashcompletions += ['hexdump']
+    exes += exe
+    manadocs += ['text-utils/hexdump.1.adoc']
+    bashcompletions += ['hexdump']
 endif
 
 opt = not get_option('build-lsmem').disabled()
index bf7aff145152b23a743972f6485775d02e0df7ab..da39893bbd59d5cbcce6d13d4e44aa8a35a7e4f2 100644 (file)
@@ -253,6 +253,8 @@ option('build-bash-completion', type : 'feature',
        description : 'install bash completion files')
 option('build-pylibmount', type : 'feature',
        description : 'build pylibmount')
+option('build-hexdump', type : 'feature',
+       description : 'build hexdump')
 
 # static programs