meson: move declarations of coredumpd and friends

This commit is contained in:
Yu Watanabe 2023-06-25 16:07:31 +09:00
parent c26c97af26
commit 6872ee2a2c
2 changed files with 29 additions and 33 deletions

View File

@ -2581,38 +2581,6 @@ meson.add_install_script(meson_make_symlink,
bindir / 'udevadm',
libexecdir / 'systemd-udevd')
if conf.get('ENABLE_COREDUMP') == 1
executable(
'systemd-coredump',
systemd_coredump_sources,
include_directories : includes,
link_with : [libshared,
libbasic_compress],
dependencies : [libacl,
liblz4,
libxz,
libzstd,
threads,
userspace],
install_rpath : pkglibdir,
install : true,
install_dir : libexecdir)
public_programs += executable(
'coredumpctl',
coredumpctl_sources,
include_directories : includes,
link_with : [libshared,
libbasic_compress],
dependencies : [liblz4,
libxz,
libzstd,
threads,
userspace],
install_rpath : pkglibdir,
install : true)
endif
if conf.get('ENABLE_PSTORE') == 1
executable(
'systemd-pstore',

View File

@ -5,7 +5,35 @@ systemd_coredump_sources = files(
'coredump-vacuum.c',
)
coredumpctl_sources = files('coredumpctl.c')
common_link_with = [
libshared,
libbasic_compress,
]
common_dependencies = [
liblz4,
libxz,
libzstd,
threads,
]
executables += [
libexec_template + {
'name' : 'systemd-coredump',
'conditions' : ['ENABLE_COREDUMP'],
'sources' : systemd_coredump_sources,
'link_with' : common_link_with,
'dependencies' : common_dependencies + [libacl],
},
executable_template + {
'name' : 'coredumpctl',
'public' : true,
'conditions' : ['ENABLE_COREDUMP'],
'sources' : files('coredumpctl.c'),
'link_with' : common_link_with,
'dependencies' : common_dependencies,
},
]
if conf.get('ENABLE_COREDUMP') == 1 and install_sysconfdir_samples
install_data('coredump.conf',