diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:49:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:49:52 +0000 |
commit | 55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch) | |
tree | 33f869f55a1b149e9b7c2b7e201867ca5dd52992 /src/cryptsetup/meson.build | |
parent | Initial commit. (diff) | |
download | systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.tar.xz systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.zip |
Adding upstream version 255.4.upstream/255.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/cryptsetup/meson.build')
-rw-r--r-- | src/cryptsetup/meson.build | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/cryptsetup/meson.build b/src/cryptsetup/meson.build new file mode 100644 index 0000000..90e2be7 --- /dev/null +++ b/src/cryptsetup/meson.build @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +subdir('cryptsetup-tokens') + +systemd_cryptsetup_sources = files( + 'cryptsetup-keyfile.c', + 'cryptsetup.c', +) + +if conf.get('HAVE_P11KIT') == 1 + systemd_cryptsetup_sources += files('cryptsetup-pkcs11.c') +endif + +if conf.get('HAVE_TPM2') == 1 + systemd_cryptsetup_sources += files('cryptsetup-tpm2.c') +endif + +executables += [ + executable_template + { + 'name' : 'systemd-cryptsetup', + 'public' : true, + 'conditions' : ['HAVE_LIBCRYPTSETUP'], + 'sources' : systemd_cryptsetup_sources, + 'dependencies' : [ + libcryptsetup, + libopenssl, + libp11kit_cflags, + ], + }, + generator_template + { + 'name' : 'systemd-cryptsetup-generator', + 'conditions' : ['HAVE_LIBCRYPTSETUP'], + 'sources' : files('cryptsetup-generator.c'), + }, +] + +if conf.get('HAVE_LIBCRYPTSETUP') == 1 + # symlink for backwards compatibility after rename + meson.add_install_script(sh, '-c', + ln_s.format(bindir / 'systemd-cryptsetup', + libexecdir / 'systemd-cryptsetup')) +endif |