1# SPDX-License-Identifier: LGPL-2.1-or-later
2
3systemd_machined_sources = files(
4        'machined.c',
5        'machined.h',
6)
7
8libmachine_core_sources = files(
9        'image-dbus.c',
10        'image-dbus.h',
11        'machine-dbus.c',
12        'machine-dbus.h',
13        'machine.c',
14        'machine.h',
15        'machined-core.c',
16        'machined-dbus.c',
17        'machined-varlink.c',
18        'machined-varlink.h',
19        'operation.c',
20        'operation.h',
21)
22
23libmachine_core = static_library(
24        'machine-core',
25        libmachine_core_sources,
26        include_directories : includes,
27        dependencies : threads,
28        build_by_default : false)
29
30if conf.get('ENABLE_MACHINED') == 1
31        install_data('org.freedesktop.machine1.conf',
32                     install_dir : dbuspolicydir)
33        install_data('org.freedesktop.machine1.service',
34                     install_dir : dbussystemservicedir)
35        install_data('org.freedesktop.machine1.policy',
36                     install_dir : polkitpolicydir)
37endif
38
39tests += [
40        [files('test-machine-tables.c'),
41         [libmachine_core,
42          libshared],
43         [threads]],
44]
45