Debian Codegraph @

src/cryptsetup/cryptsetup-tokens/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 lib_cryptsetup_token_common = static_library(
4 'cryptsetup-token-common',
5 'cryptsetup-token-util.c',
6 include_directories : includes,
7 implicit_include_directories : false,
8 dependencies : userspace,
9 link_with : libshared,
10 build_by_default : false)
11
12 cryptsetup_token_systemd_tpm2_sources = files(
13 'cryptsetup-token-systemd-tpm2.c',
14 'luks2-tpm2.c',
15 )
16
17 cryptsetup_token_systemd_fido2_sources = files(
18 'cryptsetup-token-systemd-fido2.c',
19 'luks2-fido2.c',
20 )
21
22 cryptsetup_token_systemd_pkcs11_sources = files(
23 'cryptsetup-token-systemd-pkcs11.c',
24 'luks2-pkcs11.c',
25 )
26
27 template = {
28 'include_directories' : includes,
29 'link_with' : [
30 lib_cryptsetup_token_common,
31 libshared,
32 ],
33 'version-script' : meson.current_source_dir() / 'cryptsetup-token.sym',
34 'install_rpath' : pkglibdir,
35 'install' : true,
36 'install_dir' : libcryptsetup_plugins_dir,
37 }
38
39 modules += [
40 template + {
41 'name' : 'cryptsetup-token-systemd-tpm2',
42 'conditions' : [
43 'HAVE_LIBCRYPTSETUP_PLUGINS',
44 'HAVE_TPM2',
45 ],
46 'sources' : cryptsetup_token_systemd_tpm2_sources,
47 'dependencies' : [
48 libcryptsetup_cflags,
49 tpm2_cflags,
50 ],
51 },
52 template + {
53 'name' : 'cryptsetup-token-systemd-fido2',
54 'conditions' : [
55 'HAVE_LIBCRYPTSETUP_PLUGINS',
56 'HAVE_LIBFIDO2',
57 ],
58 'sources' : cryptsetup_token_systemd_fido2_sources,
59 'dependencies' : [
60 libcryptsetup_cflags,
61 libfido2_cflags,
62 ],
63 },
64 template + {
65 'name' : 'cryptsetup-token-systemd-pkcs11',
66 'conditions' : [
67 'HAVE_LIBCRYPTSETUP_PLUGINS',
68 'HAVE_P11KIT',
69 ],
70 'sources' : cryptsetup_token_systemd_pkcs11_sources,
71 'dependencies' : [
72 libcryptsetup_cflags,
73 libp11kit_cflags,
74 ],
75 },
76 ]