1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
# SPDX-License-Identifier: GPL-3.0-or-later
# daemon
kresd_src = files([
'bindings/cache.c',
'bindings/event.c',
'bindings/impl.c',
'bindings/modules.c',
'bindings/net.c',
'bindings/worker.c',
'defer.c',
'engine.c',
'ffimodule.c',
'io.c',
'main.c',
'network.c',
'proxyv2.c',
'ratelimiting.c',
'session2.c',
'tls.c',
'tls_ephemeral_credentials.c',
'tls_session_ticket-srv.c',
'udp_queue.c',
'worker.c',
'zimport.c',
])
if nghttp2.found()
kresd_src += files(['http.c'])
endif
c_src_lint += kresd_src
unit_tests += [
['ratelimiting', files('ratelimiting.test/tests.c') + libkres_src ],
# parallel tests timeouts under valgrind; they checks mainly for race conditions, which is not needed there
['ratelimiting-parallel', files('ratelimiting.test/tests-parallel.c') + libkres_src, ['skip_valgrind']]
]
config_tests += [
['cache.clear', files('cache.test/clear.test.lua')],
['zimport', files('zimport.test/zimport.test.lua')],
]
integr_tests += [
['cache_insert_ns', meson.current_source_dir() / 'cache.test' / 'insert_ns.test.integr'],
['proxyv2', meson.current_source_dir() / 'proxyv2.test']
]
kresd_deps = [
contrib_dep,
kresconfig_dep,
libkres_dep,
libknot,
libzscanner,
libdnssec,
libuv,
luajit,
gnutls,
libsystemd,
capng,
nghttp2,
malloc,
libm
]
subdir('lua')
kresd = executable(
'kresd',
kresd_src,
dependencies: kresd_deps,
export_dynamic: true,
install: true,
install_dir: get_option('sbindir'),
install_rpath: rpath,
)
|