chiark / gitweb /
test: add tests for signal_from_string()
[elogind.git] / meson_options.txt
1 # -*- mode: meson -*-
2 # SPDX-License-Identifier: LGPL-2.1+
3 #
4 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5
6 option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
7        description : '''/bin, /sbin aren't symlinks into /usr''')
8 option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
9        description : '''sbin is not a symlink to bin''')
10 option('rootlibdir', type : 'string',
11        description : '''[/usr]/lib/x86_64-linux-gnu or such''')
12 option('rootprefix', type : 'string',
13        description : '''override the root prefix''')
14 #if 0 /// UNNEEDED by elogind
15 # option('link-udev-shared', type : 'boolean',
16 #        description : 'link systemd-udev and its helpers to libsystemd-shared.so')
17
18 # option('sysvinit-path', type : 'string', value : '/etc/init.d',
19 #        description : 'the directory where the SysV init scripts are located')
20 # option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
21 #        description : 'the base directory for SysV rcN.d directories')
22 # option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
23 #        description : 'path to telinit')
24 # option('rc-local', type : 'string',
25 #        value : '/etc/rc.local')
26 # option('halt-local', type : 'string',
27 #        value : '/usr/sbin/halt.local')
28
29 # option('quotaon-path', type : 'string', description : 'path to quotaon')
30 # option('quotacheck-path', type : 'string', description : 'path to quotacheck')
31 # option('kill-path', type : 'string', description : 'path to kill')
32 # option('kmod-path', type : 'string', description : 'path to kmod')
33 #else
34 # elogind must have a configurable rootlibexecdir
35 option('rootlibexecdir', type : 'string',
36        description : '''override the root libexec directory path''')
37
38 # And because elogind depends on external udev, it must be
39 # configurable as well.
40 option('udevrulesdir', type : 'string',
41        description : '''directory for udev rules files''')
42
43 option('udevbindir', type : 'string',
44        description : '''directory for udev binary files''')
45
46 # We are nice and make the documentation paths configurable
47 option('docdir', type : 'string', description : 'path where to install the documentation.')
48 option('htmldir', type : 'string', description : 'path where to install the HTML documentation.')
49
50 # We have no systemd-shutdown binary, so we need 'halt', 'reboot' and 'poweroff'
51 option('halt-path', type : 'string', description : 'path to halt')
52 option('poweroff-path', type : 'string', description : 'path to poweroff')
53 option('reboot-path', type : 'string', description : 'path to reboot')
54 #endif // 0
55 option('kexec-path', type : 'string', description : 'path to kexec')
56 #if 0 /// UNNEEDED by elogind
57 # option('sulogin-path', type : 'string', description : 'path to sulogin')
58 # option('mount-path', type : 'string', description : 'path to mount')
59 # option('umount-path', type : 'string', description : 'path to umount')
60 # option('loadkeys-path', type : 'string', description : 'path to loadkeys')
61 # option('setfont-path', type : 'string', description : 'path to setfont')
62
63 # option('debug-shell', type : 'string', value : '/bin/sh',
64 #        description : 'path to debug shell binary')
65 # option('debug-tty', type : 'string', value : '/dev/tty9',
66 #        description : 'specify the tty device for debug shell')
67 # option('debug', type : 'string',
68 #        description : 'enable extra debugging (hashmap,mmap-cache)')
69 # option('memory-accounting-default', type : 'boolean',
70 #        description : 'enable MemoryAccounting= by default')
71 #else
72 option('debug', type : 'string',
73        description : 'enable extra debugging (elogind,hashmap,mmap-cache)')
74 #endif // 0
75
76 option('utmp', type : 'boolean',
77        description : 'support for utmp/wtmp log handling')
78 #if 0 /// UNNEEDED by elogind
79 # option('hibernate', type : 'boolean',
80 #        description : 'support for hibernation')
81 # option('ldconfig', type : 'boolean',
82 #        description : 'support for dynamic linker cache creation')
83 # option('resolve', type : 'boolean',
84 #        description : 'systemd-resolved stack')
85 # option('efi', type : 'boolean',
86 #        description : 'enable systemd-boot and bootctl')
87 # option('tpm', type : 'boolean',
88 #        description : 'TPM should be used to log events and extend the registers')
89 # option('environment-d', type : 'boolean',
90 #        description : 'support for environment.d')
91 # option('binfmt', type : 'boolean',
92 #        description : 'support for custom binary formats')
93 # option('coredump', type : 'boolean',
94 #        description : 'install the coredump handler')
95 # option('logind', type : 'boolean',
96 #        description : 'install the systemd-logind stack')
97 # option('hostnamed', type : 'boolean',
98 #        description : 'install the systemd-hostnamed stack')
99 # option('localed', type : 'boolean',
100 #        description : 'install the systemd-localed stack')
101 # option('machined', type : 'boolean',
102 #        description : 'install the systemd-machined stack')
103 # option('networkd', type : 'boolean',
104 #        description : 'install the systemd-networkd stack')
105 # option('timedated', type : 'boolean',
106 #        description : 'install the systemd-timedated daemon')
107 # option('timesyncd', type : 'boolean',
108 #        description : 'install the systemd-timesyncd daemon')
109 # option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
110 #        description : 'support for "journal over the network"')
111 # option('myhostname', type : 'boolean',
112 #        description : 'nss-myhostname support')
113 # option('firstboot', type : 'boolean',
114 #        description : 'support for firstboot mechanism')
115 # option('randomseed', type : 'boolean',
116 #        description : 'support for restoring random seed')
117 # option('backlight', type : 'boolean',
118 #        description : 'support for restoring backlight state')
119 # option('vconsole', type : 'boolean',
120 #        description : 'support for vconsole configuration')
121 # option('quotacheck', type : 'boolean',
122 #        description : 'support for the quotacheck tools')
123 # option('sysusers', type : 'boolean',
124 #        description : 'support for the sysusers configuration')
125 # option('tmpfiles', type : 'boolean',
126 #        description : 'support for tmpfiles.d')
127 # option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
128 #        description : 'install the systemd-importd daemon')
129 # option('hwdb', type : 'boolean',
130 #        description : 'support for the hardware database')
131 # option('rfkill', type : 'boolean',
132 #        description : 'support for the rfkill tools')
133 #endif // 0
134 option('man', type : 'combo', choices : ['auto', 'true', 'false'],
135        description : 'build and install man pages')
136 option('html', type : 'combo', choices : ['auto', 'true', 'false'],
137        value : 'false',
138        description : 'build and install html pages')
139
140 #if 0 /// UNNEEDED by elogind
141 # option('certificate-root', type : 'string', value : '/etc/ssl',
142 #        description : 'the prefix for TLS certificates')
143 #endif // 0
144 option('dbuspolicydir', type : 'string',
145        description : 'D-Bus policy directory')
146 option('dbussessionservicedir', type : 'string',
147        description : 'D-Bus session service directory')
148 option('dbussystemservicedir', type : 'string',
149        description : 'D-Bus system service directory')
150 option('pkgconfigdatadir', type : 'string', value : 'share/pkgconfig',
151        description : 'directory for ')
152 option('pkgconfiglibdir', type : 'string', value : '',
153        description : 'directory for ')
154 #if 0 /// UNNEEDED by elogind
155 # option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
156 #        description : 'directory for rpm macros ["no" disables]')
157 #endif // 0
158 option('pamlibdir', type : 'string',
159        description : 'directory for PAM modules')
160 option('pamconfdir', type : 'string',
161        description : 'directory for PAM configuration ["no" disables]')
162 option('docdir', type : 'string',
163        description : 'documentation directory')
164
165 option('fallback-hostname', type : 'string', value : 'localhost',
166        description : 'the hostname used if none configured')
167 #if 0 /// UNNEEDED by elogind
168 # option('compat-gateway-hostname', type : 'boolean', value : 'false',
169 #        description : 'allow "gateway" as the symbolic name for default gateway')
170 #endif // 0
171 option('default-hierarchy', type : 'combo',
172        choices : ['legacy', 'hybrid', 'unified'], value : 'hybrid',
173 #if 0 /// elogind interprets this a bit different
174 #        description : 'default cgroup hierarchy')
175 # option('time-epoch', type : 'string',
176 #        description : 'time epoch for time clients')
177 #else
178        description : '''Wanted cgroup hierarchy if elogind has to be a cgroup controller:
179                 "legacy"  assumes tmpfs mounted on /sys/fs/cgroup and cgroup on its
180                                   subfolders.
181                 "hybrid"  assumes cgroups version 2 mounted on /sys/fs/cgroup/unified.
182                                   /sys/fs/cgroup is legacy, then.
183                 "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
184 option('cgroup-controller', type : 'string',
185        description : 'Name of the cgroup controller to use')
186 #endif // 0
187 option('system-uid-max', type : 'string',
188        description : 'maximum system UID')
189 option('system-gid-max', type : 'string',
190        description : 'maximum system GID')
191 #if 0 /// UNNEEDED by elogind
192 # option('dynamic-uid-min', type : 'string',
193 #        description : 'minimum dynamic UID',
194 #        value : '61184') # That's → 0x0000EF00 in hex
195 # option('dynamic-uid-max', type : 'string',
196 #        description : 'maximum dynamic UID',
197 #        value : '65519') # That's → 0x0000FFEF in hex
198 # option('container-uid-base-min', type : 'string',
199 #        description : 'minimum container UID base',
200 #        value : '524288') # That's → 0x00080000 in hex
201 # option('container-uid-base-max', type : 'string',
202 #        description : 'maximum container UID base',
203 #        value : '1878982656') # That's → 0x6FFF0000 in hex
204 #endif // 0
205 option('tty-gid', type : 'string',
206        description : 'the numeric GID of the "tty" group',
207        value : '5')
208 #if 0 /// UNNEEDED by elogind
209 # option('users-gid', type : 'string',
210 #        description : 'the numeric GID of the "users" group')
211 # option('adm-group', type : 'boolean',
212 #        description : 'the ACL for adm group should be added')
213 # option('wheel-group', type : 'boolean',
214 #        description : 'the ACL for wheel group should be added')
215 #endif // 0
216 option('nobody-user', type : 'string',
217        description : 'The name of the nobody user (the one with UID 65534)',
218        value : 'nobody')
219 option('nobody-group', type : 'string',
220        description : 'The name of the nobody group (the one with GID 65534)',
221        value : 'nobody')
222 #if 0 /// UNNEEDED by elogind
223 # option('dev-kvm-mode', type : 'string', value : '0666',
224 #        description : '/dev/kvm access mode')
225 # option('group-render-mode', type : 'string', value : '0666',
226 #        description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
227 #endif // 0
228 option('default-kill-user-processes', type : 'boolean',
229        description : 'the default value for KillUserProcesses= setting')
230 option('gshadow', type : 'boolean',
231        description : 'support for shadow group')
232
233 #if 0 /// UNNEEDED by elogind
234 # option('default-dnssec', type : 'combo',
235 #        description : 'default DNSSEC mode',
236 #        choices : ['yes', 'allow-downgrade', 'no'],
237 #        value : 'allow-downgrade')
238 # option('dns-servers', type : 'string',
239 #        description : 'space-separated list of default DNS servers',
240 #        value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
241 # option('ntp-servers', type : 'string',
242 #        description : 'space-separated list of default NTP servers',
243 #        value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
244 # option('support-url', type : 'string',
245 #        description : 'the support URL to show in catalog entries included in systemd',
246 #        value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
247 # option('www-target', type : 'string',
248 #        description : 'the address and dir to upload docs too',
249 #        value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
250
251 # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
252 #        description : 'SECCOMP support')
253 #endif // 0
254 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
255        description : 'SELinux support')
256 #if 0 /// UNNEEDED by elogind
257 # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
258 #        description : 'AppArmor support')
259 #endif // 0
260 option('smack', type : 'boolean',
261        description : 'SMACK support')
262 option('smack-run-label', type : 'string',
263        description : 'run systemd --system itself with a specific SMACK label')
264 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
265        description : 'PolicyKit support')
266 option('ima', type : 'boolean',
267        description : 'IMA support')
268
269 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
270        description : 'libacl support')
271 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
272        description : 'libaudit support')
273 #if 0 /// UNNEEDED by elogind
274 # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
275 #        description : 'libblkid support')
276 # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
277 #        description : 'support for loadable modules')
278 #endif // 0
279 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
280        description : 'PAM support')
281 #if 0 /// UNNEEDED by elogind
282 # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
283 #        description : 'libµhttpd support')
284 # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
285 #        description : 'libcryptsetup support')
286 # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
287 #        description : 'libcurl support')
288 # option('idn', type : 'boolean',
289 #        description : 'use IDN when printing host names')
290 # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
291 #        description : 'libidn2 support')
292 # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
293 #        description : 'libidn support')
294 # option('nss-systemd', type : 'boolean',
295 #        description : 'enable nss-systemd')
296 # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
297 #        description : 'libiptc support')
298 # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
299 #        description : 'libqrencode support')
300 # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
301 #        description : 'gcrypt support')
302 # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
303 #        description : 'gnutls support')
304 # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
305 #        description : 'elfutils support')
306 # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
307 #        description : 'zlib compression support')
308 # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
309 #        description : 'bzip2 compression support')
310 # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
311 #        description : 'xz compression support')
312 # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
313 #        description : 'lz4 compression support')
314 # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
315 #        description : 'xkbcommon keymap support')
316 #endif // 0
317 option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
318        description : 'regexp matching support using pcre2')
319 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
320        description : 'libglib support (for tests only)')
321 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
322        description : 'libdbus support (for tests only)')
323
324 #if 0 /// UNNEEDED BY elogind
325 # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
326 #        description : 'gnu-efi support for sd-boot')
327 # option('efi-cc', type : 'string', value : 'gcc',
328 #        description : 'the compiler to use for EFI modules')
329 # option('efi-ld', type : 'string', value : 'ld',
330 #        description : 'the linker to use for EFI modules')
331 # option('efi-libdir', type : 'string',
332 #        description : 'path to the EFI lib directory')
333 # option('efi-ldsdir', type : 'string',
334 #        description : 'path to the EFI lds directory')
335 # option('efi-includedir', type : 'string', value : '/usr/include/efi',
336 #        description : 'path to the EFI header directory')
337 # option('tpm-pcrindex', type : 'string', value : '8',
338 #        description : 'TPM PCR register number to use')
339 #endif // 0
340
341 option('bashcompletiondir', type : 'string',
342        description : 'directory for bash completion scripts ["no" disables]')
343 option('zshcompletiondir', type : 'string',
344        description : 'directory for zsh completion scripts ["no" disables]')
345
346 option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
347        description : 'enable extra tests with =unsafe')
348 option('slow-tests', type : 'boolean', value : 'false',
349        description : 'run the slow tests by default')
350 option('install-tests', type : 'boolean', value : 'false',
351        description : 'install test executables')
352
353 option('ok-color', type: 'combo',
354        choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
355                   'white', 'highlight-black', 'highlight-red', 'highlight-green',
356                   'highlight-yellow', 'highlight-blue', 'highlight-magenta',
357                   'highlight-cyan', 'highlight-white'],
358        value : 'green',
359        description: 'color of the "OK" status message')
360
361 #if 0 /// fuzz regression tests are not supported by elogind
362 # option('oss-fuzz', type : 'boolean', value : 'false',
363 #        description : 'build against oss-fuzz')
364 # option('llvm-fuzz', type : 'boolean', value : 'false',
365 #        description : 'build against LLVM libFuzzer')
366 #endif // 0