chiark / gitweb /
Create elogind-inhibit.xml
[elogind.git] / meson_options.txt
index 46bc54fafa8417d6c1dbd7956f60d63166d416d0..05f80ba1a7320c2eba9ee099ea97336ef23fa743 100644 (file)
@@ -1,23 +1,10 @@
 # -*- mode: meson -*-
 # SPDX-License-Identifier: LGPL-2.1+
-#
-# Copyright 2017 Zbigniew JÄ™drzejewski-Szmek
-#
-# elogind is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as published by
-# the Free Software Foundation; either version 2.1 of the License, or
-# (at your option) any later version.
-#
-# elogind is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with elogind; If not, see <http://www.gnu.org/licenses/>.
 
-option('split-usr', type : 'boolean', value : false,
-       description : '''assume that /bin, /sbin aren't symlinks into /usr''')
+option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
+       description : '''/bin, /sbin aren't symlinks into /usr''')
+option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
+       description : '''sbin is not a symlink to bin''')
 option('rootlibdir', type : 'string',
        description : '''[/usr]/lib/x86_64-linux-gnu or such''')
 option('rootprefix', type : 'string',
@@ -25,6 +12,16 @@ option('rootprefix', type : 'string',
 #if 0 /// UNNEEDED by elogind
 # option('link-udev-shared', type : 'boolean',
 #        description : 'link systemd-udev and its helpers to libsystemd-shared.so')
+# option('link-systemctl-shared', type: 'boolean',
+#        description : 'link systemctl against libsystemd-shared.so')
+#endif // 0
+option('static-libelogind', type : 'combo',
+       choices : ['false', 'true', 'pic', 'no-pic'],
+       description : '''install a static library for libelogind''')
+#if 0 /// UNNEEDED by elogind
+# option('static-libudev', type : 'combo',
+#        choices : ['false', 'true', 'pic', 'no-pic'],
+#        description : '''install a static library for libudev''')
 # 
 # option('sysvinit-path', type : 'string', value : '/etc/init.d',
 #        description : 'the directory where the SysV init scripts are located')
@@ -58,8 +55,9 @@ option('udevbindir', type : 'string',
 option('docdir', type : 'string', description : 'path where to install the documentation.')
 option('htmldir', type : 'string', description : 'path where to install the HTML documentation.')
 
-# We have no systemd-shutdown binary, so we need 'halt' and 'reboot'
+# We have no systemd-shutdown binary, so we need 'halt', 'reboot' and 'poweroff'
 option('halt-path', type : 'string', description : 'path to halt')
+option('poweroff-path', type : 'string', description : 'path to poweroff')
 option('reboot-path', type : 'string', description : 'path to reboot')
 #endif // 0
 option('kexec-path', type : 'string', description : 'path to kexec')
@@ -74,12 +72,17 @@ option('kexec-path', type : 'string', description : 'path to kexec')
 #        description : 'path to debug shell binary')
 # option('debug-tty', type : 'string', value : '/dev/tty9',
 #        description : 'specify the tty device for debug shell')
-# option('debug', type : 'string',
-#        description : 'enable extra debugging (hashmap,mmap-cache)')
-#else
-option('debug', type : 'string',
-       description : 'enable extra debugging (elogind,hashmap,mmap-cache)')
+# option('debug-extra', type : 'array', choices : ['hashmap', 'mmap-cache'], value : [],
+#        description : 'enable extra debugging')
+# option('memory-accounting-default', type : 'boolean',
+#        description : 'enable MemoryAccounting= by default')
 #endif // 0
+option('valgrind', type : 'boolean', value : false,
+       description : 'do extra operations to avoid valgrind warnings')
+#if 1 /// Add an extra debugging option for elogind
+option('debug-extra', type : 'array', choices : ['elogind', 'hashmap', 'mmap-cache'], value : [],
+       description : 'enable extra debugging')
+#endif // 1
 
 option('utmp', type : 'boolean',
        description : 'support for utmp/wtmp log handling')
@@ -108,6 +111,8 @@ option('utmp', type : 'boolean',
 #        description : 'install the systemd-localed stack')
 # option('machined', type : 'boolean',
 #        description : 'install the systemd-machined stack')
+# option('portabled', type : 'boolean',
+#        description : 'install the systemd-portabled stack')
 # option('networkd', type : 'boolean',
 #        description : 'install the systemd-networkd stack')
 # option('timedated', type : 'boolean',
@@ -167,6 +172,8 @@ option('pamlibdir', type : 'string',
        description : 'directory for PAM modules')
 option('pamconfdir', type : 'string',
        description : 'directory for PAM configuration ["no" disables]')
+option('docdir', type : 'string',
+       description : 'documentation directory')
 
 option('fallback-hostname', type : 'string', value : 'localhost',
        description : 'the hostname used if none configured')
@@ -182,9 +189,10 @@ option('default-hierarchy', type : 'combo',
 #        description : 'time epoch for time clients')
 #else
        description : '''Wanted cgroup hierarchy if elogind has to be a cgroup controller:
-                "legacy"  assumes cgroups version 1 mounted on /sys/fs/cgroup
-                "hybrid"  assumes cgroups version 2 mounted on /sys/fs/cgroup/unified and
-                                  cgroups version 1 mounted on /sys/fs/cgroup.
+                "legacy"  assumes tmpfs mounted on /sys/fs/cgroup and cgroup on its
+                                  subfolders.
+                "hybrid"  assumes cgroups version 2 mounted on /sys/fs/cgroup/unified.
+                                  /sys/fs/cgroup is legacy, then.
                 "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
 option('cgroup-controller', type : 'string',
        description : 'Name of the cgroup controller to use')
@@ -240,6 +248,12 @@ option('gshadow', type : 'boolean',
 #        description : 'default DNSSEC mode',
 #        choices : ['yes', 'allow-downgrade', 'no'],
 #        value : 'allow-downgrade')
+# option('default-dns-over-tls', type : 'combo',
+#        description : 'default DNS-over-TLS mode',
+#        choices : ['opportunistic', 'no'],
+#        value : 'no')
+# option('dns-over-tls', type : 'combo', choices : ['auto', 'true', 'false'],
+#        description : 'DNS-over-TLS support')
 # option('dns-servers', type : 'string',
 #        description : 'space-separated list of default DNS servers',
 #        value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
@@ -319,6 +333,8 @@ option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
 # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
 #        description : 'xkbcommon keymap support')
 #endif // 0
+option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
+       description : 'regexp matching support using pcre2')
 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
        description : 'libglib support (for tests only)')
 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
@@ -353,5 +369,17 @@ option('slow-tests', type : 'boolean', value : 'false',
 option('install-tests', type : 'boolean', value : 'false',
        description : 'install test executables')
 
-option('oss-fuzz', type : 'boolean', value : 'false',
-       description : 'build against oss-fuzz')
+option('ok-color', type: 'combo',
+       choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
+                  'white', 'highlight-black', 'highlight-red', 'highlight-green',
+                  'highlight-yellow', 'highlight-blue', 'highlight-magenta',
+                  'highlight-cyan', 'highlight-white'],
+       value : 'green',
+       description: 'color of the "OK" status message')
+
+#if 0 /// fuzz regression tests are not supported by elogind
+# option('oss-fuzz', type : 'boolean', value : 'false',
+#        description : 'build against oss-fuzz')
+# option('llvm-fuzz', type : 'boolean', value : 'false',
+#        description : 'build against LLVM libFuzzer')
+#endif // 0