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