Niels De Graef a01870a2ce meson: Actually include bash-completion subdir
While we're at it, change the `warning()` to a `message()`.
2025-01-15 23:37:14 +01:00

13 lines
413 B
Meson

bashcompdir = get_option('bashcompdir')
if bashcompdir == ''
bashcomp = dependency('bash-completion', required: get_option('bash_completion'))
if bashcomp.found()
bashcompdir = bashcomp.get_pkgconfig_variable('completionsdir')
else
message('Won\'t install bash completion due to missing dependencies')
endif
endif
if bashcompdir != ''
install_data('secret-tool', install_dir: bashcompdir)
endif