git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] meson: wire up credential-libsecret

From
M Hickford via GitGitGadget <gitgitgadget@gmail.com>
Date
Feb 13, 2025, 18:37 UTC
Message-ID
<07ce068403072bf6933ddd00fdf1674dba6cb235.1739471859.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1859.git.1739471859.gitgitgadget@gmail.com>
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
Previous: M Hickford via GitGitGadgetNext: Patrick Steinhardt
Message 3 of 4 in “meson: wire up contrib/credential”
  1. 0/2 meson: wire up contrib/credentialM Hickford via GitGitGadget, Feb 13, 2025
  2. 1/2 meson: wire up credential-wincredM Hickford via GitGitGadget, Feb 13, 2025
  3. 2/2 meson: wire up credential-libsecretM Hickford via GitGitGadget, Feb 13, 2025
  4. Patrick SteinhardtFeb 14, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.