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