diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-12-20 20:44:26 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-20 21:36:46 +0100 |
commit | 1bc815c3d0eff054c7a032130206d16839bb331a (patch) | |
tree | 46d7918e7dafb7e35de7893c730729b1c021e0be /meson_options.txt | |
parent | GIT-VERSION-GEN: fix overriding GIT_BUILT_FROM_COMMIT and GIT_DATE (diff) | |
download | git-1bc815c3d0eff054c7a032130206d16839bb331a.tar.xz git-1bc815c3d0eff054c7a032130206d16839bb331a.zip |
meson: add options to override build information
We inject various different kinds of build information into build
artifacts, like the version string or the commit from which Git was
built. Add options to let users explicitly override this information
with Meson.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 32a72139ba..8ead134955 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -16,6 +16,16 @@ option('runtime_prefix', type: 'boolean', value: false, option('sane_tool_path', type: 'string', value: '', description: 'A colon-separated list of paths to prepend to PATH if your tools in /usr/bin are broken.') +# Build information compiled into Git and other parts like documentation. +option('build_date', type: 'string', value: '', + description: 'Build date reported by our documentation.') +option('built_from_commit', type: 'string', value: '', + description: 'Commit that Git was built from reported by git-version(1).') +option('user_agent', type: 'string', value: '', + description: 'User agent reported to remote servers.') +option('version', type: 'string', value: '', + description: 'Version string reported by git-version(1) and other tools.') + # Features supported by Git. option('curl', type: 'feature', value: 'enabled', description: 'Build helpers used to access remotes with the HTTP transport.') |