mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
meson: move declarations of pstore, oomd, and binfmt
This commit is contained in:
parent
6872ee2a2c
commit
2c2c3daa1a
58
meson.build
58
meson.build
@ -2372,6 +2372,7 @@ subdir('src/libsystemd-network')
|
||||
|
||||
subdir('src/analyze')
|
||||
subdir('src/backlight')
|
||||
subdir('src/binfmt')
|
||||
subdir('src/boot')
|
||||
subdir('src/boot/efi')
|
||||
subdir('src/busctl')
|
||||
@ -2581,63 +2582,6 @@ meson.add_install_script(meson_make_symlink,
|
||||
bindir / 'udevadm',
|
||||
libexecdir / 'systemd-udevd')
|
||||
|
||||
if conf.get('ENABLE_PSTORE') == 1
|
||||
executable(
|
||||
'systemd-pstore',
|
||||
systemd_pstore_sources,
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [libacl,
|
||||
liblz4,
|
||||
libxz,
|
||||
libzstd,
|
||||
threads,
|
||||
userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : libexecdir)
|
||||
endif
|
||||
|
||||
if conf.get('ENABLE_OOMD') == 1
|
||||
dbus_programs += executable('systemd-oomd',
|
||||
systemd_oomd_sources,
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [libatomic,
|
||||
userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : libexecdir)
|
||||
|
||||
public_programs += executable(
|
||||
'oomctl',
|
||||
oomctl_sources,
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true)
|
||||
endif
|
||||
|
||||
if conf.get('ENABLE_BINFMT') == 1
|
||||
public_programs += executable(
|
||||
'systemd-binfmt',
|
||||
'src/binfmt/binfmt.c',
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : libexecdir)
|
||||
|
||||
meson.add_install_script('sh', '-c',
|
||||
mkdir_p.format(binfmtdir))
|
||||
if install_sysconfdir
|
||||
meson.add_install_script('sh', '-c',
|
||||
mkdir_p.format(sysconfdir / 'binfmt.d'))
|
||||
endif
|
||||
endif
|
||||
|
||||
if conf.get('ENABLE_SYSUPDATE') == 1
|
||||
exe = executable(
|
||||
'systemd-sysupdate',
|
||||
|
19
src/binfmt/meson.build
Normal file
19
src/binfmt/meson.build
Normal file
@ -0,0 +1,19 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-binfmt',
|
||||
'public' : true,
|
||||
'conditions' : ['ENABLE_BINFMT'],
|
||||
'sources' : files('binfmt.c'),
|
||||
},
|
||||
]
|
||||
|
||||
if conf.get('ENABLE_BINFMT') == 1
|
||||
meson.add_install_script('sh', '-c',
|
||||
mkdir_p.format(binfmtdir))
|
||||
if install_sysconfdir
|
||||
meson.add_install_script('sh', '-c',
|
||||
mkdir_p.format(sysconfdir / 'binfmt.d'))
|
||||
endif
|
||||
endif
|
@ -7,7 +7,21 @@ systemd_oomd_sources = files(
|
||||
'oomd.c',
|
||||
)
|
||||
|
||||
oomctl_sources = files('oomctl.c')
|
||||
executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-oomd',
|
||||
'dbus' : true,
|
||||
'conditions' : ['ENABLE_OOMD'],
|
||||
'sources' : systemd_oomd_sources,
|
||||
'dependencies' : libatomic,
|
||||
},
|
||||
executable_template + {
|
||||
'name' : 'oomctl',
|
||||
'public' : true,
|
||||
'conditions' : ['ENABLE_OOMD'],
|
||||
'sources' : files('oomctl.c'),
|
||||
},
|
||||
]
|
||||
|
||||
if conf.get('ENABLE_OOMD') == 1
|
||||
install_data('org.freedesktop.oom1.conf',
|
||||
|
@ -1,6 +1,19 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
systemd_pstore_sources = files('pstore.c')
|
||||
executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-pstore',
|
||||
'conditions' : ['ENABLE_PSTORE'],
|
||||
'sources' : files('pstore.c'),
|
||||
'dependencies' : [
|
||||
libacl,
|
||||
liblz4,
|
||||
libxz,
|
||||
libzstd,
|
||||
threads,
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
if conf.get('ENABLE_PSTORE') == 1 and install_sysconfdir_samples
|
||||
install_data('pstore.conf',
|
||||
|
Loading…
Reference in New Issue
Block a user