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.
This commit is contained in:
Dhanuka Warusadura 2021-03-18 13:50:01 +05:30 committed by Daiki Ueno
parent 7d6aacdc66
commit 8b1936b46f
2 changed files with 4 additions and 0 deletions

View File

@ -8,3 +8,6 @@ if bashcompdir == ''
warning('Will not install bash completion due to missing dependencies!')
endif
endif
if bashcompdir != ''
install_data('secret-tool', install_dir: bashcompdir)
endif

View File

@ -4,3 +4,4 @@ option('debugging', type: 'boolean', value: false, description: 'Turn debugging
option('vapi', type: 'boolean', value: true, description: 'Create VAPI file.')
option('gtk_doc', type: 'boolean', value: true, description: 'Build reference documentation using gtk-doc')
option('introspection', type: 'boolean', value: true, description: 'Create GIR file.')
option('bashcompdir', type: 'string', value: '', description: 'Override default location for bash completion files')