mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 08:33:56 +01:00
30 lines
669 B
Meson
30 lines
669 B
Meson
project('libexim-encrypt-dlfunc', 'c',
|
|
default_options: ['b_lundef=false', 'b_pie=true'])
|
|
|
|
compiler = meson.get_compiler('c')
|
|
conf_data = configuration_data()
|
|
|
|
sodium_deps = dependency('libsodium')
|
|
|
|
exim4_code = '''
|
|
#include <stdio.h>
|
|
#include <exim4/local_scan.h>
|
|
int main() {
|
|
printf("%d\n", LOCAL_SCAN_ABI_VERSION_MAJOR);
|
|
return 0;
|
|
}
|
|
'''
|
|
|
|
result = compiler.run(exim4_code)
|
|
local_scan_version = result.stdout().strip().to_int()
|
|
|
|
if local_scan_version < 3
|
|
conf_data.set('local_scan_version', 3)
|
|
elif local_scan_version >= 3
|
|
conf_data.set('local_scan_version', 3)
|
|
else
|
|
error('exim local_scan version could not be determined')
|
|
endif
|
|
|
|
subdir('src')
|