]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/timesync/meson.build
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / timesync / meson.build
CommitLineData
3a726fcd
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
3# Copyright 2017 Zbigniew Jędrzejewski-Szmek
3a726fcd 4
5c23128d 5systemd_timesyncd_sources = files('''
37efbbd8 6 timesyncd.c
37efbbd8
ZJS
7 timesyncd-conf.c
8 timesyncd-conf.h
393a256b
YW
9 timesyncd-manager.c
10 timesyncd-manager.h
37efbbd8
ZJS
11 timesyncd-server.c
12 timesyncd-server.h
5c23128d
ZJS
13'''.split())
14
15timesyncd_gperf_c = custom_target(
37efbbd8
ZJS
16 'timesyncd-gperf.c',
17 input : 'timesyncd-gperf.gperf',
18 output : 'timesyncd-gperf.c',
19 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
5c23128d
ZJS
20
21systemd_timesyncd_sources += [timesyncd_gperf_c]
22
349cc4a5 23if conf.get('ENABLE_TIMESYNCD') == 1
37efbbd8
ZJS
24 timesyncd_conf = configure_file(
25 input : 'timesyncd.conf.in',
26 output : 'timesyncd.conf',
27 configuration : substs)
28 install_data(timesyncd_conf,
29 install_dir : pkgsysconfdir)
5c23128d 30endif
c6c1ba8f
ZJS
31
32############################################################
33
34tests += [
35 [['src/timesync/test-timesync.c',
36 'src/timesync/timesyncd-manager.c',
37 'src/timesync/timesyncd-manager.h',
38 'src/timesync/timesyncd-conf.c',
39 'src/timesync/timesyncd-conf.h',
40 'src/timesync/timesyncd-server.c',
41 'src/timesync/timesyncd-server.h',
42 timesyncd_gperf_c],
43 [libshared],
44 [libm],
45 'ENABLE_TIMESYNCD'],
46]