mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 07:33:55 +01:00
24 lines
515 B
Meson
24 lines
515 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()
|
|
|
|
conf_data.set('local_scan_version', local_scan_version)
|
|
|
|
subdir('src')
|