summaryrefslogtreecommitdiffstats
path: root/modules/http/meson.build
blob: a36e9ebd7ea8fc1607c5fce6d2a62de766a8e631 (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
# LUA module: http
# SPDX-License-Identifier: GPL-3.0-or-later

lua_http_config = configuration_data()
lua_http_config.set('modules_dir', modules_dir)

lua_http = configure_file(
  input: 'http.lua.in',
  output: 'http.lua',
  configuration: lua_http_config,
)

lua_mod_src += [
  lua_http,
  files('http_doh.lua'),
  files('http_trace.lua'),
  files('http_tls_cert.lua'),
  files('prometheus.lua'),
]

config_tests += [
  ['http', files('http.test.lua')],
  ['http.doh', files('http_doh.test.lua')],
  ['http.tls', files('test_tls/tls.test.lua')],
]

# install static files
install_subdir(
  'static',
  strip_directory: true,
  exclude_files: [
    'bootstrap.min.css.spdx',
    'bootstrap.min.js.spdx',
    'bootstrap-theme.min.css.spdx',
    'datamaps.world.min.spdx',
    'dygraph.min.js.spdx',
    'd3.spdx',
    'epoch.spdx',
    'glyphicons-halflings-regular.spdx',
    'jquery.spdx',
    'selectize.spdx',
    'topojson.spdx',
  ],
  install_dir: modules_dir / 'http',
)

# auxiliary debug library for HTTP module - doesn't compile on Cygwin
if openssl.found() and host_machine.system() != 'cygwin'
  debug_opensslkeylog_mod = shared_module(
    'debug_opensslkeylog',
    ['debug_opensslkeylog.c'],
    # visibility=default == public is required for LD_PRELOAD trick
    c_args: '-fvisibility=default',
    name_prefix: '',
    install: true,
    install_dir: lib_dir,
    dependencies: [
      openssl,
    ],
  )
endif