From c9f72eaa698201cfb2aad0339350c5e13461d0d3 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 18:16:27 +0200 Subject: make more dependencies conditional --- meson.build | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'meson.build') 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') -- cgit v1.2.3