1
0
mirror of https://github.com/dovecot/core.git synced 2026-10-23 22:08:58 +03:00

meson: systemd

This commit is contained in:
Fred Morcos
2026-08-07 10:52:00 +02:00
committed by timo.sirainen
parent adbf86d581
commit 662be900ad
3 changed files with 14 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ subdir('meson' / 'pcre')
subdir('meson' / 'gssapi')
subdir('meson' / 'crypt')
subdir('meson' / 'unwind')
subdir('meson' / 'systemd')
dovecot_moduledir = get_option('moduledir')
if dovecot_moduledir == ''

View File

@@ -14,6 +14,7 @@ option('random-source', type: 'string', value : '/dev/urandom', description: 'De
option('ioloop', type: 'combo', choices: ['best', 'epoll', 'kqueue', 'poll', 'select'], value: 'best', description: 'I/O loop method to use (best for the fastest available)')
option('notify', type: 'combo', choices: ['best', 'inotify', 'kqueue', 'none'], value: 'best', description: 'File system notification method to use (best for the fastest available)')
option('libunwind', type: 'feature', value: 'auto', description: 'Build with libunwind support (better backtraces)')
option('systemd', type: 'feature', value: 'auto', description: 'Build with systemd support (sd_notify and socket activation)')
option('sodium', type: 'feature', value: 'auto', description: 'Build with libsodium support (enables argon2)')
option('pcre', type: 'feature', value: 'auto', description: 'Build with libpcre2 support (enables regular expressions)')
option('gssapi', type: 'combo', choices: ['disabled', 'enabled', 'auto', 'plugin'], value: 'disabled', description: 'Build with GSSAPI authentication support')

12
meson/systemd/meson.build Normal file
View File

@@ -0,0 +1,12 @@
# TODO: Autoconf also resolves systemdsystemunitdir from the systemd .pc file and installs
# the unit files there. That belongs with the src/master port.
ext_systemd = dependency('libsystemd', required: get_option('systemd'))
conf.set(
'HAVE_LIBSYSTEMD',
ext_systemd.found(),
description: 'Have libsystemd',
)
summary({'systemd': ext_systemd}, section: 'Features')