summaryrefslogtreecommitdiffstats
path: root/src/portable
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-06-25 08:48:28 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-07-31 22:52:50 +0200
commitf1d95540ef65154b7d6645dd0cacd7236cb1d075 (patch)
treeec6b97b14bd11cb92bf88821e27eac8259daf944 /src/portable
parentmeson: move declaration of systemctl (diff)
downloadsystemd-f1d95540ef65154b7d6645dd0cacd7236cb1d075.tar.xz
systemd-f1d95540ef65154b7d6645dd0cacd7236cb1d075.zip
meson: move declarations of portabled and friends
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/meson.build31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/portable/meson.build b/src/portable/meson.build
index 3a151d498e..210829b851 100644
--- a/src/portable/meson.build
+++ b/src/portable/meson.build
@@ -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)