1 # SPDX-License-Identifier: LGPL-2.1-or-later
9 systemd_timesyncd_sources = files(
14 sources += custom_target(
16 input : 'timesyncd-gperf.gperf',
17 output : 'timesyncd-gperf.c',
18 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
20 if get_option('link-timesyncd-shared')
21 timesyncd_link_with = [libshared]
23 timesyncd_link_with = [libsystemd_static,
28 libtimesyncd_core = static_library(
31 include_directories : includes,
32 dependencies : userspace,
33 link_with : timesyncd_link_with,
34 build_by_default : false)
38 'name' : 'systemd-timesyncd',
39 'conditions' : ['ENABLE_TIMESYNCD'],
40 'sources' : systemd_timesyncd_sources,
41 'link_with' : libtimesyncd_core,
48 'name' : 'systemd-time-wait-sync',
49 'conditions' : ['ENABLE_TIMESYNCD'],
50 'sources' : files('wait-sync.c'),
51 'link_with' : libtimesyncd_core,
54 'sources' : files('test-timesync.c'),
59 'dependencies' : libm,
65 input : 'timesyncd.conf.in',
66 output : 'timesyncd.conf',
67 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
68 install : conf.get('ENABLE_TIMESYNCD') == 1 and install_sysconfdir_samples,
69 install_dir : pkgconfigfiledir)
71 if conf.get('ENABLE_TIMESYNCD') == 1
72 install_data('org.freedesktop.timesync1.conf',
73 install_dir : dbuspolicydir)
74 install_data('org.freedesktop.timesync1.service',
75 install_dir : dbussystemservicedir)
76 install_data('80-systemd-timesync.list',
77 install_dir : ntpservicelistdir)
78 install_data('org.freedesktop.timesync1.policy',
79 install_dir : polkitpolicydir)