summaryrefslogtreecommitdiffstats
path: root/tokens/ssh/meson.build
blob: dba1d7611c55a28f119450cead666be61f7fb85f (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
tokens_ssh_build_dir = meson.current_build_dir()

if get_option('ssh-token')
    if not enable_static
        libcryptsetup_token_ssh = shared_library(
            'cryptsetup-token-ssh',
            [
                'libcryptsetup-token-ssh.c',
                'ssh-utils.c',
            ],
            dependencies: [
                jsonc,
                libssh,
            ],
            link_with: libcryptsetup,
            link_args: token_link_args,
            include_directories: includes_tools + ['..'])
    endif

    cryptsetup_ssh_files = files(
        'cryptsetup-ssh.c',
        'ssh-utils.c',
    )
    cryptsetup_ssh_files += lib_ssh_token_files
    cryptsetup_ssh_files += src_ssh_token_files

    cryptsetup_ssh = executable('cryptsetup-ssh',
        cryptsetup_ssh_files,
        dependencies: [
            argp,
            jsonc,
            libssh,
            passwdqc,
            popt,
            pwquality,
        ],
        link_with: libcryptsetup,
        include_directories: includes_tools + ['..'])
endif