1 # SPDX-License-Identifier: LGPL-2.1-or-later
10 'journald-rate-limit.c',
18 sources += custom_target(
20 input : 'journald-gperf.gperf',
21 output : 'journald-gperf.c',
22 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
24 libjournal_core = static_library(
27 include_directories : includes,
28 dependencies: [threads,
30 build_by_default : false)
32 journalctl_sources = files(
34 'journalctl-catalog.c',
35 'journalctl-filter.c',
39 'journalctl-varlink.c',
42 if conf.get('HAVE_GCRYPT') == 1
43 journalctl_sources += files('journalctl-authenticate.c')
46 if get_option('link-journalctl-shared')
47 journalctl_link_with = [libshared]
49 journalctl_link_with = [
55 journal_test_template = test_template + {
62 journal_fuzz_template = fuzz_template + {
67 'dependencies' : libselinux,
72 'name' : 'systemd-journald',
73 'sources' : files('journald.c'),
87 'name' : 'systemd-bsod',
89 'conditions' : ['HAVE_QRENCODE'],
90 'sources' : files('bsod.c'),
91 'link_with' : libshared,
92 'dependencies' : libqrencode,
94 executable_template + {
95 'name' : 'systemd-cat',
97 'sources' : files('cat.c'),
102 'dependencies' : threads,
104 executable_template + {
105 'name' : 'journalctl',
107 'sources' : journalctl_sources,
108 'link_with' : journalctl_link_with,
117 journal_test_template + {
118 'sources' : files('test-journald-config.c'),
127 'test-journald-rate-limit.c',
128 'journald-rate-limit.c',
131 journal_test_template + {
132 'sources' : files('test-journald-syslog.c'),
140 journal_test_template + {
141 'sources' : files('test-journald-tables.c'),
146 journal_fuzz_template + {
148 'fuzz-journald-audit.c',
152 journal_fuzz_template + {
154 'fuzz-journald-kmsg.c',
158 journal_fuzz_template + {
160 'fuzz-journald-native.c',
164 journal_fuzz_template + {
166 'fuzz-journald-native-fd.c',
170 journal_fuzz_template + {
172 'fuzz-journald-stream.c',
176 journal_fuzz_template + {
178 'fuzz-journald-syslog.c',
184 if install_sysconfdir_samples
185 install_data('journald.conf',
186 install_dir : pkgconfigfiledir)
189 if get_option('create-log-dirs')
190 install_emptydir('/var/log/journal',
191 install_mode : 'rwxr-xr-x')
192 if get_option('adm-group')
193 meson.add_install_script(
195 'setfacl -nm g:adm:rx,d:g:adm:rx $DESTDIR/var/log/journal || :')
197 if get_option('wheel-group')
198 meson.add_install_script(
200 'setfacl -nm g:wheel:rx,d:g:wheel:rx $DESTDIR/var/log/journal || :')