summaryrefslogtreecommitdiffstats
path: root/modules/meson.build
blob: 38612254afcb4e27f7a54cbc578c7ad7fb99e8fc (plain)
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
# 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