]> git.ipfire.org Git - thirdparty/systemd.git/blame - meson_options.txt
Add helper for case-independent string equality checks
[thirdparty/systemd.git] / meson_options.txt
CommitLineData
5c23128d 1# -*- mode: meson -*-
db9ecf05 2# SPDX-License-Identifier: LGPL-2.1-or-later
5c23128d 3
e1ca734e
ZJS
4option('version-tag', type : 'string',
5 description : 'override the git version string')
6
4c8e5f44 7option('mode', type : 'combo', choices : ['developer', 'release'],
b8ee3493 8 description : 'autoenable features suitable for systemd development/release builds')
839bdf25 9
2675413e
ZJS
10option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
11 description : '''/bin, /sbin aren't symlinks into /usr''')
157baa87
ZJS
12option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
13 description : '''sbin is not a symlink to bin''')
5c23128d
ZJS
14option('rootlibdir', type : 'string',
15 description : '''[/usr]/lib/x86_64-linux-gnu or such''')
74344a17 16option('rootprefix', type : 'string',
80599eb0 17 description : '''override the root prefix [default '/' if split-usr and '/usr' otherwise]''')
3a30f21f
ZJS
18option('link-udev-shared', type : 'boolean',
19 description : 'link systemd-udev and its helpers to libsystemd-shared.so')
f3794366
FS
20option('link-systemctl-shared', type: 'boolean',
21 description : 'link systemctl against libsystemd-shared.so')
5ac8b50d
RS
22option('link-networkd-shared', type: 'boolean',
23 description : 'link systemd-networkd and its helpers to libsystemd-shared.so')
fd74a13e
RS
24option('link-timesyncd-shared', type: 'boolean',
25 description : 'link systemd-timesyncd and its helpers to libsystemd-shared.so')
70848ecf
DC
26option('static-libsystemd', type : 'combo',
27 choices : ['false', 'true', 'pic', 'no-pic'],
28 description : '''install a static library for libsystemd''')
29option('static-libudev', type : 'combo',
30 choices : ['false', 'true', 'pic', 'no-pic'],
53393c89 31 description : 'install a static library for libudev')
8ef8f3d5 32option('standalone-binaries', type : 'boolean', value : 'false',
53393c89 33 description : 'also build standalone versions of supported binaries')
5c23128d
ZJS
34
35option('sysvinit-path', type : 'string', value : '/etc/init.d',
36 description : 'the directory where the SysV init scripts are located')
37option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
38 description : 'the base directory for SysV rcN.d directories')
2fa645f1
MG
39option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
40 description : 'path to telinit')
2a4c156d
ZJS
41option('rc-local', type : 'string',
42 value : '/etc/rc.local')
53393c89 43option('initrd', type : 'boolean',
cdf7ad38 44 description : 'install services for use when running systemd in initrd')
53393c89
ZJS
45option('compat-mutable-uid-boundaries', type : 'boolean', value : 'false',
46 description : 'look at uid boundaries in /etc/login.defs for compatibility')
7e0079f9
ZJS
47option('nscd', type : 'boolean',
48 description : 'build support for flushing of the nscd caches')
5c23128d
ZJS
49
50option('quotaon-path', type : 'string', description : 'path to quotaon')
51option('quotacheck-path', type : 'string', description : 'path to quotacheck')
5c23128d
ZJS
52option('kmod-path', type : 'string', description : 'path to kmod')
53option('kexec-path', type : 'string', description : 'path to kexec')
54option('sulogin-path', type : 'string', description : 'path to sulogin')
55option('mount-path', type : 'string', description : 'path to mount')
56option('umount-path', type : 'string', description : 'path to umount')
57option('loadkeys-path', type : 'string', description : 'path to loadkeys')
58option('setfont-path', type : 'string', description : 'path to setfont')
6db90462 59option('nologin-path', type : 'string', description : 'path to nologin')
5c23128d 60
3131bfe3
ZJS
61option('debug-shell', type : 'string', value : '/bin/sh',
62 description : 'path to debug shell binary')
63option('debug-tty', type : 'string', value : '/dev/tty9',
64 description : 'specify the tty device for debug shell')
6c092dbe 65option('debug-extra', type : 'array', choices : ['hashmap', 'mmap-cache', 'siphash'], value : [],
ad7aa760 66 description : 'enable extra debugging')
444d5863
ZJS
67option('memory-accounting-default', type : 'boolean',
68 description : 'enable MemoryAccounting= by default')
a8b627aa 69option('bump-proc-sys-fs-file-max', type : 'boolean',
168561f2 70 description : 'bump /proc/sys/fs/file-max to LONG_MAX')
a8b627aa
LP
71option('bump-proc-sys-fs-nr-open', type : 'boolean',
72 description : 'bump /proc/sys/fs/nr_open to INT_MAX')
d18cb393
ZJS
73option('valgrind', type : 'boolean', value : false,
74 description : 'do extra operations to avoid valgrind warnings')
fd5dec9a
ZJS
75option('log-trace', type : 'boolean', value : false,
76 description : 'enable low level debug logging')
3602ca6f
ZJS
77option('user-path', type : 'string',
78 description : '$PATH to use for user sessions')
3131bfe3 79
5c23128d
ZJS
80option('utmp', type : 'boolean',
81 description : 'support for utmp/wtmp log handling')
82option('hibernate', type : 'boolean',
83 description : 'support for hibernation')
84option('ldconfig', type : 'boolean',
85 description : 'support for dynamic linker cache creation')
86option('resolve', type : 'boolean',
87 description : 'systemd-resolved stack')
88option('efi', type : 'boolean',
8191c594 89 description : 'enable systemd-boot and bootctl')
cd4823f6 90option('tpm', type : 'boolean',
80c6fce8 91 description : 'TPM should be used to log events and extend the registers')
5c23128d
ZJS
92option('environment-d', type : 'boolean',
93 description : 'support for environment.d')
94option('binfmt', type : 'boolean',
95 description : 'support for custom binary formats')
e594a3b1
LP
96option('repart', type : 'combo', choices : ['auto', 'true', 'false'],
97 description : 'install the systemd-repart tool')
5c23128d
ZJS
98option('coredump', type : 'boolean',
99 description : 'install the coredump handler')
9b4abc69
ED
100option('pstore', type : 'boolean',
101 description : 'install the pstore archival tool')
d58c5f0f 102option('oomd', type : 'combo', choices : ['auto', 'true', 'false'],
61ff7397 103 description : 'install the userspace oom killer')
5c23128d
ZJS
104option('logind', type : 'boolean',
105 description : 'install the systemd-logind stack')
106option('hostnamed', type : 'boolean',
107 description : 'install the systemd-hostnamed stack')
108option('localed', type : 'boolean',
109 description : 'install the systemd-localed stack')
110option('machined', type : 'boolean',
111 description : 'install the systemd-machined stack')
61d0578b
LP
112option('portabled', type : 'boolean',
113 description : 'install the systemd-portabled stack')
d093b62c
LP
114option('userdb', type : 'boolean',
115 description : 'install the systemd-userdbd stack')
ec74f47e 116option('homed', type : 'combo', choices : ['auto', 'true', 'false'],
70a5db58 117 description : 'install the systemd-homed stack')
5c23128d
ZJS
118option('networkd', type : 'boolean',
119 description : 'install the systemd-networkd stack')
120option('timedated', type : 'boolean',
121 description : 'install the systemd-timedated daemon')
122option('timesyncd', type : 'boolean',
123 description : 'install the systemd-timesyncd daemon')
b1519d65 124option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 125 description : 'support for "journal over the network"')
6ed5ef98
ZJS
126option('create-log-dirs', type : 'boolean',
127 description : 'create /var/log/journal{,/remote}')
08540a95
YW
128option('nss-myhostname', type : 'boolean',
129 description : 'install nss-myhostname module')
130option('nss-mymachines', type : 'combo', choices : ['auto', 'true', 'false'],
131 description : 'install nss-mymachines module')
132option('nss-resolve', type : 'combo', choices : ['auto', 'true', 'false'],
133 description : 'install nss-resolve module')
134option('nss-systemd', type : 'boolean',
135 description : 'install nss-systemd module')
5c23128d
ZJS
136option('firstboot', type : 'boolean',
137 description : 'support for firstboot mechanism')
138option('randomseed', type : 'boolean',
139 description : 'support for restoring random seed')
140option('backlight', type : 'boolean',
141 description : 'support for restoring backlight state')
142option('vconsole', type : 'boolean',
143 description : 'support for vconsole configuration')
144option('quotacheck', type : 'boolean',
145 description : 'support for the quotacheck tools')
146option('sysusers', type : 'boolean',
147 description : 'support for the sysusers configuration')
148option('tmpfiles', type : 'boolean',
149 description : 'support for tmpfiles.d')
b1519d65 150option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d
ZJS
151 description : 'install the systemd-importd daemon')
152option('hwdb', type : 'boolean',
153 description : 'support for the hardware database')
154option('rfkill', type : 'boolean',
155 description : 'support for the rfkill tools')
8feca247
BB
156option('xdg-autostart', type : 'boolean',
157 description : 'install the xdg-autostart-generator and unit')
4390be30 158option('man', type : 'combo', choices : ['auto', 'true', 'false'],
0b0673b6 159 value : 'false',
527d43d7 160 description : 'build and install man pages')
4390be30
ZJS
161option('html', type : 'combo', choices : ['auto', 'true', 'false'],
162 value : 'false',
527d43d7 163 description : 'build and install html pages')
8c979cfa
DDM
164option('translations', type : 'boolean', value : true,
165 description : 'build and install translations')
5c23128d
ZJS
166
167option('certificate-root', type : 'string', value : '/etc/ssl',
168 description : 'the prefix for TLS certificates')
169option('dbuspolicydir', type : 'string',
170 description : 'D-Bus policy directory')
171option('dbussessionservicedir', type : 'string',
172 description : 'D-Bus session service directory')
173option('dbussystemservicedir', type : 'string',
174 description : 'D-Bus system service directory')
a95696e3 175option('pkgconfigdatadir', type : 'string', value : '',
f62b08dd 176 description : 'directory for arch-independent pkg-config files')
5c23128d 177option('pkgconfiglibdir', type : 'string', value : '',
f62b08dd 178 description : 'directory for standard pkg-config files')
5c23128d
ZJS
179option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
180 description : 'directory for rpm macros ["no" disables]')
181option('pamlibdir', type : 'string',
182 description : 'directory for PAM modules')
183option('pamconfdir', type : 'string',
184 description : 'directory for PAM configuration ["no" disables]')
75aaade1
TB
185option('docdir', type : 'string',
186 description : 'documentation directory')
d7aa78c3
JT
187option('install-sysconfdir', type : 'boolean', value : true,
188 description : 'install configuration files to $sysconfdir')
5c23128d
ZJS
189
190option('fallback-hostname', type : 'string', value : 'localhost',
191 description : 'the hostname used if none configured')
192option('default-hierarchy', type : 'combo',
87cf1f8f 193 choices : ['legacy', 'hybrid', 'unified'], value : 'unified',
5c23128d 194 description : 'default cgroup hierarchy')
06da5c63
ZJS
195option('default-net-naming-scheme', type : 'combo',
196 choices : ['latest', 'v238', 'v239', 'v240'],
197 description : 'default net.naming-scheme= value')
36cf4507
ZJS
198option('status-unit-format-default', type : 'combo',
199 choices : ['description', 'name'],
200 description : 'use unit name or description in messages by default')
ac09340e 201option('time-epoch', type : 'integer', value : '-1',
5c23128d 202 description : 'time epoch for time clients')
fc1a5d1a
ZJS
203option('system-alloc-uid-min', type : 'integer', value : '-1',
204 description : 'minimum system UID used when allocating')
205option('system-alloc-gid-min', type : 'integer', value : '-1',
206 description : 'minimum system GID used when allocating')
ac09340e 207option('system-uid-max', type : 'integer', value : '-1',
5c23128d 208 description : 'maximum system UID')
ac09340e 209option('system-gid-max', type : 'integer', value : '-1',
5c23128d 210 description : 'maximum system GID')
ac09340e
YW
211option('dynamic-uid-min', type : 'integer', value : 0x0000EF00,
212 description : 'minimum dynamic UID')
213option('dynamic-uid-max', type : 'integer', value : 0x0000FFEF,
214 description : 'maximum dynamic UID')
215option('container-uid-base-min', type : 'integer', value : 0x00080000,
216 description : 'minimum container UID base')
217option('container-uid-base-max', type : 'integer', value : 0x6FFF0000,
218 description : 'maximum container UID base')
219option('tty-gid', type : 'integer', value : 5,
220 description : 'the numeric GID of the "tty" group')
221option('users-gid', type : 'integer', value : '-1',
84786b8e 222 description : 'the numeric GID of the "users" group')
5c23128d
ZJS
223option('adm-group', type : 'boolean',
224 description : 'the ACL for adm group should be added')
225option('wheel-group', type : 'boolean',
226 description : 'the ACL for wheel group should be added')
227option('nobody-user', type : 'string',
228 description : 'The name of the nobody user (the one with UID 65534)',
229 value : 'nobody')
230option('nobody-group', type : 'string',
231 description : 'The name of the nobody group (the one with GID 65534)',
232 value : 'nobody')
b8fd3d82 233option('dev-kvm-mode', type : 'string', value : '0666',
5c23128d 234 description : '/dev/kvm access mode')
4e15a734
TS
235option('group-render-mode', type : 'string', value : '0666',
236 description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
5c23128d
ZJS
237option('default-kill-user-processes', type : 'boolean',
238 description : 'the default value for KillUserProcesses= setting')
b14e1b43
FB
239option('gshadow', type : 'boolean',
240 description : 'support for shadow group')
03475e22 241option('default-locale', type : 'string', value : '',
8ca9e92c 242 description : 'default locale used when /etc/locale.conf does not exist')
21d0dd5a
ZJS
243option('service-watchdog', type : 'string', value : '3min',
244 description : 'default watchdog setting for systemd services')
5c23128d
ZJS
245
246option('default-dnssec', type : 'combo',
247 description : 'default DNSSEC mode',
248 choices : ['yes', 'allow-downgrade', 'no'],
249 value : 'allow-downgrade')
c9299be2
IT
250option('default-dns-over-tls', type : 'combo',
251 description : 'default DNS-over-TLS mode',
4310bfc2 252 choices : ['yes', 'opportunistic', 'no'],
5d67a7ae 253 value : 'no')
3614df05
ZJS
254option('default-mdns', type : 'combo',
255 choices : ['yes', 'resolve', 'no'],
256 description : 'default MulticastDNS mode',
257 value : 'yes')
258option('default-llmnr', type : 'combo',
259 choices : ['yes', 'resolve', 'no'],
260 description : 'default LLMNR mode',
261 value : 'yes')
096cbdce 262option('dns-over-tls', type : 'combo', choices : ['auto', 'gnutls', 'openssl', 'true', 'false'],
56ddbf10 263 description : 'DNS-over-TLS support')
5c23128d
ZJS
264option('dns-servers', type : 'string',
265 description : 'space-separated list of default DNS servers',
def3c7c7 266 value : '1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4 2606:4700:4700::1111 2001:4860:4860::8888 2606:4700:4700::1001 2001:4860:4860::8844')
5c23128d
ZJS
267option('ntp-servers', type : 'string',
268 description : 'space-separated list of default NTP servers',
269 value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
270option('support-url', type : 'string',
271 description : 'the support URL to show in catalog entries included in systemd',
272 value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
f75d75eb
ZJS
273option('www-target', type : 'string',
274 description : 'the address and dir to upload docs too',
275 value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
5c23128d 276
4390be30 277option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 278 description : 'SECCOMP support')
4390be30 279option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 280 description : 'SELinux support')
4390be30 281option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 282 description : 'AppArmor support')
5464ec8a 283option('smack', type : 'boolean',
5c23128d
ZJS
284 description : 'SMACK support')
285option('smack-run-label', type : 'string',
286 description : 'run systemd --system itself with a specific SMACK label')
4390be30 287option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
d35f51ea 288 description : 'polkit support')
2895c8ee
ZJS
289option('ima', type : 'boolean',
290 description : 'IMA support')
5c23128d 291
36f0387e
ZJS
292option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
293 description : 'libacl support')
4390be30 294option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 295 description : 'libaudit support')
4390be30 296option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 297 description : 'libblkid support')
e594a3b1
LP
298option('fdisk', type : 'combo', choices : ['auto', 'true', 'false'],
299 description : 'libfdisk support')
4390be30 300option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 301 description : 'support for loadable modules')
4390be30 302option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 303 description : 'PAM support')
70a5db58
LP
304option('pwquality', type : 'combo', choices : ['auto', 'true', 'false'],
305 description : 'libpwquality support')
4390be30 306option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 307 description : 'libµhttpd support')
4390be30 308option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 309 description : 'libcryptsetup support')
4390be30 310option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 311 description : 'libcurl support')
d1bf5675 312option('idn', type : 'boolean',
38b38500 313 description : 'use IDN when printing hostnames')
87057e24
ZJS
314option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
315 description : 'libidn2 support')
4390be30 316option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 317 description : 'libidn support')
4390be30 318option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 319 description : 'libiptc support')
4390be30 320option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 321 description : 'libqrencode support')
76c87410
MB
322option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
323 description : 'gcrypt support')
4390be30 324option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 325 description : 'gnutls support')
096cbdce
IT
326option('openssl', type : 'combo', choices : ['auto', 'true', 'false'],
327 description : 'openssl support')
839fddbe
LP
328option('p11kit', type : 'combo', choices : ['auto', 'true', 'false'],
329 description : 'p11kit support')
af4fbd46
LP
330option('libfido2', type : 'combo', choices : ['auto', 'true', 'false'],
331 description : 'FIDO2 support')
5e521624
LP
332option('tpm2', type : 'combo', choices : ['auto', 'true', 'false'],
333 description : 'TPM2 support')
4390be30 334option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 335 description : 'elfutils support')
4390be30 336option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 337 description : 'zlib compression support')
4390be30 338option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 339 description : 'bzip2 compression support')
4390be30 340option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 341 description : 'xz compression support')
4390be30 342option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 343 description : 'lz4 compression support')
ef5924aa
NL
344option('zstd', type : 'combo', choices : ['auto', 'true', 'false'],
345 description : 'zstd compression support')
4390be30 346option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
1eeb43f5 347 description : 'xkbcommon keymap support')
c4c978a0
ZJS
348option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
349 description : 'regexp matching support using pcre2')
4390be30 350option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
69e96427 351 description : 'libglib support (for tests only)')
4390be30 352option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
69e96427 353 description : 'libdbus support (for tests only)')
5c23128d 354
4390be30 355option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
b710072d 356 description : 'gnu-efi support for sd-boot')
595343fb 357option('efi-cc', type : 'array',
b710072d 358 description : 'the compiler to use for EFI modules')
df7cacae 359option('efi-ld', type : 'string',
b710072d
ZJS
360 description : 'the linker to use for EFI modules')
361option('efi-libdir', type : 'string',
362 description : 'path to the EFI lib directory')
b710072d
ZJS
363option('efi-includedir', type : 'string', value : '/usr/include/efi',
364 description : 'path to the EFI header directory')
ac09340e 365option('tpm-pcrindex', type : 'integer', value : 8,
80c6fce8 366 description : 'TPM PCR register number to use')
b710072d 367
5c23128d
ZJS
368option('bashcompletiondir', type : 'string',
369 description : 'directory for bash completion scripts ["no" disables]')
370option('zshcompletiondir', type : 'string',
371 description : 'directory for zsh completion scripts ["no" disables]')
69e96427 372
08318a2c 373option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
69e96427 374 description : 'enable extra tests with =unsafe')
00d82c81
ZJS
375option('slow-tests', type : 'boolean', value : 'false',
376 description : 'run the slow tests by default')
c56463fd
FS
377option('fuzz-tests', type : 'boolean', value : 'false',
378 description : 'run the fuzzer regression tests by default')
572baca1
ZJS
379option('install-tests', type : 'boolean', value : 'false',
380 description : 'install test executables')
7db7d5b7 381
ceedbf81 382option('ok-color', type : 'combo',
96164a39 383 choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
f7c5427c
ZJS
384 'white', 'highlight-black', 'highlight-red', 'highlight-green',
385 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
386 'highlight-cyan', 'highlight-white'],
96164a39
AR
387 value : 'green',
388 description: 'color of the "OK" status message')
ceedbf81
ZJS
389option('fexecve', type : 'boolean', value : 'false',
390 description : 'use fexecve() to spawn children')
96164a39 391
7db7d5b7
JR
392option('oss-fuzz', type : 'boolean', value : 'false',
393 description : 'build against oss-fuzz')
31e57a35
JR
394option('llvm-fuzz', type : 'boolean', value : 'false',
395 description : 'build against LLVM libFuzzer')
5fa5c3e2 396option('kernel-install', type: 'boolean', value: 'true',
f30bf4d9 397 description : 'install kernel-install and associated files')
dd0f7952 398option('analyze', type: 'boolean', value: 'true',
f30bf4d9 399 description : 'install systemd-analyze')