meson: move libjournal_core definition to src/journal/meson.build

This commit is contained in:
Yu Watanabe 2021-01-04 21:16:15 +09:00
parent 3976f372ae
commit 529642936b
2 changed files with 13 additions and 14 deletions

View File

@ -1650,13 +1650,6 @@ subdir('src/shared')
subdir('src/udev')
subdir('src/libudev')
libjournal_core = static_library(
'journal-core',
libjournal_core_sources,
journald_gperf_c,
include_directories : includes,
install : false)
libsystemd_sym_path = '@0@/@1@'.format(project_source_root, libsystemd_sym)
libsystemd = shared_library(
'systemd',

View File

@ -1,6 +1,6 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
libjournal_core_sources = files('''
sources = files('''
journald-audit.c
journald-audit.h
journald-console.c
@ -23,17 +23,23 @@ libjournal_core_sources = files('''
journald-wall.h
'''.split())
systemd_journald_sources = files('''
journald.c
journald-server.h
'''.split())
journald_gperf_c = custom_target(
sources += custom_target(
'journald-gperf.c',
input : 'journald-gperf.gperf',
output : 'journald-gperf.c',
command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
libjournal_core = static_library(
'journal-core',
sources,
include_directories : includes,
install : false)
systemd_journald_sources = files('''
journald.c
journald-server.h
'''.split())
systemd_cat_sources = files('cat.c')
journalctl_sources = files('''