]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/machine/meson.build
build-sys: use #if Y instead of #ifdef Y everywhere
[thirdparty/systemd.git] / src / machine / meson.build
1 systemd_machined_sources = files('''
2 machined.c
3 machined.h
4 '''.split())
5
6 libmachine_core_sources = files('''
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
16 '''.split())
17
18 libmachine_core = static_library(
19 'machine-core',
20 libmachine_core_sources,
21 include_directories : includes,
22 dependencies : [threads])
23
24 if conf.get('ENABLE_MACHINED') == 1
25 install_data('org.freedesktop.machine1.conf',
26 install_dir : dbuspolicydir)
27 install_data('org.freedesktop.machine1.service',
28 install_dir : dbussystemservicedir)
29
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)
37 endif
38
39 tests += [
40 [['src/machine/test-machine-tables.c'],
41 [libmachine_core,
42 libshared],
43 [threads],
44 'ENABLE_MACHINED'],
45 ]