summaryrefslogtreecommitdiffstats
path: root/modules/http/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:41:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:41:58 +0000
commit1852910ef0fd7393da62b88aee66ee092208748e (patch)
treead3b659dbbe622b58a5bda4fe0b5e1d80eee9277 /modules/http/meson.build
parentInitial commit. (diff)
downloadknot-resolver-1852910ef0fd7393da62b88aee66ee092208748e.tar.xz
knot-resolver-1852910ef0fd7393da62b88aee66ee092208748e.zip
Adding upstream version 5.3.1.upstream/5.3.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules/http/meson.build')
-rw-r--r--modules/http/meson.build61
1 files changed, 61 insertions, 0 deletions
diff --git a/modules/http/meson.build b/modules/http/meson.build
new file mode 100644
index 0000000..6705143
--- /dev/null
+++ b/modules/http/meson.build
@@ -0,0 +1,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
+if openssl.found()
+ 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