Raw
1 # Configuration for Git installation
2 option('htmldir', type: 'string', value: '',
3 description: 'Directory to install HTML docs to. Defaults to <datadir>/doc/git-doc')
4 option('perllibdir', type: 'string', value: '',
5 description: 'Directory to install perl lib to. Defaults to <datadir>/perl5')
6
7 # Configuration for how Git behaves at runtime.
8 option('default_pager', type: 'string', value: 'less',
9 description: 'Fall-back pager.')
10 option('default_editor', type: 'string', value: 'vi',
11 description: 'Fall-back editor.')
12 option('gitconfig', type: 'string',
13 description: 'Path to the global git configuration file. (default: etc/gitconfig)')
14 option('gitattributes', type: 'string',
15 description: 'Path to the global git attributes file. (default: etc/gitattributes)')
16 option('pager_environment', type: 'string', value: 'LESS=FRX LV=-c',
17 description: 'Environment used when spawning the pager')
18 option('perl_cpan_fallback', type: 'boolean', value: true,
19 description: 'Install bundled copies of CPAN modules that serve as a fallback in case the modules are not available on the system.')
20 option('runtime_prefix', type: 'boolean', value: false,
21 description: 'Resolve ancillary tooling and support files relative to the location of the runtime binary instead of hard-coding them into the binary.')
22 option('sane_tool_path', type: 'array', value: [],
23 description: 'An array of paths to pick up tools from in case the normal tools are broken or lacking.')
24
25 # Build information compiled into Git and other parts like documentation.
26 option('build_date', type: 'string', value: '',
27 description: 'Build date reported by our documentation.')
28 option('built_from_commit', type: 'string', value: '',
29 description: 'Commit that Git was built from reported by git-version(1).')
30 option('user_agent', type: 'string', value: '',
31 description: 'User agent reported to remote servers.')
32 option('version', type: 'string', value: '',
33 description: 'Version string reported by git-version(1) and other tools.')
34
35 # Features supported by Git.
36 option('contrib', type: 'array', value: [ 'completion' ], choices: [ 'completion', 'contacts', 'subtree' ],
37 description: 'Contributed features to include.')
38 option('credential_helpers', type: 'array', value: [ ], choices: [ 'libsecret', 'netrc', 'osxkeychain', 'wincred' ],
39 description: 'Contributed features to include.')
40 option('curl', type: 'feature', value: 'enabled',
41 description: 'Build helpers used to access remotes with the HTTP transport.')
42 option('expat', type: 'feature', value: 'enabled',
43 description: 'Build helpers used to push to remotes with the HTTP transport.')
44 option('gettext', type: 'feature', value: 'auto',
45 description: 'Build translation files.')
46 option('gitk', type: 'feature', value: 'auto',
47 description: 'Build the Gitk graphical repository browser. Requires Tcl/Tk.')
48 option('git_gui', type: 'feature', value: 'auto',
49 description: 'Build the git-gui graphical user interface for Git. Requires Tcl/Tk.')
50 option('gitweb', type: 'feature', value: 'auto',
51 description: 'Build Git web interface. Requires Perl.')
52 option('iconv', type: 'feature', value: 'auto',
53 description: 'Support reencoding strings with different encodings.')
54 option('pcre2', type: 'feature', value: 'auto',
55 description: 'Support Perl-compatible regular expressions in e.g. git-grep(1).')
56 option('perl', type: 'feature', value: 'auto',
57 description: 'Build tools written in Perl.')
58 option('python', type: 'feature', value: 'auto',
59 description: 'Build tools written in Python.')
60 option('regex', type: 'feature', value: 'auto',
61 description: 'Use the system-provided regex library instead of the bundled one.')
62
63 # Backends.
64 option('csprng_backend', type: 'combo', value: 'auto', choices: ['auto', 'arc4random', 'arc4random_bsd', 'getrandom', 'getentropy', 'rtlgenrandom', 'openssl', 'urandom'],
65 description: 'The backend to use for generating cryptographically-secure pseudo-random numbers.')
66 option('https_backend', type: 'combo', value: 'auto', choices: ['auto', 'openssl', 'CommonCrypto', 'none'],
67 description: 'The HTTPS backend to use when connecting to remotes.')
68 option('sha1_backend', type: 'combo', choices: ['openssl', 'block', 'sha1dc', 'CommonCrypto'], value: 'sha1dc',
69 description: 'The backend used for hashing objects with the SHA1 object format.')
70 option('sha1_unsafe_backend', type: 'combo', choices: ['openssl', 'block', 'CommonCrypto', 'none'], value: 'none',
71 description: 'The backend used for hashing data with the SHA1 object format in case no cryptographic security is needed.')
72 option('sha256_backend', type: 'combo', choices: ['openssl', 'nettle', 'gcrypt', 'block'], value: 'block',
73 description: 'The backend used for hashing objects with the SHA256 object format.')
74 option('zlib_backend', type: 'combo', choices: ['auto', 'zlib', 'zlib-ng'], value: 'auto',
75 description: 'The backend used for compressing objects and other data.')
76
77 # Build tweaks.
78 option('breaking_changes', type: 'boolean', value: false,
79 description: 'Enable upcoming breaking changes.')
80 option('rust', type: 'feature', value: 'enabled',
81 description: 'Enable building with Rust.')
82 option('macos_use_homebrew_gettext', type: 'boolean', value: true,
83 description: 'Use gettext from Homebrew instead of the slightly-broken system-provided one.')
84
85 # gitweb configuration.
86 option('gitweb_config', type: 'string', value: 'gitweb_config.perl')
87 option('gitweb_config_system', type: 'string', value: '/etc/gitweb.conf')
88 option('gitweb_config_common', type: 'string', value: '/etc/gitweb-common.conf')
89 option('gitweb_home_link_str', type: 'string', value: 'projects')
90 option('gitweb_sitename', type: 'string', value: '')
91 option('gitweb_projectroot', type: 'string', value: '/pub/git')
92 option('gitweb_project_maxdepth', type: 'string', value: '2007')
93 option('gitweb_export_ok', type: 'string', value: '')
94 option('gitweb_strict_export', type: 'string', value: '')
95 option('gitweb_base_url', type: 'string', value: '')
96 option('gitweb_list', type: 'string', value: '')
97 option('gitweb_hometext', type: 'string', value: 'indextext.html')
98 option('gitweb_css', type: 'string', value: 'static/gitweb.css')
99 option('gitweb_logo', type: 'string', value: 'static/git-logo.png')
100 option('gitweb_favicon', type: 'string', value: 'static/git-favicon.png')
101 option('gitweb_js', type: 'string', value: 'static/gitweb.js')
102 option('gitweb_site_html_head_string', type: 'string', value: '')
103 option('gitweb_site_header', type: 'string', value: '')
104 option('gitweb_site_footer', type: 'string', value: '')
105 option('highlight_bin', type: 'string', value: 'highlight')
106
107 # Documentation.
108 option('docs', type: 'array', choices: ['man', 'html'], value: [],
109 description: 'Which documentation formats to build and install.')
110 option('default_help_format', type: 'combo', choices: ['man', 'html', 'platform'], value: 'platform',
111 description: 'Default format used when executing git-help(1).')
112 option('docs_backend', type: 'combo', choices: ['asciidoc', 'asciidoctor', 'auto'], value: 'auto',
113 description: 'Which backend to use to generate documentation.')
114
115 # Testing.
116 option('benchmarks', type: 'feature', value: 'auto',
117 description: 'Enable benchmarks. This requires Perl and GNU time.')
118 option('benchmark_repo', type: 'string', value: '',
119 description: 'Repository to copy for the performance tests. Should be at least the size of the Git repository.')
120 option('benchmark_large_repo', type: 'string', value: '',
121 description: 'Large repository to copy for the performance tests. Should be at least the size of the Linux repository.')
122 option('benchmark_repeat_count', type: 'integer', value: 3,
123 description: 'Number of times a test should be repeated for best-of-N measurements.')
124 option('coccinelle', type: 'feature', value: 'auto',
125 description: 'Provide a coccicheck target that generates a Coccinelle patch.')
126 option('tests', type: 'boolean', value: true,
127 description: 'Enable building tests. This requires Perl, but is separate from the "perl" option such that you can build tests without Perl features enabled.')
128 option('test_output_directory', type: 'string',
129 description: 'Path to the directory used to store test outputs')
130 option('test_utf8_locale', type: 'string',
131 description: 'Name of a UTF-8 locale used for testing.')
132 option('fuzzers', type: 'boolean', value: false,
133 description: 'Enable building fuzzers.')