summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-08 18:16:27 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-08 18:16:27 +0200
commitc9f72eaa698201cfb2aad0339350c5e13461d0d3 (patch)
tree7fd53bb4e8dd7ccb0a83159b8d2b0556127e89da
parent1001ed6c2ae98a5b9ed707b7710eb3ae87a0a7ce (diff)
make more dependencies conditional
-rw-r--r--meson.build20
1 files changed, 15 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 3354e80..2286717 100644
--- a/meson.build
+++ b/meson.build
@@ -7,18 +7,28 @@ qlibs_dep = dependency('qlibs', fallback : ['fehQlibs', 'qlibs_dep'])
dnsresolv_dep = dependency('dnsresolv', fallback : ['fehQlibs', 'qlibs_dnsresolv_dep'])
if get_option('build-clients') or get_option('build-pam')
- ucspissl_dep = dependency('ucspissl', fallback : ['ucspi-ssl', 'ucspissl_dep'],
+ ucspissl_dep = dependency('ucspissl',
+ fallback : ['ucspi-ssl', 'ucspissl_dep'],
default_options : ['lib-only=true'])
else
ucspissl_dep = disabler()
endif
-crypt_dep = dependency('libcrypt')
+crypt_dep = get_option('build-pam') ? dependency('libcrypt') : disabler()
-idn2_dep = dependency('libidn2', required : get_option('idn2'))
+if get_option('build-clients')
+ idn2_dep = dependency('libidn2', required : get_option('idn2'))
+else
+ idn2_dep = disabler()
+endif
-ssl_dep = dependency('libssl', version : '>=1.1')
-crypto_dep = dependency('libcrypto')
+if get_option('build-clients') or get_option('build-dkim') or get_option('build-pam')
+ ssl_dep = dependency('libssl', version : '>=1.1')
+ crypto_dep = dependency('libcrypto')
+else
+ ssl_dep = disabler()
+ crypto_dep = disabler()
+endif
subdir('src')
subdir('man')