libsecret/bash-completion/meson.build
Dhanuka Warusadura 8b1936b46f Add meson option to override of default bashcompdir
These changes introduce a new meson option to disable
installation of completion files into the system location.
2021-03-21 17:51:24 +00:00

14 lines
421 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
warning('Will not install bash completion due to missing dependencies!')
endif
endif
if bashcompdir != ''
install_data('secret-tool', install_dir: bashcompdir)
endif