From: Alexander Shursha Date: Thu, 28 Nov 2024 08:50:40 +0000 (+0300) Subject: meson: Add build-hexdump option X-Git-Tag: v2.42-start~131^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e3fea26081782b1098148c77496673e3d26ea7b;p=thirdparty%2Futil-linux.git meson: Add build-hexdump option Sponsored by: Future Crew, LLC --- diff --git a/meson.build b/meson.build index b893656fe..df6d06425 100644 --- a/meson.build +++ b/meson.build @@ -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() diff --git a/meson_options.txt b/meson_options.txt index bf7aff145..da39893bb 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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