Merge branch 'meson-option' into 'master'

Add meson option to override default bashcompdir

See merge request GNOME/libsecret!72
This commit is contained in:
Daiki Ueno 2021-03-21 17:58:44 +00:00
commit d5b2f0426d
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -4,3 +4,5 @@ option('debugging', type: 'boolean', value: false, description: 'Turn debugging
option('vapi', type: 'boolean', value: true, description: 'Create VAPI file.') 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('gtk_doc', type: 'boolean', value: true, description: 'Build reference documentation using gtk-doc')
option('introspection', type: 'boolean', value: true, description: 'Create GIR file.') option('introspection', type: 'boolean', value: true, description: 'Create GIR file.')
option('bashcompdir', type: 'string', value: '', description: 'Override default location for bash completion files')
option('bash_completion', type: 'feature', value: 'auto', description: 'Install bash completion files')