| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
|
| 3 |
executables += [ |
| 4 |
libexec_template + { |
| 5 |
'name' : 'systemd-timedated', |
| 6 |
'dbus' : true, |
| 7 |
'conditions' : ['ENABLE_TIMEDATED'], |
| 8 |
'sources' : files( |
| 9 |
'timedated.c', |
| 10 |
'hwclock-util.c', |
| 11 |
), |
| 12 |
|
| 13 |
}, |
| 14 |
executable_template + { |
| 15 |
'name' : 'timedatectl', |
| 16 |
'public' : true, |
| 17 |
'conditions' : ['ENABLE_TIMEDATECTL'], |
| 18 |
'sources' : files('timedatectl.c'), |
| 19 |
'dependencies' : libm, |
| 20 |
}, |
| 21 |
] |
| 22 |
|
| 23 |
if conf.get('ENABLE_TIMEDATED') == 1 |
| 24 |
install_data('org.freedesktop.timedate1.conf', |
| 25 |
install_dir : dbuspolicydir) |
| 26 |
install_data('org.freedesktop.timedate1.service', |
| 27 |
install_dir : dbussystemservicedir) |
| 28 |
install_data('org.freedesktop.timedate1.policy', |
| 29 |
install_dir : polkitpolicydir) |
| 30 |
endif |