]>
Commit | Line | Data |
---|---|---|
3a726fcd ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
3 | # Copyright 2017 Zbigniew Jędrzejewski-Szmek | |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
6 | # under the terms of the GNU Lesser General Public License as published by | |
7 | # the Free Software Foundation; either version 2.1 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # systemd is distributed in the hope that it will be useful, but | |
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | # Lesser General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU Lesser General Public License | |
16 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
17 | ||
5c23128d | 18 | systemd_timesyncd_sources = files(''' |
37efbbd8 ZJS |
19 | timesyncd.c |
20 | timesyncd-manager.c | |
21 | timesyncd-manager.h | |
22 | timesyncd-conf.c | |
23 | timesyncd-conf.h | |
24 | timesyncd-server.c | |
25 | timesyncd-server.h | |
5c23128d ZJS |
26 | '''.split()) |
27 | ||
28 | timesyncd_gperf_c = custom_target( | |
37efbbd8 ZJS |
29 | 'timesyncd-gperf.c', |
30 | input : 'timesyncd-gperf.gperf', | |
31 | output : 'timesyncd-gperf.c', | |
32 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
5c23128d ZJS |
33 | |
34 | systemd_timesyncd_sources += [timesyncd_gperf_c] | |
35 | ||
349cc4a5 | 36 | if conf.get('ENABLE_TIMESYNCD') == 1 |
37efbbd8 ZJS |
37 | timesyncd_conf = configure_file( |
38 | input : 'timesyncd.conf.in', | |
39 | output : 'timesyncd.conf', | |
40 | configuration : substs) | |
41 | install_data(timesyncd_conf, | |
42 | install_dir : pkgsysconfdir) | |
5c23128d | 43 | endif |
c6c1ba8f ZJS |
44 | |
45 | ############################################################ | |
46 | ||
47 | tests += [ | |
48 | [['src/timesync/test-timesync.c', | |
49 | 'src/timesync/timesyncd-manager.c', | |
50 | 'src/timesync/timesyncd-manager.h', | |
51 | 'src/timesync/timesyncd-conf.c', | |
52 | 'src/timesync/timesyncd-conf.h', | |
53 | 'src/timesync/timesyncd-server.c', | |
54 | 'src/timesync/timesyncd-server.h', | |
55 | timesyncd_gperf_c], | |
56 | [libshared], | |
57 | [libm], | |
58 | 'ENABLE_TIMESYNCD'], | |
59 | ] |