[libsecret: 1/3] Add meson option to override of default bashcompdir




commit 8b1936b46f2d83b9672303cca432e6108f6956a9
Author: Dhanuka Warusadura <csx tuta io>
Date:   Thu Mar 18 13:50:01 2021 +0530

    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.

 bash-completion/meson.build | 3 +++
 meson_options.txt           | 1 +
 2 files changed, 4 insertions(+)
---
diff --git a/bash-completion/meson.build b/bash-completion/meson.build
index 9e10d9e..dbbf5d3 100644
--- a/bash-completion/meson.build
+++ b/bash-completion/meson.build
@@ -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
diff --git a/meson_options.txt b/meson_options.txt
index 445aeb0..87dced1 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -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')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]