Skip to content

Commit 7a16db6

Browse files
committed
meson: wire up credential-wincred
Signed-off-by: M Hickford <[email protected]>
1 parent 58b5801 commit 7a16db6

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

Diff for: contrib/credential/meson.build

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if get_option('credential_wincred')
2+
subdir('wincred')
3+
endif

Diff for: contrib/credential/wincred/git-credential-wincred.c

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
1414

15+
#ifndef _MSC_VER
1516
__attribute__((format (printf, 1, 2)))
17+
#endif
1618
static void die(const char *err, ...)
1719
{
1820
char msg[4096];

Diff for: contrib/credential/wincred/meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
executable('git-credential-wincred', 'git-credential-wincred.c')

Diff for: contrib/meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
foreach feature : get_option('contrib')
22
subdir(feature)
33
endforeach
4+
subdir('credential')

Diff for: meson_options.txt

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ option('version', type: 'string', value: '',
2929
# Features supported by Git.
3030
option('contrib', type: 'array', value: [ 'completion' ], choices: [ 'completion', 'subtree' ],
3131
description: 'Contributed features to include.')
32+
option('credential_wincred', type: 'boolean', value: false,
33+
description: 'Build helper git-credential-wincred. Requires Windows SDK.')
3234
option('curl', type: 'feature', value: 'enabled',
3335
description: 'Build helpers used to access remotes with the HTTP transport.')
3436
option('expat', type: 'feature', value: 'enabled',

0 commit comments

Comments
 (0)