summaryrefslogtreecommitdiffstats
path: root/src/coredump/meson.build
blob: 89468b1fbceb181ddc73bdfe256bffec3045eb07 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# SPDX-License-Identifier: LGPL-2.1-or-later

systemd_coredump_sources = files(
        'coredump.c',
        'coredump-vacuum.c',
)

common_link_with = [
        libshared,
        libbasic_compress,
]

common_dependencies = [
        liblz4,
        libxz,
        libzstd,
        threads,
]

executables += [
        libexec_template + {
                'name' : 'systemd-coredump',
                'conditions' : ['ENABLE_COREDUMP'],
                'sources' : systemd_coredump_sources,
                'link_with' : common_link_with,
                'dependencies' : common_dependencies + [libacl],
        },
        executable_template + {
                'name' : 'coredumpctl',
                'public' : true,
                'conditions' : ['ENABLE_COREDUMP'],
                'sources' : files('coredumpctl.c'),
                'link_with' : common_link_with,
                'dependencies' : common_dependencies,
        },
]

if conf.get('ENABLE_COREDUMP') == 1 and install_sysconfdir_samples
        install_data('coredump.conf',
                     install_dir : pkgsysconfdir)
endif

tests += [
        {
                'sources' : files(
                        'test-coredump-vacuum.c',
                        'coredump-vacuum.c',
                ),
                'type' : 'manual',
        },
]