mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 06:53:56 +01:00
26 lines
574 B
Meson
26 lines
574 B
Meson
project('libexim-encrypt-dlfunc', 'c',
|
|
default_options: ['b_lundef=false', 'b_pie=true'],
|
|
license: 'Apache-2.0',
|
|
version: '0.2.0')
|
|
|
|
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')
|