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