chiark / gitweb /
meson: support both separate and merged sbin-bin directories
[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 # elogind 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 # elogind 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 elogind; If not, see <http://www.gnu.org/licenses/>.
18
19 option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
20        description : '''/bin, /sbin aren't symlinks into /usr''')
21 option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
22        description : '''sbin is not a symlink to bin''')
23 option('rootlibdir', type : 'string',
24        description : '''[/usr]/lib/x86_64-linux-gnu or such''')
25 option('rootprefix', type : 'string',
26        description : '''override the root prefix''')
27 #if 0 /// UNNEEDED by elogind
28 # option('link-udev-shared', type : 'boolean',
29 #        description : 'link systemd-udev and its helpers to libsystemd-shared.so')
30
31 # option('sysvinit-path', type : 'string', value : '/etc/init.d',
32 #        description : 'the directory where the SysV init scripts are located')
33 # option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
34 #        description : 'the base directory for SysV rcN.d directories')
35 # option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
36 #        description : 'path to telinit')
37 # option('rc-local', type : 'string',
38 #        value : '/etc/rc.local')
39 # option('halt-local', type : 'string',
40 #        value : '/usr/sbin/halt.local')
41
42 # option('quotaon-path', type : 'string', description : 'path to quotaon')
43 # option('quotacheck-path', type : 'string', description : 'path to quotacheck')
44 # option('kill-path', type : 'string', description : 'path to kill')
45 # option('kmod-path', type : 'string', description : 'path to kmod')
46 #else
47 # elogind must have a configurable rootlibexecdir
48 option('rootlibexecdir', type : 'string',
49        description : '''override the root libexec directory path''')
50
51 # And because elogind depends on external udev, it must be
52 # configurable as well.
53 option('udevrulesdir', type : 'string',
54        description : '''directory for udev rules files''')
55
56 option('udevbindir', type : 'string',
57        description : '''directory for udev binary files''')
58
59 # We are nice and make the documentation paths configurable
60 option('docdir', type : 'string', description : 'path where to install the documentation.')
61 option('htmldir', type : 'string', description : 'path where to install the HTML documentation.')
62
63 # We have no systemd-shutdown binary, so we need 'halt' and 'reboot'
64 option('halt-path', type : 'string', description : 'path to halt')
65 option('reboot-path', type : 'string', description : 'path to reboot')
66 #endif // 0
67 option('kexec-path', type : 'string', description : 'path to kexec')
68 #if 0 /// UNNEEDED by elogind
69 # option('sulogin-path', type : 'string', description : 'path to sulogin')
70 # option('mount-path', type : 'string', description : 'path to mount')
71 # option('umount-path', type : 'string', description : 'path to umount')
72 # option('loadkeys-path', type : 'string', description : 'path to loadkeys')
73 # option('setfont-path', type : 'string', description : 'path to setfont')
74
75 # option('debug-shell', type : 'string', value : '/bin/sh',
76 #        description : 'path to debug shell binary')
77 # option('debug-tty', type : 'string', value : '/dev/tty9',
78 #        description : 'specify the tty device for debug shell')
79 # option('debug', type : 'string',
80 #        description : 'enable extra debugging (hashmap,mmap-cache)')
81 # option('memory-accounting-default', type : 'boolean',
82 #        description : 'enable MemoryAccounting= by default')
83 #else
84 option('debug', type : 'string',
85        description : 'enable extra debugging (elogind,hashmap,mmap-cache)')
86 #endif // 0
87
88 option('utmp', type : 'boolean',
89        description : 'support for utmp/wtmp log handling')
90 #if 0 /// UNNEEDED by elogind
91 # option('hibernate', type : 'boolean',
92 #        description : 'support for hibernation')
93 # option('ldconfig', type : 'boolean',
94 #        description : 'support for dynamic linker cache creation')
95 # option('resolve', type : 'boolean',
96 #        description : 'systemd-resolved stack')
97 # option('efi', type : 'boolean',
98 #        description : 'enable systemd-boot and bootctl')
99 # option('tpm', type : 'boolean',
100 #        description : 'TPM should be used to log events and extend the registers')
101 # option('environment-d', type : 'boolean',
102 #        description : 'support for environment.d')
103 # option('binfmt', type : 'boolean',
104 #        description : 'support for custom binary formats')
105 # option('coredump', type : 'boolean',
106 #        description : 'install the coredump handler')
107 # option('logind', type : 'boolean',
108 #        description : 'install the systemd-logind stack')
109 # option('hostnamed', type : 'boolean',
110 #        description : 'install the systemd-hostnamed stack')
111 # option('localed', type : 'boolean',
112 #        description : 'install the systemd-localed stack')
113 # option('machined', type : 'boolean',
114 #        description : 'install the systemd-machined 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 cgroups version 1 mounted on /sys/fs/cgroup
192                 "hybrid"  assumes cgroups version 2 mounted on /sys/fs/cgroup/unified and
193                                   cgroups version 1 mounted on /sys/fs/cgroup.
194                 "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
195 option('cgroup-controller', type : 'string',
196        description : 'Name of the cgroup controller to use')
197 #endif // 0
198 option('system-uid-max', type : 'string',
199        description : 'maximum system UID')
200 option('system-gid-max', type : 'string',
201        description : 'maximum system GID')
202 #if 0 /// UNNEEDED by elogind
203 # option('dynamic-uid-min', type : 'string',
204 #        description : 'minimum dynamic UID',
205 #        value : '61184') # That's → 0x0000EF00 in hex
206 # option('dynamic-uid-max', type : 'string',
207 #        description : 'maximum dynamic UID',
208 #        value : '65519') # That's → 0x0000FFEF in hex
209 # option('container-uid-base-min', type : 'string',
210 #        description : 'minimum container UID base',
211 #        value : '524288') # That's → 0x00080000 in hex
212 # option('container-uid-base-max', type : 'string',
213 #        description : 'maximum container UID base',
214 #        value : '1878982656') # That's → 0x6FFF0000 in hex
215 #endif // 0
216 option('tty-gid', type : 'string',
217        description : 'the numeric GID of the "tty" group',
218        value : '5')
219 #if 0 /// UNNEEDED by elogind
220 # option('users-gid', type : 'string',
221 #        description : 'the numeric GID of the "users" group')
222 # option('adm-group', type : 'boolean',
223 #        description : 'the ACL for adm group should be added')
224 # option('wheel-group', type : 'boolean',
225 #        description : 'the ACL for wheel group should be added')
226 #endif // 0
227 option('nobody-user', type : 'string',
228        description : 'The name of the nobody user (the one with UID 65534)',
229        value : 'nobody')
230 option('nobody-group', type : 'string',
231        description : 'The name of the nobody group (the one with GID 65534)',
232        value : 'nobody')
233 #if 0 /// UNNEEDED by elogind
234 # option('dev-kvm-mode', type : 'string', value : '0666',
235 #        description : '/dev/kvm access mode')
236 # option('group-render-mode', type : 'string', value : '0666',
237 #        description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
238 #endif // 0
239 option('default-kill-user-processes', type : 'boolean',
240        description : 'the default value for KillUserProcesses= setting')
241 option('gshadow', type : 'boolean',
242        description : 'support for shadow group')
243
244 #if 0 /// UNNEEDED by elogind
245 # option('default-dnssec', type : 'combo',
246 #        description : 'default DNSSEC mode',
247 #        choices : ['yes', 'allow-downgrade', 'no'],
248 #        value : 'allow-downgrade')
249 # option('dns-servers', type : 'string',
250 #        description : 'space-separated list of default DNS servers',
251 #        value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
252 # option('ntp-servers', type : 'string',
253 #        description : 'space-separated list of default NTP servers',
254 #        value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
255 # option('support-url', type : 'string',
256 #        description : 'the support URL to show in catalog entries included in systemd',
257 #        value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
258 # option('www-target', type : 'string',
259 #        description : 'the address and dir to upload docs too',
260 #        value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
261
262 # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
263 #        description : 'SECCOMP support')
264 #endif // 0
265 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
266        description : 'SELinux support')
267 #if 0 /// UNNEEDED by elogind
268 # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
269 #        description : 'AppArmor support')
270 #endif // 0
271 option('smack', type : 'boolean',
272        description : 'SMACK support')
273 option('smack-run-label', type : 'string',
274        description : 'run systemd --system itself with a specific SMACK label')
275 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
276        description : 'PolicyKit support')
277 option('ima', type : 'boolean',
278        description : 'IMA support')
279
280 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
281        description : 'libacl support')
282 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
283        description : 'libaudit support')
284 #if 0 /// UNNEEDED by elogind
285 # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
286 #        description : 'libblkid support')
287 # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
288 #        description : 'support for loadable modules')
289 #endif // 0
290 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
291        description : 'PAM support')
292 #if 0 /// UNNEEDED by elogind
293 # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
294 #        description : 'libµhttpd support')
295 # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
296 #        description : 'libcryptsetup support')
297 # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
298 #        description : 'libcurl support')
299 # option('idn', type : 'boolean',
300 #        description : 'use IDN when printing host names')
301 # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
302 #        description : 'libidn2 support')
303 # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
304 #        description : 'libidn support')
305 # option('nss-systemd', type : 'boolean',
306 #        description : 'enable nss-systemd')
307 # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
308 #        description : 'libiptc support')
309 # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
310 #        description : 'libqrencode support')
311 # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
312 #        description : 'gcrypt support')
313 # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
314 #        description : 'gnutls support')
315 # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
316 #        description : 'elfutils support')
317 # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
318 #        description : 'zlib compression support')
319 # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
320 #        description : 'bzip2 compression support')
321 # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
322 #        description : 'xz compression support')
323 # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
324 #        description : 'lz4 compression support')
325 # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
326 #        description : 'xkbcommon keymap support')
327 #endif // 0
328 option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
329        description : 'regexp matching support using pcre2')
330 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
331        description : 'libglib support (for tests only)')
332 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
333        description : 'libdbus support (for tests only)')
334
335 #if 0 /// UNNEEDED BY elogind
336 # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
337 #        description : 'gnu-efi support for sd-boot')
338 # option('efi-cc', type : 'string', value : 'gcc',
339 #        description : 'the compiler to use for EFI modules')
340 # option('efi-ld', type : 'string', value : 'ld',
341 #        description : 'the linker to use for EFI modules')
342 # option('efi-libdir', type : 'string',
343 #        description : 'path to the EFI lib directory')
344 # option('efi-ldsdir', type : 'string',
345 #        description : 'path to the EFI lds directory')
346 # option('efi-includedir', type : 'string', value : '/usr/include/efi',
347 #        description : 'path to the EFI header directory')
348 # option('tpm-pcrindex', type : 'string', value : '8',
349 #        description : 'TPM PCR register number to use')
350 #endif // 0
351
352 option('bashcompletiondir', type : 'string',
353        description : 'directory for bash completion scripts ["no" disables]')
354 option('zshcompletiondir', type : 'string',
355        description : 'directory for zsh completion scripts ["no" disables]')
356
357 option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
358        description : 'enable extra tests with =unsafe')
359 option('slow-tests', type : 'boolean', value : 'false',
360        description : 'run the slow tests by default')
361 option('install-tests', type : 'boolean', value : 'false',
362        description : 'install test executables')
363
364 option('oss-fuzz', type : 'boolean', value : 'false',
365        description : 'build against oss-fuzz')
366 option('llvm-fuzz', type : 'boolean', value : 'false',
367        description : 'build against LLVM libFuzzer')