summaryrefslogtreecommitdiff
path: root/meson.build
blob: c95627318847eb3b7d47050f8699386876a766a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
project(
  'sqmail',
  'c',
  'cpp',
  meson_version : '>=1.3',
  version : '4.2.30',
  default_options : ['c_std=gnu99', 'cpp_std=c++11'],
)

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'],
    default_options : ['lib-only=true'],
  )
endif

if get_option('build-pam')
  crypt_dep = dependency('libcrypt')
endif

if get_option('build-clients')
  idn2_dep = dependency('libidn2', required : get_option('idn2'))
endif

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')
endif

subdir('src')
subdir('man')
subdir('tests')