chiark / gitweb /
Prep v236: Apply missing upstream updates to the build system
[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', description : 'path to telinit')
34 # option('rc-local', type : 'string',
35 #        value : '/etc/rc.local')
36 # option('halt-local', type : 'string',
37 #        value : '/usr/sbin/halt.local')
38
39 # option('quotaon-path', type : 'string', description : 'path to quotaon')
40 # option('quotacheck-path', type : 'string', description : 'path to quotacheck')
41 # option('kill-path', type : 'string', description : 'path to kill')
42 # option('kmod-path', type : 'string', description : 'path to kmod')
43 #else
44 # elogind must have a configurable rootlibexecdir
45 option('rootlibexecdir', type : 'string',
46        description : '''override the root libexec directory path''')
47
48 # And because elogind depends on external udev, it must be
49 # configurable as well.
50 option('udevrulesdir', type : 'string',
51        description : '''directory for udev rules files''')
52
53 option('udevbindir', type : 'string',
54        description : '''directory for udev binary files''')
55
56 # We have no systemd-shutdown binary, so we need 'halt' and 'reboot'
57 option('halt-path', type : 'string', description : 'path to halt')
58 option('reboot-path', type : 'string', description : 'path to reboot')
59 #endif // 0
60 option('kexec-path', type : 'string', description : 'path to kexec')
61 #if 0 /// UNNEEDED by elogind
62 # option('sulogin-path', type : 'string', description : 'path to sulogin')
63 # option('mount-path', type : 'string', description : 'path to mount')
64 # option('umount-path', type : 'string', description : 'path to umount')
65 # option('loadkeys-path', type : 'string', description : 'path to loadkeys')
66 # option('setfont-path', type : 'string', description : 'path to setfont')
67
68 # option('debug-shell', type : 'string', value : '/bin/sh',
69 #        description : 'path to debug shell binary')
70 # option('debug-tty', type : 'string', value : '/dev/tty9',
71 #        description : 'specify the tty device for debug shell')
72 # option('debug', type : 'string',
73 #        description : 'enable extra debugging (hashmap,mmap-cache)')
74 #else
75 option('debug', type : 'string',
76        description : 'enable extra debugging (elogind,hashmap,mmap-cache)')
77 #endif // 0
78
79 option('utmp', type : 'boolean',
80        description : 'support for utmp/wtmp log handling')
81 #if 0 /// UNNEEDED by elogind
82 # option('hibernate', type : 'boolean',
83 #        description : 'support for hibernation')
84 # option('ldconfig', type : 'boolean',
85 #        description : 'support for dynamic linker cache creation')
86 # option('resolve', type : 'boolean',
87 #        description : 'systemd-resolved stack')
88 # option('efi', type : 'boolean',
89 #        description : 'enable systemd-boot and bootctl')
90 # option('tpm', type : 'boolean',
91 #        description : 'TPM should be used to log events and extend the registers')
92 # option('environment-d', type : 'boolean',
93 #        description : 'support for environment.d')
94 # option('binfmt', type : 'boolean',
95 #        description : 'support for custom binary formats')
96 # option('coredump', type : 'boolean',
97 #        description : 'install the coredump handler')
98 # option('logind', type : 'boolean',
99 #        description : 'install the systemd-logind stack')
100 # option('hostnamed', type : 'boolean',
101 #        description : 'install the systemd-hostnamed stack')
102 # option('localed', type : 'boolean',
103 #        description : 'install the systemd-localed stack')
104 # option('machined', type : 'boolean',
105 #        description : 'install the systemd-machined stack')
106 # option('networkd', type : 'boolean',
107 #        description : 'install the systemd-networkd stack')
108 # option('timedated', type : 'boolean',
109 #        description : 'install the systemd-timedated daemon')
110 # option('timesyncd', type : 'boolean',
111 #        description : 'install the systemd-timesyncd daemon')
112 # option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
113 #        description : 'support for "journal over the network"')
114 # option('myhostname', type : 'boolean',
115 #        description : 'nss-myhostname support')
116 # option('firstboot', type : 'boolean',
117 #        description : 'support for firstboot mechanism')
118 # option('randomseed', type : 'boolean',
119 #        description : 'support for restoring random seed')
120 # option('backlight', type : 'boolean',
121 #        description : 'support for restoring backlight state')
122 # option('vconsole', type : 'boolean',
123 #        description : 'support for vconsole configuration')
124 # option('quotacheck', type : 'boolean',
125 #        description : 'support for the quotacheck tools')
126 # option('sysusers', type : 'boolean',
127 #        description : 'support for the sysusers configuration')
128 # option('tmpfiles', type : 'boolean',
129 #        description : 'support for tmpfiles.d')
130 # option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
131 #        description : 'install the systemd-importd daemon')
132 # option('hwdb', type : 'boolean',
133 #        description : 'support for the hardware database')
134 # option('rfkill', type : 'boolean',
135 #        description : 'support for the rfkill tools')
136 #endif // 0
137 option('man', type : 'combo', choices : ['auto', 'true', 'false'],
138        description : 'build and install man pages')
139 option('html', type : 'combo', choices : ['auto', 'true', 'false'],
140        value : 'false',
141        description : 'build and install html pages')
142
143 #if 0 /// UNNEEDED by elogind
144 # option('certificate-root', type : 'string', value : '/etc/ssl',
145 #        description : 'the prefix for TLS certificates')
146 #endif // 0
147 option('dbuspolicydir', type : 'string',
148        description : 'D-Bus policy directory')
149 option('dbussessionservicedir', type : 'string',
150        description : 'D-Bus session service directory')
151 option('dbussystemservicedir', type : 'string',
152        description : 'D-Bus system service directory')
153 option('pkgconfigdatadir', type : 'string', value : 'share/pkgconfig',
154        description : 'directory for ')
155 option('pkgconfiglibdir', type : 'string', value : '',
156        description : 'directory for ')
157 #if 0 /// UNNEEDED by elogind
158 # option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
159 #        description : 'directory for rpm macros ["no" disables]')
160 #endif // 0
161 option('pamlibdir', type : 'string',
162        description : 'directory for PAM modules')
163 option('pamconfdir', type : 'string',
164        description : 'directory for PAM configuration ["no" disables]')
165
166 option('fallback-hostname', type : 'string', value : 'localhost',
167        description : 'the hostname used if none configured')
168 #if 0 /// UNNEEDED by elogind
169 # option('compat-gateway-hostname', type : 'boolean', value : 'false',
170 #        description : 'allow "gateway" as the symbolic name for default gateway')
171 #endif // 0
172 option('default-hierarchy', type : 'combo',
173        choices : ['legacy', 'hybrid', 'unified'], value : 'hybrid',
174 #if 0 /// elogind interprets this a bit different
175 #        description : 'default cgroup hierarchy')
176 # option('time-epoch', type : 'string',
177 #        description : 'time epoch for time clients')
178 #else
179        description : 'Wanted cgroup hierarchy if elogind has to be a cgroup controller:
180                 "legacy"  assumes cgroups version 1 mounted on /sys/fs/cgroup
181                 "hybrid"  assumes cgroups version 2 mounted on /sys/fs/cgroup/unified and
182                                   cgroups version 1 mounted on /sys/fs/cgroup.
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 # option('nobody-user', type : 'string',
216 #        description : 'The name of the nobody user (the one with UID 65534)',
217 #        value : 'nobody')
218 # option('nobody-group', type : 'string',
219 #        description : 'The name of the nobody group (the one with GID 65534)',
220 #        value : 'nobody')
221 # option('dev-kvm-mode', type : 'string', value : '0666',
222 #        description : '/dev/kvm access mode')
223 # option('group-render-mode', type : 'string', value : '0666',
224 #        description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
225 #endif // 0
226 option('default-kill-user-processes', type : 'boolean',
227        description : 'the default value for KillUserProcesses= setting')
228 option('gshadow', type : 'boolean',
229        description : 'support for shadow group')
230
231 #if 0 /// UNNEEDED by elogind
232 # option('default-dnssec', type : 'combo',
233 #        description : 'default DNSSEC mode',
234 #        choices : ['yes', 'allow-downgrade', 'no'],
235 #        value : 'allow-downgrade')
236 # option('dns-servers', type : 'string',
237 #        description : 'space-separated list of default DNS servers',
238 #        value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
239 # option('ntp-servers', type : 'string',
240 #        description : 'space-separated list of default NTP servers',
241 #        value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
242 # option('support-url', type : 'string',
243 #        description : 'the support URL to show in catalog entries included in systemd',
244 #        value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
245 # option('www-target', type : 'string',
246 #        description : 'the address and dir to upload docs too',
247 #        value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
248
249 # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
250 #        description : 'SECCOMP support')
251 #endif // 0
252 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
253        description : 'SELinux support')
254 #if 0 /// UNNEEDED by elogind
255 # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
256 #        description : 'AppArmor support')
257 #endif // 0
258 option('smack', type : 'boolean',
259        description : 'SMACK support')
260 option('smack-run-label', type : 'string',
261        description : 'run systemd --system itself with a specific SMACK label')
262 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
263        description : 'PolicyKit support')
264 option('ima', type : 'boolean',
265        description : 'IMA support')
266
267 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
268        description : 'libacl support')
269 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
270        description : 'libaudit support')
271 #if 0 /// UNNEEDED by elogind
272 # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
273 #        description : 'libblkid support')
274 # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
275 #        description : 'support for loadable modules')
276 #endif // 0
277 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
278        description : 'PAM support')
279 #if 0 /// UNNEEDED by elogind
280 # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
281 #        description : 'libµhttpd support')
282 # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
283 #        description : 'libcryptsetup support')
284 # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
285 #        description : 'libcurl support')
286 # option('idn', type : 'boolean',
287 #        description : 'use IDN when printing host names')
288 # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
289 #        description : 'libidn2 support')
290 # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
291 #        description : 'libidn support')
292 # option('nss-systemd', type : 'boolean',
293 #        description : 'enable nss-systemd')
294 # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
295 #        description : 'libiptc support')
296 # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
297 #        description : 'libqrencode support')
298 # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
299 #        description : 'gcrypt support')
300 # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
301 #        description : 'gnutls support')
302 # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
303 #        description : 'elfutils support')
304 # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
305 #        description : 'zlib compression support')
306 # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
307 #        description : 'bzip2 compression support')
308 # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
309 #        description : 'xz compression support')
310 # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
311 #        description : 'lz4 compression support')
312 # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
313 #        description : 'xkbcommon keymap support')
314 #endif // 0
315 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
316        description : 'libglib support (for tests only)')
317 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
318        description : 'libdbus support (for tests only)')
319
320 #if 0 /// UNNEEDED BY elogind
321 # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
322 #        description : 'gnu-efi support for sd-boot')
323 # option('efi-cc', type : 'string', value : 'gcc',
324 #        description : 'the compiler to use for EFI modules')
325 # option('efi-ld', type : 'string', value : 'ld',
326 #        description : 'the linker to use for EFI modules')
327 # option('efi-libdir', type : 'string',
328 #        description : 'path to the EFI lib directory')
329 # option('efi-ldsdir', type : 'string',
330 #        description : 'path to the EFI lds directory')
331 # option('efi-includedir', type : 'string', value : '/usr/include/efi',
332 #        description : 'path to the EFI header directory')
333 # option('tpm-pcrindex', type : 'string', value : '8',
334 #        description : 'TPM PCR register number to use')
335 #endif // 0
336
337 option('bashcompletiondir', type : 'string',
338        description : 'directory for bash completion scripts ["no" disables]')
339 option('zshcompletiondir', type : 'string',
340        description : 'directory for zsh completion scripts ["no" disables]')
341
342 option('tests', type : 'combo', choices : ['true', 'unsafe'],
343        description : 'enable extra tests with =unsafe')
344 option('slow-tests', type : 'boolean', value : 'false',
345        description : 'run the slow tests by default')
346 option('install-tests', type : 'boolean', value : 'false',
347        description : 'install test executables')