tree-wide: drop gcrypt dependency from all binaries except for unit tests

With this change, gcrypt dependency is not mandatory. Hence, allow to build
systemd even when -D gcrypt=enabled but gcrypt devel package is not installed.
This commit is contained in:
Yu Watanabe
2026-06-28 00:26:56 +09:00
parent 005e94da17
commit 6461c1b017
9 changed files with 9 additions and 12 deletions
+2 -1
View File
@@ -1206,8 +1206,9 @@ libqrencode = dependency('libqrencode',
libqrencode_cflags = libqrencode.partial_dependency(includes: true, compile_args: true)
conf.set10('HAVE_QRENCODE', libqrencode.found())
feature = get_option('gcrypt')
libgcrypt = dependency('libgcrypt',
required : get_option('gcrypt'))
required : feature.disabled() ? feature : false)
conf.set10('HAVE_GCRYPT', libgcrypt.found())
if libgcrypt.found()
libgcrypt_cflags = libgcrypt.partial_dependency(includes: true, compile_args: true)