]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
3a726fcd | 2 | |
f1b98127 ZJS |
3 | libmachine_core_sources = files( |
4 | 'image-dbus.c', | |
f1b98127 | 5 | 'machine-dbus.c', |
5b44c81f | 6 | 'machine-varlink.c', |
f1b98127 | 7 | 'machine.c', |
f1b98127 ZJS |
8 | 'machined-core.c', |
9 | 'machined-dbus.c', | |
10 | 'machined-varlink.c', | |
f1b98127 | 11 | 'operation.c', |
2f492a73 | 12 | ) |
5c23128d ZJS |
13 | |
14 | libmachine_core = static_library( | |
37efbbd8 ZJS |
15 | 'machine-core', |
16 | libmachine_core_sources, | |
17 | include_directories : includes, | |
92148283 JJ |
18 | dependencies : [threads, |
19 | userspace], | |
03f7ddf0 | 20 | build_by_default : false) |
5c23128d | 21 | |
19361dea YW |
22 | executables += [ |
23 | libexec_template + { | |
24 | 'name' : 'systemd-machined', | |
25 | 'dbus' : true, | |
26 | 'conditions' : ['ENABLE_MACHINED'], | |
27 | 'sources' : files('machined.c'), | |
28 | 'link_with' : [ | |
29 | libmachine_core, | |
30 | libshared, | |
31 | ], | |
32 | }, | |
33 | executable_template + { | |
34 | 'name' : 'machinectl', | |
35 | 'public' : true, | |
36 | 'conditions' : ['ENABLE_MACHINED'], | |
37 | 'sources' : files('machinectl.c'), | |
38 | 'dependencies' : [ | |
3fc72d54 MC |
39 | liblz4_cflags, |
40 | libxz_cflags, | |
41 | libzstd_cflags, | |
19361dea YW |
42 | threads, |
43 | ], | |
44 | }, | |
130c87b1 YW |
45 | test_template + { |
46 | 'sources' : files('test-machine-tables.c'), | |
47 | 'link_with': [ | |
48 | libmachine_core, | |
49 | libshared | |
50 | ], | |
51 | 'dependencies': threads, | |
52 | }, | |
19361dea YW |
53 | ] |
54 | ||
349cc4a5 | 55 | if conf.get('ENABLE_MACHINED') == 1 |
37efbbd8 ZJS |
56 | install_data('org.freedesktop.machine1.conf', |
57 | install_dir : dbuspolicydir) | |
58 | install_data('org.freedesktop.machine1.service', | |
59 | install_dir : dbussystemservicedir) | |
9b3cff19 | 60 | install_data('org.freedesktop.machine1.policy', |
264d8dcc | 61 | install_dir : polkitpolicydir) |
5c23128d | 62 | endif |