]> git.ipfire.org Git - thirdparty/systemd.git/blame - meson_options.txt
json: add APIs for quickly inserting hex blobs into as JSON strings
[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')
5c23128d
ZJS
164
165option('certificate-root', type : 'string', value : '/etc/ssl',
166 description : 'the prefix for TLS certificates')
167option('dbuspolicydir', type : 'string',
168 description : 'D-Bus policy directory')
169option('dbussessionservicedir', type : 'string',
170 description : 'D-Bus session service directory')
171option('dbussystemservicedir', type : 'string',
172 description : 'D-Bus system service directory')
a95696e3 173option('pkgconfigdatadir', type : 'string', value : '',
f62b08dd 174 description : 'directory for arch-independent pkg-config files')
5c23128d 175option('pkgconfiglibdir', type : 'string', value : '',
f62b08dd 176 description : 'directory for standard pkg-config files')
5c23128d
ZJS
177option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
178 description : 'directory for rpm macros ["no" disables]')
179option('pamlibdir', type : 'string',
180 description : 'directory for PAM modules')
181option('pamconfdir', type : 'string',
182 description : 'directory for PAM configuration ["no" disables]')
75aaade1
TB
183option('docdir', type : 'string',
184 description : 'documentation directory')
d7aa78c3
JT
185option('install-sysconfdir', type : 'boolean', value : true,
186 description : 'install configuration files to $sysconfdir')
5c23128d
ZJS
187
188option('fallback-hostname', type : 'string', value : 'localhost',
189 description : 'the hostname used if none configured')
190option('default-hierarchy', type : 'combo',
87cf1f8f 191 choices : ['legacy', 'hybrid', 'unified'], value : 'unified',
5c23128d 192 description : 'default cgroup hierarchy')
06da5c63
ZJS
193option('default-net-naming-scheme', type : 'combo',
194 choices : ['latest', 'v238', 'v239', 'v240'],
195 description : 'default net.naming-scheme= value')
36cf4507
ZJS
196option('status-unit-format-default', type : 'combo',
197 choices : ['description', 'name'],
198 description : 'use unit name or description in messages by default')
ac09340e 199option('time-epoch', type : 'integer', value : '-1',
5c23128d 200 description : 'time epoch for time clients')
fc1a5d1a
ZJS
201option('system-alloc-uid-min', type : 'integer', value : '-1',
202 description : 'minimum system UID used when allocating')
203option('system-alloc-gid-min', type : 'integer', value : '-1',
204 description : 'minimum system GID used when allocating')
ac09340e 205option('system-uid-max', type : 'integer', value : '-1',
5c23128d 206 description : 'maximum system UID')
ac09340e 207option('system-gid-max', type : 'integer', value : '-1',
5c23128d 208 description : 'maximum system GID')
ac09340e
YW
209option('dynamic-uid-min', type : 'integer', value : 0x0000EF00,
210 description : 'minimum dynamic UID')
211option('dynamic-uid-max', type : 'integer', value : 0x0000FFEF,
212 description : 'maximum dynamic UID')
213option('container-uid-base-min', type : 'integer', value : 0x00080000,
214 description : 'minimum container UID base')
215option('container-uid-base-max', type : 'integer', value : 0x6FFF0000,
216 description : 'maximum container UID base')
217option('tty-gid', type : 'integer', value : 5,
218 description : 'the numeric GID of the "tty" group')
219option('users-gid', type : 'integer', value : '-1',
84786b8e 220 description : 'the numeric GID of the "users" group')
5c23128d
ZJS
221option('adm-group', type : 'boolean',
222 description : 'the ACL for adm group should be added')
223option('wheel-group', type : 'boolean',
224 description : 'the ACL for wheel group should be added')
225option('nobody-user', type : 'string',
226 description : 'The name of the nobody user (the one with UID 65534)',
227 value : 'nobody')
228option('nobody-group', type : 'string',
229 description : 'The name of the nobody group (the one with GID 65534)',
230 value : 'nobody')
b8fd3d82 231option('dev-kvm-mode', type : 'string', value : '0666',
5c23128d 232 description : '/dev/kvm access mode')
4e15a734
TS
233option('group-render-mode', type : 'string', value : '0666',
234 description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
5c23128d
ZJS
235option('default-kill-user-processes', type : 'boolean',
236 description : 'the default value for KillUserProcesses= setting')
b14e1b43
FB
237option('gshadow', type : 'boolean',
238 description : 'support for shadow group')
03475e22 239option('default-locale', type : 'string', value : '',
8ca9e92c 240 description : 'default locale used when /etc/locale.conf does not exist')
21d0dd5a
ZJS
241option('service-watchdog', type : 'string', value : '3min',
242 description : 'default watchdog setting for systemd services')
5c23128d
ZJS
243
244option('default-dnssec', type : 'combo',
245 description : 'default DNSSEC mode',
246 choices : ['yes', 'allow-downgrade', 'no'],
247 value : 'allow-downgrade')
c9299be2
IT
248option('default-dns-over-tls', type : 'combo',
249 description : 'default DNS-over-TLS mode',
4310bfc2 250 choices : ['yes', 'opportunistic', 'no'],
5d67a7ae 251 value : 'no')
3614df05
ZJS
252option('default-mdns', type : 'combo',
253 choices : ['yes', 'resolve', 'no'],
254 description : 'default MulticastDNS mode',
255 value : 'yes')
256option('default-llmnr', type : 'combo',
257 choices : ['yes', 'resolve', 'no'],
258 description : 'default LLMNR mode',
259 value : 'yes')
096cbdce 260option('dns-over-tls', type : 'combo', choices : ['auto', 'gnutls', 'openssl', 'true', 'false'],
56ddbf10 261 description : 'DNS-over-TLS support')
5c23128d
ZJS
262option('dns-servers', type : 'string',
263 description : 'space-separated list of default DNS servers',
def3c7c7 264 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
265option('ntp-servers', type : 'string',
266 description : 'space-separated list of default NTP servers',
267 value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
268option('support-url', type : 'string',
269 description : 'the support URL to show in catalog entries included in systemd',
270 value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
f75d75eb
ZJS
271option('www-target', type : 'string',
272 description : 'the address and dir to upload docs too',
273 value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
5c23128d 274
4390be30 275option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 276 description : 'SECCOMP support')
4390be30 277option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 278 description : 'SELinux support')
4390be30 279option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 280 description : 'AppArmor support')
5464ec8a 281option('smack', type : 'boolean',
5c23128d
ZJS
282 description : 'SMACK support')
283option('smack-run-label', type : 'string',
284 description : 'run systemd --system itself with a specific SMACK label')
4390be30 285option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
d35f51ea 286 description : 'polkit support')
2895c8ee
ZJS
287option('ima', type : 'boolean',
288 description : 'IMA support')
5c23128d 289
36f0387e
ZJS
290option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
291 description : 'libacl support')
4390be30 292option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 293 description : 'libaudit support')
4390be30 294option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 295 description : 'libblkid support')
e594a3b1
LP
296option('fdisk', type : 'combo', choices : ['auto', 'true', 'false'],
297 description : 'libfdisk support')
4390be30 298option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 299 description : 'support for loadable modules')
4390be30 300option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 301 description : 'PAM support')
70a5db58
LP
302option('pwquality', type : 'combo', choices : ['auto', 'true', 'false'],
303 description : 'libpwquality support')
4390be30 304option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 305 description : 'libµhttpd support')
4390be30 306option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 307 description : 'libcryptsetup support')
4390be30 308option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 309 description : 'libcurl support')
d1bf5675 310option('idn', type : 'boolean',
38b38500 311 description : 'use IDN when printing hostnames')
87057e24
ZJS
312option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
313 description : 'libidn2 support')
4390be30 314option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 315 description : 'libidn support')
4390be30 316option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 317 description : 'libiptc support')
4390be30 318option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 319 description : 'libqrencode support')
76c87410
MB
320option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
321 description : 'gcrypt support')
4390be30 322option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 323 description : 'gnutls support')
096cbdce
IT
324option('openssl', type : 'combo', choices : ['auto', 'true', 'false'],
325 description : 'openssl support')
839fddbe
LP
326option('p11kit', type : 'combo', choices : ['auto', 'true', 'false'],
327 description : 'p11kit support')
af4fbd46
LP
328option('libfido2', type : 'combo', choices : ['auto', 'true', 'false'],
329 description : 'FIDO2 support')
4390be30 330option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 331 description : 'elfutils support')
4390be30 332option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 333 description : 'zlib compression support')
4390be30 334option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 335 description : 'bzip2 compression support')
4390be30 336option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 337 description : 'xz compression support')
4390be30 338option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 339 description : 'lz4 compression support')
ef5924aa
NL
340option('zstd', type : 'combo', choices : ['auto', 'true', 'false'],
341 description : 'zstd compression support')
4390be30 342option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
1eeb43f5 343 description : 'xkbcommon keymap support')
c4c978a0
ZJS
344option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
345 description : 'regexp matching support using pcre2')
4390be30 346option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
69e96427 347 description : 'libglib support (for tests only)')
4390be30 348option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
69e96427 349 description : 'libdbus support (for tests only)')
5c23128d 350
4390be30 351option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
b710072d 352 description : 'gnu-efi support for sd-boot')
595343fb 353option('efi-cc', type : 'array',
b710072d 354 description : 'the compiler to use for EFI modules')
df7cacae 355option('efi-ld', type : 'string',
b710072d
ZJS
356 description : 'the linker to use for EFI modules')
357option('efi-libdir', type : 'string',
358 description : 'path to the EFI lib directory')
b710072d
ZJS
359option('efi-includedir', type : 'string', value : '/usr/include/efi',
360 description : 'path to the EFI header directory')
ac09340e 361option('tpm-pcrindex', type : 'integer', value : 8,
80c6fce8 362 description : 'TPM PCR register number to use')
b710072d 363
5c23128d
ZJS
364option('bashcompletiondir', type : 'string',
365 description : 'directory for bash completion scripts ["no" disables]')
366option('zshcompletiondir', type : 'string',
367 description : 'directory for zsh completion scripts ["no" disables]')
69e96427 368
08318a2c 369option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
69e96427 370 description : 'enable extra tests with =unsafe')
00d82c81
ZJS
371option('slow-tests', type : 'boolean', value : 'false',
372 description : 'run the slow tests by default')
c56463fd
FS
373option('fuzz-tests', type : 'boolean', value : 'false',
374 description : 'run the fuzzer regression tests by default')
572baca1
ZJS
375option('install-tests', type : 'boolean', value : 'false',
376 description : 'install test executables')
7db7d5b7 377
ceedbf81 378option('ok-color', type : 'combo',
96164a39 379 choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
f7c5427c
ZJS
380 'white', 'highlight-black', 'highlight-red', 'highlight-green',
381 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
382 'highlight-cyan', 'highlight-white'],
96164a39
AR
383 value : 'green',
384 description: 'color of the "OK" status message')
ceedbf81
ZJS
385option('fexecve', type : 'boolean', value : 'false',
386 description : 'use fexecve() to spawn children')
96164a39 387
7db7d5b7
JR
388option('oss-fuzz', type : 'boolean', value : 'false',
389 description : 'build against oss-fuzz')
31e57a35
JR
390option('llvm-fuzz', type : 'boolean', value : 'false',
391 description : 'build against LLVM libFuzzer')
5fa5c3e2 392option('kernel-install', type: 'boolean', value: 'true',
f30bf4d9 393 description : 'install kernel-install and associated files')
dd0f7952 394option('analyze', type: 'boolean', value: 'true',
f30bf4d9 395 description : 'install systemd-analyze')