lib/crypto/MD5: add option to use libavutil instead of libgcrypt

This commit is contained in:
Max Kellermann
2019-08-14 18:56:10 +02:00
parent 433e18b247
commit 5c550e8b33
4 changed files with 29 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
if libavutil_dep.found()
# if we have FFmpeg, we can use its MD5 implementation and we don't
# need libgcrypt
gcrypt_dep = dependency('', required: false)
subdir_done()
endif
# Since version 0.49.0 Meson has native libgcrypt dependency support, which has
# the advantage over find_library() as it uses libgcrypt-config to query the
# required linker flags.