diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-06-25 09:05:38 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-08-01 08:54:45 +0200 |
commit | 19361deaea8562ce24cd7a560ada1eb0282c9409 (patch) | |
tree | 014f842b70c5b1fdbf1f6eed20cfc5483e0cd5d5 /src/machine | |
parent | docs: fix typo (diff) | |
download | systemd-19361deaea8562ce24cd7a560ada1eb0282c9409.tar.xz systemd-19361deaea8562ce24cd7a560ada1eb0282c9409.zip |
meson: move declarations of machined and friends
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/meson.build | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/machine/meson.build b/src/machine/meson.build index d8b2dd188d..2adc1bd37b 100644 --- a/src/machine/meson.build +++ b/src/machine/meson.build @@ -1,9 +1,5 @@ # SPDX-License-Identifier: LGPL-2.1-or-later -systemd_machined_sources = files( - 'machined.c', -) - libmachine_core_sources = files( 'image-dbus.c', 'machine-dbus.c', @@ -22,6 +18,31 @@ libmachine_core = static_library( userspace], build_by_default : false) +executables += [ + libexec_template + { + 'name' : 'systemd-machined', + 'dbus' : true, + 'conditions' : ['ENABLE_MACHINED'], + 'sources' : files('machined.c'), + 'link_with' : [ + libmachine_core, + libshared, + ], + }, + executable_template + { + 'name' : 'machinectl', + 'public' : true, + 'conditions' : ['ENABLE_MACHINED'], + 'sources' : files('machinectl.c'), + 'dependencies' : [ + liblz4, + libxz, + libzstd, + threads, + ], + }, +] + if conf.get('ENABLE_MACHINED') == 1 install_data('org.freedesktop.machine1.conf', install_dir : dbuspolicydir) |