summaryrefslogtreecommitdiffstats
path: root/src/coredump/meson.build
blob: bb81149b60f48d432b57f32d0b46be5990768ad1 (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
# SPDX-License-Identifier: LGPL-2.1-or-later

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

common_dependencies = [
        liblz4_cflags,
        libxz_cflags,
        libzstd_cflags,
        threads,
]

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

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