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