summaryrefslogtreecommitdiffstats
path: root/src/machine
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-06-25 09:05:38 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-08-01 08:54:45 +0200
commit19361deaea8562ce24cd7a560ada1eb0282c9409 (patch)
tree014f842b70c5b1fdbf1f6eed20cfc5483e0cd5d5 /src/machine
parentdocs: fix typo (diff)
downloadsystemd-19361deaea8562ce24cd7a560ada1eb0282c9409.tar.xz
systemd-19361deaea8562ce24cd7a560ada1eb0282c9409.zip
meson: move declarations of machined and friends
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/meson.build29
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)