1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

meson: move declarations of portabled and friends

This commit is contained in:
Yu Watanabe 2023-06-25 15:48:28 +09:00
parent c212163086
commit f1d95540ef
2 changed files with 31 additions and 31 deletions

View File

@ -2570,37 +2570,6 @@ if conf.get('HAVE_BLKID') == 1 and conf.get('ENABLE_BOOTLOADER') == 1
endif
endif
if conf.get('ENABLE_PORTABLED') == 1
if get_option('link-portabled-shared')
portabled_link_with = [libshared]
else
portabled_link_with = [libsystemd_static,
libshared_static]
endif
dbus_programs += executable(
'systemd-portabled',
systemd_portabled_sources,
include_directories : includes,
link_with : [portabled_link_with],
dependencies : [libselinux,
threads,
userspace],
install_rpath : pkglibdir,
install : true,
install_dir : libexecdir)
public_programs += executable(
'portablectl',
'src/portable/portablectl.c',
include_directories : includes,
link_with : [portabled_link_with],
dependencies : [threads,
userspace],
install_rpath : pkglibdir,
install : true)
endif
if conf.get('ENABLE_SYSEXT') == 1
public_programs += executable(
'systemd-sysext',

View File

@ -9,6 +9,37 @@ systemd_portabled_sources = files(
'portabled.c',
)
if get_option('link-portabled-shared')
portabled_link_with = [libshared]
else
portabled_link_with = [
libshared_static,
libsystemd_static,
]
endif
executables += [
libexec_template + {
'name' : 'systemd-portabled',
'dbus' : true,
'conditions' : ['ENABLE_PORTABLED'],
'sources' : systemd_portabled_sources,
'link_with' : portabled_link_with,
'dependencies' : [
libselinux,
threads,
],
},
executable_template + {
'name' : 'portablectl',
'public' : true,
'conditions' : ['ENABLE_PORTABLED'],
'sources' : files('portablectl.c'),
'link_with' : portabled_link_with,
'dependencies' : threads,
},
]
if conf.get('ENABLE_PORTABLED') == 1
install_data('org.freedesktop.portable1.conf',
install_dir : dbuspolicydir)