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