summaryrefslogtreecommitdiffstats
path: root/modules/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 20:37:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 20:37:50 +0000
commitc1f743ab2e4a7046d5500875a47d1f62c8624603 (patch)
tree709946d52f5f3bbaeb38be9e3f1d56d11f058237 /modules/meson.build
parentInitial commit. (diff)
downloadknot-resolver-c1f743ab2e4a7046d5500875a47d1f62c8624603.tar.xz
knot-resolver-c1f743ab2e4a7046d5500875a47d1f62c8624603.zip
Adding upstream version 5.7.1.upstream/5.7.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules/meson.build')
-rw-r--r--modules/meson.build61
1 files changed, 61 insertions, 0 deletions
diff --git a/modules/meson.build b/modules/meson.build
new file mode 100644
index 0000000..3861225
--- /dev/null
+++ b/modules/meson.build
@@ -0,0 +1,61 @@
+# modules
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+lua_mod_src = [ # add lua modules without separate meson.build
+ files('detect_time_jump/detect_time_jump.lua'),
+ files('detect_time_skew/detect_time_skew.lua'),
+ files('dns64/dns64.lua'),
+ files('etcd/etcd.lua'),
+ files('graphite/graphite.lua'),
+ files('predict/predict.lua'),
+ files('prefill/prefill.lua'),
+ files('priming/priming.lua'),
+ files('rebinding/rebinding.lua'),
+ files('renumber/renumber.lua'),
+ files('serve_stale/serve_stale.lua'),
+ files('ta_sentinel/ta_sentinel.lua'),
+ files('ta_signal_query/ta_signal_query.lua'),
+ files('watchdog/watchdog.lua'),
+ files('workarounds/workarounds.lua'),
+]
+
+# When adding tests, prefer to use module's meson.build (if it exists).
+config_tests += [
+ ['dns64', files('dns64/dns64.test.lua')],
+ ['prefill', files('prefill/prefill.test/prefill.test.lua')],
+ ['renumber', files('renumber/renumber.test.lua')],
+ ['ta_update', files('ta_update/ta_update.test.lua'), ['snowflake']],
+]
+
+integr_tests += [
+ ['rebinding', meson.current_source_dir() / 'rebinding' / 'test.integr'],
+ ['serve_stale', meson.current_source_dir() / 'serve_stale' / 'test.integr'],
+]
+
+mod_inc_dir = include_directories('..', '../contrib',
+ luajit.get_pkgconfig_variable('includedir'))
+
+# handle more complex C/LUA modules separately
+subdir('bogus_log')
+# cookies module is not currently used
+subdir('daf')
+subdir('dnstap')
+subdir('edns_keepalive')
+subdir('experimental_dot_auth')
+subdir('extended_error')
+subdir('hints')
+subdir('http')
+subdir('nsid')
+subdir('policy')
+subdir('refuse_nord')
+subdir('stats')
+subdir('ta_update')
+subdir('view')
+
+# install lua modules
+foreach mod : lua_mod_src
+ install_data(
+ mod,
+ install_dir: modules_dir,
+ )
+endforeach