mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
meson: move declarations of coredumpd and friends
This commit is contained in:
parent
c26c97af26
commit
6872ee2a2c
32
meson.build
32
meson.build
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user