Files
exim-encrypt-dlfunc/meson.build
2021-08-21 23:53:55 +02:00

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