mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 07:33:55 +01:00
Switched build system to meson.
This commit is contained in:
29
meson.build
Normal file
29
meson.build
Normal file
@ -0,0 +1,29 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user