From e840e9c23bfe71a050bbdb36230191ec816f8a75 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 12 Nov 2021 16:16:02 +0000 Subject: [PATCH] Use -Dfish_completion=false to reduce the install size by a few more Kb --- data/meson.build | 10 ++++++++-- meson_options.txt | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/data/meson.build b/data/meson.build index 779ccd4f1..798e55a68 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,8 +1,14 @@ subdir('builder') subdir('pki') subdir('remotes.d') -subdir('bash-completion') -subdir('fish-completion') + +if get_option('bash_completion') + subdir('bash-completion') +endif + +if get_option('fish_completion') + subdir('fish-completion') +endif if get_option('tests') subdir('device-tests') diff --git a/meson_options.txt b/meson_options.txt index 666cef089..d673871ec 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -48,3 +48,5 @@ option('udevdir', type: 'string', value: '', description: 'Directory for udev ru option('efi_os_dir', type: 'string', description : 'the hardcoded name of OS directory in ESP, e.g. fedora') option('efi_binary', type: 'boolean', value : true, description : 'generate uefi binary if missing') option('metainfo', type: 'boolean', value : true, description : 'install the project metainfo.xml information') +option('bash_completion', type: 'boolean', value : true, description : 'enable bash completion') +option('fish_completion', type: 'boolean', value : true, description : 'enable fish completion')