diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-06-25 08:48:28 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-07-31 22:52:50 +0200 |
commit | f1d95540ef65154b7d6645dd0cacd7236cb1d075 (patch) | |
tree | ec6b97b14bd11cb92bf88821e27eac8259daf944 /src/portable | |
parent | meson: move declaration of systemctl (diff) | |
download | systemd-f1d95540ef65154b7d6645dd0cacd7236cb1d075.tar.xz systemd-f1d95540ef65154b7d6645dd0cacd7236cb1d075.zip |
meson: move declarations of portabled and friends
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/meson.build | 31 |
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) |