]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/machine/meson.build
build-sys: use #if Y instead of #ifdef Y everywhere
[thirdparty/systemd.git] / src / machine / meson.build
CommitLineData
5c23128d 1systemd_machined_sources = files('''
37efbbd8
ZJS
2 machined.c
3 machined.h
5c23128d
ZJS
4'''.split())
5
6libmachine_core_sources = files('''
37efbbd8
ZJS
7 machine.c
8 machine.h
9 machined-dbus.c
10 machine-dbus.c
11 machine-dbus.h
12 image-dbus.c
13 image-dbus.h
14 operation.c
15 operation.h
5c23128d
ZJS
16'''.split())
17
18libmachine_core = static_library(
37efbbd8
ZJS
19 'machine-core',
20 libmachine_core_sources,
21 include_directories : includes,
22 dependencies : [threads])
5c23128d 23
349cc4a5 24if conf.get('ENABLE_MACHINED') == 1
37efbbd8
ZJS
25 install_data('org.freedesktop.machine1.conf',
26 install_dir : dbuspolicydir)
27 install_data('org.freedesktop.machine1.service',
28 install_dir : dbussystemservicedir)
5c23128d 29
37efbbd8
ZJS
30 custom_target(
31 'org.freedesktop.machine1.policy',
32 input : 'org.freedesktop.machine1.policy.in',
33 output : 'org.freedesktop.machine1.policy',
34 command : intltool_command,
35 install : install_polkit,
36 install_dir : polkitpolicydir)
5c23128d 37endif
69e96427
ZJS
38
39tests += [
37efbbd8
ZJS
40 [['src/machine/test-machine-tables.c'],
41 [libmachine_core,
34ce0a52 42 libshared],
37efbbd8
ZJS
43 [threads],
44 'ENABLE_MACHINED'],
45]