1 # SPDX-License-Identifier: LGPL-2.1-or-later
8 'timesyncd-ntp-message.h',
12 systemd_timesyncd_sources = files(
17 sources += custom_target(
19 input : 'timesyncd-gperf.gperf',
20 output : 'timesyncd-gperf.c',
21 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
23 if get_option('link-timesyncd-shared')
24 timesyncd_link_with = [libshared]
26 timesyncd_link_with = [libsystemd_static,
31 libtimesyncd_core = static_library(
34 include_directories : includes,
35 link_with : [timesyncd_link_with])
39 input : 'timesyncd.conf.in',
40 output : 'timesyncd.conf',
41 command : [meson_render_jinja2, config_h, '@INPUT@'],
43 install : conf.get('ENABLE_TIMESYNCD') == 1 and install_sysconfdir_samples,
44 install_dir : pkgsysconfdir)
46 if conf.get('ENABLE_TIMESYNCD') == 1
47 install_data('org.freedesktop.timesync1.conf',
48 install_dir : dbuspolicydir)
49 install_data('org.freedesktop.timesync1.service',
50 install_dir : dbussystemservicedir)
51 install_data('80-systemd-timesync.list',
52 install_dir : ntpservicelistdir)
55 ############################################################
58 [['src/timesync/test-timesync.c'],