]> git.ipfire.org Git - thirdparty/systemd.git/blame - meson_options.txt
core: use id unit when retrieving unit file state (#8038)
[thirdparty/systemd.git] / meson_options.txt
CommitLineData
5c23128d 1# -*- mode: meson -*-
3a726fcd
ZJS
2# SPDX-License-Identifier: LGPL-2.1+
3#
4# Copyright 2017 Zbigniew Jędrzejewski-Szmek
5#
6# systemd is free software; you can redistribute it and/or modify it
7# under the terms of the GNU Lesser General Public License as published by
8# the Free Software Foundation; either version 2.1 of the License, or
9# (at your option) any later version.
10#
11# systemd is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14# Lesser General Public License for more details.
15#
16# You should have received a copy of the GNU Lesser General Public License
17# along with systemd; If not, see <http://www.gnu.org/licenses/>.
5c23128d
ZJS
18
19option('split-usr', type : 'boolean', value : false,
20 description : '''assume that /bin, /sbin aren't symlinks into /usr''')
21option('rootlibdir', type : 'string',
22 description : '''[/usr]/lib/x86_64-linux-gnu or such''')
74344a17
ZJS
23option('rootprefix', type : 'string',
24 description : '''override the root prefix''')
3a30f21f
ZJS
25option('link-udev-shared', type : 'boolean',
26 description : 'link systemd-udev and its helpers to libsystemd-shared.so')
5c23128d
ZJS
27
28option('sysvinit-path', type : 'string', value : '/etc/init.d',
29 description : 'the directory where the SysV init scripts are located')
30option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
31 description : 'the base directory for SysV rcN.d directories')
2fa645f1
MG
32option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
33 description : 'path to telinit')
2a4c156d
ZJS
34option('rc-local', type : 'string',
35 value : '/etc/rc.local')
36option('halt-local', type : 'string',
37 value : '/usr/sbin/halt.local')
5c23128d
ZJS
38
39option('quotaon-path', type : 'string', description : 'path to quotaon')
40option('quotacheck-path', type : 'string', description : 'path to quotacheck')
41option('kill-path', type : 'string', description : 'path to kill')
42option('kmod-path', type : 'string', description : 'path to kmod')
43option('kexec-path', type : 'string', description : 'path to kexec')
44option('sulogin-path', type : 'string', description : 'path to sulogin')
45option('mount-path', type : 'string', description : 'path to mount')
46option('umount-path', type : 'string', description : 'path to umount')
47option('loadkeys-path', type : 'string', description : 'path to loadkeys')
48option('setfont-path', type : 'string', description : 'path to setfont')
49
3131bfe3
ZJS
50option('debug-shell', type : 'string', value : '/bin/sh',
51 description : 'path to debug shell binary')
52option('debug-tty', type : 'string', value : '/dev/tty9',
53 description : 'specify the tty device for debug shell')
671677da
ZJS
54option('debug', type : 'string',
55 description : 'enable extra debugging (hashmap,mmap-cache)')
3131bfe3 56
5c23128d
ZJS
57option('utmp', type : 'boolean',
58 description : 'support for utmp/wtmp log handling')
59option('hibernate', type : 'boolean',
60 description : 'support for hibernation')
61option('ldconfig', type : 'boolean',
62 description : 'support for dynamic linker cache creation')
63option('resolve', type : 'boolean',
64 description : 'systemd-resolved stack')
65option('efi', type : 'boolean',
8191c594 66 description : 'enable systemd-boot and bootctl')
cd4823f6 67option('tpm', type : 'boolean',
80c6fce8 68 description : 'TPM should be used to log events and extend the registers')
5c23128d
ZJS
69option('environment-d', type : 'boolean',
70 description : 'support for environment.d')
71option('binfmt', type : 'boolean',
72 description : 'support for custom binary formats')
73option('coredump', type : 'boolean',
74 description : 'install the coredump handler')
75option('logind', type : 'boolean',
76 description : 'install the systemd-logind stack')
77option('hostnamed', type : 'boolean',
78 description : 'install the systemd-hostnamed stack')
79option('localed', type : 'boolean',
80 description : 'install the systemd-localed stack')
81option('machined', type : 'boolean',
82 description : 'install the systemd-machined stack')
83option('networkd', type : 'boolean',
84 description : 'install the systemd-networkd stack')
85option('timedated', type : 'boolean',
86 description : 'install the systemd-timedated daemon')
87option('timesyncd', type : 'boolean',
88 description : 'install the systemd-timesyncd daemon')
b1519d65 89option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d
ZJS
90 description : 'support for "journal over the network"')
91option('myhostname', type : 'boolean',
92 description : 'nss-myhostname support')
93option('firstboot', type : 'boolean',
94 description : 'support for firstboot mechanism')
95option('randomseed', type : 'boolean',
96 description : 'support for restoring random seed')
97option('backlight', type : 'boolean',
98 description : 'support for restoring backlight state')
99option('vconsole', type : 'boolean',
100 description : 'support for vconsole configuration')
101option('quotacheck', type : 'boolean',
102 description : 'support for the quotacheck tools')
103option('sysusers', type : 'boolean',
104 description : 'support for the sysusers configuration')
105option('tmpfiles', type : 'boolean',
106 description : 'support for tmpfiles.d')
b1519d65 107option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d
ZJS
108 description : 'install the systemd-importd daemon')
109option('hwdb', type : 'boolean',
110 description : 'support for the hardware database')
111option('rfkill', type : 'boolean',
112 description : 'support for the rfkill tools')
4390be30 113option('man', type : 'combo', choices : ['auto', 'true', 'false'],
527d43d7 114 description : 'build and install man pages')
4390be30
ZJS
115option('html', type : 'combo', choices : ['auto', 'true', 'false'],
116 value : 'false',
527d43d7 117 description : 'build and install html pages')
5c23128d
ZJS
118
119option('certificate-root', type : 'string', value : '/etc/ssl',
120 description : 'the prefix for TLS certificates')
121option('dbuspolicydir', type : 'string',
122 description : 'D-Bus policy directory')
123option('dbussessionservicedir', type : 'string',
124 description : 'D-Bus session service directory')
125option('dbussystemservicedir', type : 'string',
126 description : 'D-Bus system service directory')
127option('pkgconfigdatadir', type : 'string', value : 'share/pkgconfig',
128 description : 'directory for ')
129option('pkgconfiglibdir', type : 'string', value : '',
130 description : 'directory for ')
131option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
132 description : 'directory for rpm macros ["no" disables]')
133option('pamlibdir', type : 'string',
134 description : 'directory for PAM modules')
135option('pamconfdir', type : 'string',
136 description : 'directory for PAM configuration ["no" disables]')
75aaade1
TB
137option('docdir', type : 'string',
138 description : 'documentation directory')
5c23128d
ZJS
139
140option('fallback-hostname', type : 'string', value : 'localhost',
141 description : 'the hostname used if none configured')
5248e7e1
ZJS
142option('compat-gateway-hostname', type : 'boolean', value : 'false',
143 description : 'allow "gateway" as the symbolic name for default gateway')
5c23128d
ZJS
144option('default-hierarchy', type : 'combo',
145 choices : ['legacy', 'hybrid', 'unified'], value : 'hybrid',
146 description : 'default cgroup hierarchy')
147option('time-epoch', type : 'string',
148 description : 'time epoch for time clients')
149option('system-uid-max', type : 'string',
150 description : 'maximum system UID')
151option('system-gid-max', type : 'string',
152 description : 'maximum system GID')
87d5e4f2
LP
153option('dynamic-uid-min', type : 'string',
154 description : 'minimum dynamic UID',
155 value : '61184') # That's → 0x0000EF00 in hex
156option('dynamic-uid-max', type : 'string',
157 description : 'maximum dynamic UID',
158 value : '65519') # That's → 0x0000FFEF in hex
159option('container-uid-base-min', type : 'string',
160 description : 'minimum container UID base',
161 value : '524288') # That's → 0x00080000 in hex
162option('container-uid-base-max', type : 'string',
163 description : 'maximum container UID base',
164 value : '1878982656') # That's → 0x6FFF0000 in hex
5c23128d
ZJS
165option('tty-gid', type : 'string',
166 description : 'the numeric GID of the "tty" group',
167 value : '5')
84786b8e
ID
168option('users-gid', type : 'string',
169 description : 'the numeric GID of the "users" group')
5c23128d
ZJS
170option('adm-group', type : 'boolean',
171 description : 'the ACL for adm group should be added')
172option('wheel-group', type : 'boolean',
173 description : 'the ACL for wheel group should be added')
174option('nobody-user', type : 'string',
175 description : 'The name of the nobody user (the one with UID 65534)',
176 value : 'nobody')
177option('nobody-group', type : 'string',
178 description : 'The name of the nobody group (the one with GID 65534)',
179 value : 'nobody')
b8fd3d82 180option('dev-kvm-mode', type : 'string', value : '0666',
5c23128d 181 description : '/dev/kvm access mode')
4e15a734
TS
182option('group-render-mode', type : 'string', value : '0666',
183 description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
5c23128d
ZJS
184option('default-kill-user-processes', type : 'boolean',
185 description : 'the default value for KillUserProcesses= setting')
b14e1b43
FB
186option('gshadow', type : 'boolean',
187 description : 'support for shadow group')
5c23128d
ZJS
188
189option('default-dnssec', type : 'combo',
190 description : 'default DNSSEC mode',
191 choices : ['yes', 'allow-downgrade', 'no'],
192 value : 'allow-downgrade')
193option('dns-servers', type : 'string',
194 description : 'space-separated list of default DNS servers',
195 value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
196option('ntp-servers', type : 'string',
197 description : 'space-separated list of default NTP servers',
198 value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
199option('support-url', type : 'string',
200 description : 'the support URL to show in catalog entries included in systemd',
201 value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
f75d75eb
ZJS
202option('www-target', type : 'string',
203 description : 'the address and dir to upload docs too',
204 value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
5c23128d 205
4390be30 206option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 207 description : 'SECCOMP support')
4390be30 208option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 209 description : 'SELinux support')
4390be30 210option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 211 description : 'AppArmor support')
5464ec8a 212option('smack', type : 'boolean',
5c23128d
ZJS
213 description : 'SMACK support')
214option('smack-run-label', type : 'string',
215 description : 'run systemd --system itself with a specific SMACK label')
4390be30 216option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
3ca0cb73 217 description : 'PolicyKit support')
2895c8ee
ZJS
218option('ima', type : 'boolean',
219 description : 'IMA support')
5c23128d 220
36f0387e
ZJS
221option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
222 description : 'libacl support')
4390be30 223option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 224 description : 'libaudit support')
4390be30 225option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 226 description : 'libblkid support')
4390be30 227option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 228 description : 'support for loadable modules')
4390be30 229option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 230 description : 'PAM support')
4390be30 231option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 232 description : 'libµhttpd support')
4390be30 233option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 234 description : 'libcryptsetup support')
4390be30 235option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 236 description : 'libcurl support')
d1bf5675
ZJS
237option('idn', type : 'boolean',
238 description : 'use IDN when printing host names')
87057e24
ZJS
239option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
240 description : 'libidn2 support')
4390be30 241option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 242 description : 'libidn support')
e7e11bbf
WB
243option('nss-systemd', type : 'boolean',
244 description : 'enable nss-systemd')
4390be30 245option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 246 description : 'libiptc support')
4390be30 247option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 248 description : 'libqrencode support')
76c87410
MB
249option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
250 description : 'gcrypt support')
4390be30 251option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 252 description : 'gnutls support')
4390be30 253option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 254 description : 'elfutils support')
4390be30 255option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 256 description : 'zlib compression support')
4390be30 257option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 258 description : 'bzip2 compression support')
4390be30 259option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 260 description : 'xz compression support')
4390be30 261option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
5c23128d 262 description : 'lz4 compression support')
4390be30 263option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
1eeb43f5 264 description : 'xkbcommon keymap support')
c4c978a0
ZJS
265option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
266 description : 'regexp matching support using pcre2')
4390be30 267option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
69e96427 268 description : 'libglib support (for tests only)')
4390be30 269option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
69e96427 270 description : 'libdbus support (for tests only)')
5c23128d 271
4390be30 272option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
b710072d
ZJS
273 description : 'gnu-efi support for sd-boot')
274option('efi-cc', type : 'string', value : 'gcc',
275 description : 'the compiler to use for EFI modules')
276option('efi-ld', type : 'string', value : 'ld',
277 description : 'the linker to use for EFI modules')
278option('efi-libdir', type : 'string',
279 description : 'path to the EFI lib directory')
280option('efi-ldsdir', type : 'string',
281 description : 'path to the EFI lds directory')
282option('efi-includedir', type : 'string', value : '/usr/include/efi',
283 description : 'path to the EFI header directory')
80c6fce8
ZJS
284option('tpm-pcrindex', type : 'string', value : '8',
285 description : 'TPM PCR register number to use')
b710072d 286
5c23128d
ZJS
287option('bashcompletiondir', type : 'string',
288 description : 'directory for bash completion scripts ["no" disables]')
289option('zshcompletiondir', type : 'string',
290 description : 'directory for zsh completion scripts ["no" disables]')
69e96427 291
08318a2c 292option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
69e96427 293 description : 'enable extra tests with =unsafe')
00d82c81
ZJS
294option('slow-tests', type : 'boolean', value : 'false',
295 description : 'run the slow tests by default')
572baca1
ZJS
296option('install-tests', type : 'boolean', value : 'false',
297 description : 'install test executables')
7db7d5b7
JR
298
299option('oss-fuzz', type : 'boolean', value : 'false',
300 description : 'build against oss-fuzz')
31e57a35
JR
301option('llvm-fuzz', type : 'boolean', value : 'false',
302 description : 'build against LLVM libFuzzer')