meson: wire up git-contacts(1)
Wire up the build for git-contacts(1) in Meson. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
1cee22ebff
commit
e9e924e581
55
contrib/contacts/meson.build
Normal file
55
contrib/contacts/meson.build
Normal file
@ -0,0 +1,55 @@
|
||||
custom_target(
|
||||
input: 'git-contacts',
|
||||
output: 'git-contacts',
|
||||
command: generate_perl_command,
|
||||
depends: [git_version_file],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
)
|
||||
|
||||
if get_option('docs').contains('man')
|
||||
contacts_xml = custom_target(
|
||||
command: asciidoc_common_options + [
|
||||
'--backend=' + asciidoc_docbook,
|
||||
'--doctype=manpage',
|
||||
'--out-file=@OUTPUT@',
|
||||
'@INPUT@',
|
||||
],
|
||||
depends: documentation_deps,
|
||||
input: 'git-contacts.txt',
|
||||
output: 'git-contacts.xml',
|
||||
)
|
||||
|
||||
custom_target(
|
||||
command: [
|
||||
xmlto,
|
||||
'-m', '@INPUT@',
|
||||
'man',
|
||||
contacts_xml,
|
||||
'-o',
|
||||
meson.current_build_dir(),
|
||||
] + xmlto_extra,
|
||||
input: [
|
||||
'../../Documentation/manpage-normal.xsl',
|
||||
],
|
||||
output: 'git-contacts.1',
|
||||
install: true,
|
||||
install_dir: get_option('mandir') / 'man1',
|
||||
)
|
||||
endif
|
||||
|
||||
if get_option('docs').contains('html')
|
||||
custom_target(
|
||||
command: asciidoc_common_options + [
|
||||
'--backend=' + asciidoc_html,
|
||||
'--doctype=manpage',
|
||||
'--out-file=@OUTPUT@',
|
||||
'@INPUT@',
|
||||
],
|
||||
depends: documentation_deps,
|
||||
input: 'git-contacts.txt',
|
||||
output: 'git-contacts.html',
|
||||
install: true,
|
||||
install_dir: get_option('datadir') / 'doc/git-doc',
|
||||
)
|
||||
endif
|
@ -27,7 +27,7 @@ option('version', type: 'string', value: '',
|
||||
description: 'Version string reported by git-version(1) and other tools.')
|
||||
|
||||
# Features supported by Git.
|
||||
option('contrib', type: 'array', value: [ 'completion' ], choices: [ 'completion', 'subtree' ],
|
||||
option('contrib', type: 'array', value: [ 'completion' ], choices: [ 'completion', 'contacts', 'subtree' ],
|
||||
description: 'Contributed features to include.')
|
||||
option('credential_helpers', type: 'array', value: [ ], choices: [ 'libsecret', 'netrc', 'osxkeychain', 'wincred' ],
|
||||
description: 'Contributed features to include.')
|
||||
|
Reference in New Issue
Block a user