1# SPDX-License-Identifier: LGPL-2.1-or-later
2
3systemd_importd_sources = files(
4        'importd.c')
5
6systemd_pull_sources = files(
7        'pull.c',
8        'pull-raw.c',
9        'pull-raw.h',
10        'pull-tar.c',
11        'pull-tar.h',
12        'pull-job.c',
13        'pull-job.h',
14        'pull-common.c',
15        'pull-common.h',
16        'curl-util.c',
17        'curl-util.h')
18
19systemd_import_sources = files(
20        'import.c',
21        'import-raw.c',
22        'import-raw.h',
23        'import-tar.c',
24        'import-tar.h')
25
26systemd_import_fs_sources = files(
27        'import-fs.c')
28
29systemd_export_sources = files(
30        'export.c',
31        'export-tar.c',
32        'export-tar.h',
33        'export-raw.c',
34        'export-raw.h')
35
36if conf.get('ENABLE_IMPORTD') == 1
37        lib_import_common = static_library(
38                'import-common',
39                'import-common.c',
40                'import-common.h',
41                'import-compress.c',
42                'import-compress.h',
43                'qcow2-util.c',
44                'qcow2-util.h',
45                include_directories : includes,
46                dependencies : [libbzip2,
47                                libxz,
48                                libz],
49                build_by_default : false)
50
51        install_data('org.freedesktop.import1.conf',
52                     install_dir : dbuspolicydir)
53        install_data('org.freedesktop.import1.service',
54                     install_dir : dbussystemservicedir)
55        install_data('org.freedesktop.import1.policy',
56                     install_dir : polkitpolicydir)
57
58        install_data('import-pubring.gpg',
59                     install_dir : rootlibexecdir)
60        # TODO: shouldn't this be in pkgdatadir?
61endif
62
63tests += [
64        [files('test-qcow2.c',
65               'qcow2-util.c',
66               'qcow2-util.h'),
67         [],
68         [libz],
69         [], 'HAVE_ZLIB', 'manual'],
70]
71