meson: build standalone version of systemd-tmpfiles
Use -Dstandalone-binaries=yes to enable building and installing this standalone version of the binary without a dependency on the systemd-shared solib. Also move the list of sources for systemd-tmpfiles to its own meson.build file.
This commit is contained in:
parent
8ef8f3d5a7
commit
db64ba81c6
20
meson.build
20
meson.build
|
@ -1637,6 +1637,7 @@ subdir('src/nspawn')
|
||||||
subdir('src/resolve')
|
subdir('src/resolve')
|
||||||
subdir('src/timedate')
|
subdir('src/timedate')
|
||||||
subdir('src/timesync')
|
subdir('src/timesync')
|
||||||
|
subdir('src/tmpfiles')
|
||||||
subdir('src/vconsole')
|
subdir('src/vconsole')
|
||||||
subdir('src/boot/efi')
|
subdir('src/boot/efi')
|
||||||
|
|
||||||
|
@ -2952,9 +2953,7 @@ endif
|
||||||
if conf.get('ENABLE_TMPFILES') == 1
|
if conf.get('ENABLE_TMPFILES') == 1
|
||||||
exe = executable(
|
exe = executable(
|
||||||
'systemd-tmpfiles',
|
'systemd-tmpfiles',
|
||||||
'src/tmpfiles/tmpfiles.c',
|
systemd_tmpfiles_sources,
|
||||||
'src/tmpfiles/offline-passwd.c',
|
|
||||||
'src/tmpfiles/offline-passwd.h',
|
|
||||||
include_directories : includes,
|
include_directories : includes,
|
||||||
link_with : [libshared],
|
link_with : [libshared],
|
||||||
dependencies : [libacl],
|
dependencies : [libacl],
|
||||||
|
@ -2969,6 +2968,21 @@ if conf.get('ENABLE_TMPFILES') == 1
|
||||||
# https://github.com/mesonbuild/meson/issues/2681
|
# https://github.com/mesonbuild/meson/issues/2681
|
||||||
args : exe.full_path())
|
args : exe.full_path())
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if have_standalone_binaries
|
||||||
|
public_programs += executable(
|
||||||
|
'systemd-tmpfiles.standalone',
|
||||||
|
systemd_tmpfiles_sources,
|
||||||
|
include_directories : includes,
|
||||||
|
link_with : [libshared_static,
|
||||||
|
libbasic,
|
||||||
|
libbasic_gcrypt,
|
||||||
|
libsystemd_static,
|
||||||
|
libjournal_client],
|
||||||
|
dependencies : [libacl],
|
||||||
|
install : true,
|
||||||
|
install_dir : rootbindir)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf.get('ENABLE_HWDB') == 1
|
if conf.get('ENABLE_HWDB') == 1
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1+
|
||||||
|
|
||||||
|
systemd_tmpfiles_sources = [
|
||||||
|
'src/tmpfiles/tmpfiles.c',
|
||||||
|
'src/tmpfiles/offline-passwd.c',
|
||||||
|
'src/tmpfiles/offline-passwd.h',
|
||||||
|
]
|
Loading…
Reference in New Issue