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

libvmspawn_core_sources = files(
        'vmspawn-settings.c',
        'vmspawn-util.c',
        'vmspawn-scope.c',
        'vmspawn-mount.c',
        'vmspawn-register.c',
)
libvmspawn_core = static_library(
        'vmspawn-core',
        libvmspawn_core_sources,
        include_directories : includes,
        dependencies : [userspace],
        build_by_default : false)

vmspawn_libs = [
        libvmspawn_core,
        libshared,
]

vmspawn_test_template = test_template + {
        'link_with' : [vmspawn_libs],
}

executables += [
        executable_template + {
                'name' : 'systemd-vmspawn',
                'public' : true,
                'conditions': ['ENABLE_VMSPAWN'],
                'sources' : files('vmspawn.c'),
                'link_with' : vmspawn_libs,
                'dependencies' : [libblkid]
        },
        vmspawn_test_template + {
                'conditions': ['ENABLE_VMSPAWN'],
                'sources' : files('test-vmspawn-util.c'),
        },
]