summaryrefslogtreecommitdiffstats
path: root/src/boot/meson.build
blob: 55b9bd6294b0267150346a34f070f20eeae854af (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# SPDX-License-Identifier: LGPL-2.1-or-later

bootctl_sources = files(
        'bootctl-install.c',
        'bootctl-random-seed.c',
        'bootctl-reboot-to-firmware.c',
        'bootctl-set-efivar.c',
        'bootctl-status.c',
        'bootctl-systemd-efi-options.c',
        'bootctl-uki.c',
        'bootctl-util.c',
        'bootctl.c',
)

if get_option('link-boot-shared')
        boot_link_with = [libshared]
else
        boot_link_with = [
                libshared_static,
                libsystemd_static,
        ]
endif

executables += [
        executable_template + {
                'name' : 'bootctl',
                'public' : true,
                'conditions' : [
                          'HAVE_BLKID',
                ],
                'sources' : bootctl_sources,
                'link_with' : boot_link_with,
                'dependencies' : libblkid,
        },
        libexec_template + {
                'name' : 'systemd-bless-boot',
                'public' : true,
                'conditions' : [
                        'HAVE_BLKID',
                        'ENABLE_BOOTLOADER',
                ],
                'sources' : files('bless-boot.c'),
                'link_with' : boot_link_with,
                'dependencies' : libblkid,
        },
        generator_template + {
                'name' : 'systemd-bless-boot-generator',
                'conditions' : [
                        'HAVE_BLKID',
                        'ENABLE_BOOTLOADER',
                ],
                'sources' : files('bless-boot-generator.c'),
                'link_with' : boot_link_with,
        },
        libexec_template + {
                'name' : 'systemd-measure',
                'conditions' : [
                        'HAVE_BLKID',
                        'HAVE_OPENSSL',
                        'HAVE_TPM2',
                ],
                'sources' : files('measure.c'),
                'dependencies' : libopenssl,
        },
        libexec_template + {
                'name' : 'systemd-boot-check-no-failures',
                'sources' : files('boot-check-no-failures.c'),
        },
]