summaryrefslogtreecommitdiffstats
path: root/src/timedate/meson.build
blob: 0790695be9ca943a6dab9006d3aebfc48635ae6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SPDX-License-Identifier: LGPL-2.1-or-later

executables += [
        libexec_template + {
                'name' : 'systemd-timedated',
                'dbus' : true,
                'conditions' : ['ENABLE_TIMEDATED'],
                'sources' : files(
                        'timedated.c',
                        'hwclock-util.c',
                ),

        },
        executable_template + {
                'name' : 'timedatectl',
                'public' : true,
                'conditions' : ['ENABLE_TIMEDATECTL'],
                'sources' : files('timedatectl.c'),
                'dependencies' : libm,
        },
]

if conf.get('ENABLE_TIMEDATED') == 1
        install_data('org.freedesktop.timedate1.conf',
                     install_dir : dbuspolicydir)
        install_data('org.freedesktop.timedate1.service',
                     install_dir : dbussystemservicedir)
        install_data('org.freedesktop.timedate1.policy',
                     install_dir : polkitpolicydir)
endif