]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/machine/meson.build
strv: wrap strv_new() in a macro so that NULL sentinel is implicit
[thirdparty/systemd.git] / src / machine / meson.build
CommitLineData
3a726fcd 1# SPDX-License-Identifier: LGPL-2.1+
3a726fcd 2
5c23128d 3systemd_machined_sources = files('''
37efbbd8
ZJS
4 machined.c
5 machined.h
5c23128d
ZJS
6'''.split())
7
8libmachine_core_sources = files('''
37efbbd8
ZJS
9 machine.c
10 machine.h
11 machined-dbus.c
12 machine-dbus.c
13 machine-dbus.h
14 image-dbus.c
15 image-dbus.h
16 operation.c
17 operation.h
5c23128d
ZJS
18'''.split())
19
20libmachine_core = static_library(
37efbbd8
ZJS
21 'machine-core',
22 libmachine_core_sources,
23 include_directories : includes,
24 dependencies : [threads])
5c23128d 25
349cc4a5 26if conf.get('ENABLE_MACHINED') == 1
37efbbd8
ZJS
27 install_data('org.freedesktop.machine1.conf',
28 install_dir : dbuspolicydir)
29 install_data('org.freedesktop.machine1.service',
30 install_dir : dbussystemservicedir)
9b3cff19 31 install_data('org.freedesktop.machine1.policy',
264d8dcc 32 install_dir : polkitpolicydir)
5c23128d 33endif
69e96427
ZJS
34
35tests += [
37efbbd8
ZJS
36 [['src/machine/test-machine-tables.c'],
37 [libmachine_core,
34ce0a52 38 libshared],
37efbbd8
ZJS
39 [threads],
40 'ENABLE_MACHINED'],
41]