summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-06-25 09:06:20 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-08-01 08:54:45 +0200
commitc26c97af26d92a06f6e21ac70f45a1dddd8c1078 (patch)
tree754dbd88bf853980982941809721b343672d2101 /src
parentmeson: move declarations of machined and friends (diff)
downloadsystemd-c26c97af26d92a06f6e21ac70f45a1dddd8c1078.tar.xz
systemd-c26c97af26d92a06f6e21ac70f45a1dddd8c1078.zip
meson: move declarations of journal-remote and friends
Diffstat (limited to 'src')
-rw-r--r--src/journal-remote/meson.build46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/journal-remote/meson.build b/src/journal-remote/meson.build
index 9fe1b8049b..89419f1de1 100644
--- a/src/journal-remote/meson.build
+++ b/src/journal-remote/meson.build
@@ -37,6 +37,52 @@ systemd_journal_gatewayd_sources = files(
'microhttpd-util.c',
)
+common_deps = [
+ libgnutls,
+ liblz4,
+ libxz,
+ libzstd,
+ threads,
+]
+
+executables += [
+ libexec_template + {
+ 'name' : 'systemd-journal-upload',
+ 'public' : true,
+ 'conditions' : [
+ 'ENABLE_REMOTE',
+ 'HAVE_LIBCURL',
+ ],
+ 'sources' : systemd_journal_upload_sources,
+ 'dependencies' : common_deps + [libcurl],
+ },
+ libexec_template + {
+ 'name' : 'systemd-journal-remote',
+ 'public' : true,
+ 'conditions' : [
+ 'ENABLE_REMOTE',
+ 'HAVE_MICROHTTPD',
+ ],
+ 'sources' : systemd_journal_remote_sources,
+ 'include_directories' : journal_includes,
+ 'link_with' : [
+ libshared,
+ libsystemd_journal_remote,
+ ],
+ 'dependencies' : common_deps + [libmicrohttpd],
+ },
+ libexec_template + {
+ 'name' : 'systemd-journal-gatewayd',
+ 'public' : true,
+ 'conditions' : [
+ 'ENABLE_REMOTE',
+ 'HAVE_MICROHTTPD',
+ ],
+ 'sources' : systemd_journal_gatewayd_sources,
+ 'dependencies' : common_deps + [libmicrohttpd],
+ },
+]
+
in_files = [
['journal-upload.conf',
conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_LIBCURL') == 1 and install_sysconfdir_samples],