summaryrefslogtreecommitdiffstats
path: root/src/meson.build
blob: 3fd1ff5b23cf2bf799dc75a724fdc4052f39f281 (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
70
71
72
73
74
75
76
77
src_build_dir = meson.current_build_dir()

if get_option('cryptsetup')
    cryptsetup_files = files(
        'cryptsetup.c',
        'utils_args.c',
        'utils_blockdev.c',
        'utils_luks.c',
        'utils_password.c',
        'utils_progress.c',
        'utils_reencrypt.c',
        'utils_reencrypt_luks1.c',
        'utils_tools.c',
    )
    cryptsetup_files += lib_tools_files
    cryptsetup_deps = [
        popt,
        pwquality,
        passwdqc,
        uuid,
        blkid,
    ]
    cryptsetup = executable('cryptsetup',
        cryptsetup_files,
        dependencies: cryptsetup_deps,
        link_with: libcryptsetup,
        link_args: link_args,
        include_directories: includes_tools)
endif

if get_option('veritysetup')
    veritysetup_files = files(
        'utils_args.c',
        'utils_tools.c',
        'veritysetup.c',
    )
    veritysetup_files += lib_tools_files
    veritysetup_deps = [
        popt,
        blkid,
    ]

    veritysetup = executable('veritysetup',
        veritysetup_files,
        dependencies: veritysetup_deps,
        link_with: libcryptsetup,
        link_args: link_args,
        include_directories: includes_tools)
endif

if get_option('integritysetup')
    integritysetup_files = files(
        'integritysetup.c',
        'utils_args.c',
        'utils_blockdev.c',
        'utils_progress.c',
        'utils_tools.c',
    )
    integritysetup_files += lib_tools_files
    integritysetup_deps = [
        popt,
        uuid,
        blkid,
    ]

    integritysetup = executable('integritysetup',
        integritysetup_files,
        dependencies: integritysetup_deps,
        link_with: libcryptsetup,
        link_args: link_args,
        include_directories: includes_tools)
endif

src_ssh_token_files = files(
    'utils_password.c',
    'utils_tools.c',
)