[PATCH 2/2] meson: wire up credential-libsecret
From: M Hickford <mirth.hickford@gmail.com>
Signed-off-by: M Hickford <mirth.hickford@gmail.com>
---
contrib/credential/libsecret/meson.build | 3 +++
contrib/credential/meson.build | 3 +++
meson_options.txt | 2 ++
3 files changed, 8 insertions(+)
create mode 100644 contrib/credential/libsecret/meson.build
diff --git a/contrib/credential/libsecret/meson.build b/contrib/credential/libsecret/meson.build
new file mode 100644
index 00000000000..92349be0ee8
--- /dev/null
+++ b/contrib/credential/libsecret/meson.build
@@ -0,0 +1,3 @@
+glib = dependency('glib-2.0')
+libsecret = dependency('libsecret-1')
+executable('git-credential-libsecret', 'git-credential-libsecret.c', dependencies: [glib, libsecret])
diff --git a/contrib/credential/meson.build b/contrib/credential/meson.build
index 4017ae3fa88..bedc76b96f2 100644
--- a/contrib/credential/meson.build
+++ b/contrib/credential/meson.build
@@ -1,3 +1,6 @@
if get_option('credential_wincred')
subdir('wincred')
endif
+if get_option('credential_libsecret')
+ subdir('libsecret')
+endif
diff --git a/meson_options.txt b/meson_options.txt
index 7554528482a..69e386afc2a 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -29,6 +29,8 @@ option('version', type: 'string', value: '',
# Features supported by Git.
option('contrib', type: 'array', value: [ 'completion' ], choices: [ 'completion', 'subtree' ],
description: 'Contributed features to include.')
+option('credential_libsecret', type: 'boolean', value: false,
+ description: 'Build helper git-credential-libsecret. Requires GLib and libsecret.')
option('credential_wincred', type: 'boolean', value: false,
description: 'Build helper git-credential-wincred. Requires Windows SDK.')
option('curl', type: 'feature', value: 'enabled',
--
gitgitgadget