]>
Commit | Line | Data |
---|---|---|
3a726fcd ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
3 | # Copyright 2017 Zbigniew Jędrzejewski-Szmek | |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
6 | # under the terms of the GNU Lesser General Public License as published by | |
7 | # the Free Software Foundation; either version 2.1 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # systemd is distributed in the hope that it will be useful, but | |
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | # Lesser General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU Lesser General Public License | |
16 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
17 | ||
5c23128d | 18 | systemd_machined_sources = files(''' |
37efbbd8 ZJS |
19 | machined.c |
20 | machined.h | |
5c23128d ZJS |
21 | '''.split()) |
22 | ||
23 | libmachine_core_sources = files(''' | |
37efbbd8 ZJS |
24 | machine.c |
25 | machine.h | |
26 | machined-dbus.c | |
27 | machine-dbus.c | |
28 | machine-dbus.h | |
29 | image-dbus.c | |
30 | image-dbus.h | |
31 | operation.c | |
32 | operation.h | |
5c23128d ZJS |
33 | '''.split()) |
34 | ||
35 | libmachine_core = static_library( | |
37efbbd8 ZJS |
36 | 'machine-core', |
37 | libmachine_core_sources, | |
38 | include_directories : includes, | |
39 | dependencies : [threads]) | |
5c23128d | 40 | |
349cc4a5 | 41 | if conf.get('ENABLE_MACHINED') == 1 |
37efbbd8 ZJS |
42 | install_data('org.freedesktop.machine1.conf', |
43 | install_dir : dbuspolicydir) | |
44 | install_data('org.freedesktop.machine1.service', | |
45 | install_dir : dbussystemservicedir) | |
5c23128d | 46 | |
c8121792 | 47 | i18n.merge_file( |
37efbbd8 ZJS |
48 | 'org.freedesktop.machine1.policy', |
49 | input : 'org.freedesktop.machine1.policy.in', | |
50 | output : 'org.freedesktop.machine1.policy', | |
c8121792 | 51 | po_dir : po_dir, |
d79a2f5f | 52 | data_dirs : po_dir, |
37efbbd8 ZJS |
53 | install : install_polkit, |
54 | install_dir : polkitpolicydir) | |
5c23128d | 55 | endif |
69e96427 ZJS |
56 | |
57 | tests += [ | |
37efbbd8 ZJS |
58 | [['src/machine/test-machine-tables.c'], |
59 | [libmachine_core, | |
34ce0a52 | 60 | libshared], |
37efbbd8 ZJS |
61 | [threads], |
62 | 'ENABLE_MACHINED'], | |
63 | ] |