Refactor crypto RNG; add getrandom() support
[tinc] / src / gcrypt / meson.build
1 src_lib_crypto = files(
2   'cipher.c',
3   'digest.c',
4   'pem.c',
5   'prf.c',
6   'rsa.c',
7   'rsagen.c',
8 )
9
10 # Under current MinGW, flags specified in libgcrypt.pc fail on static build
11 if static and os_name == 'windows'
12   dep_crypto = []
13   foreach lib : ['libgcrypt', 'gpg-error']
14     dep_crypto += cc.find_library(lib, static: true)
15   endforeach
16 else
17   dep_crypto = dependency('libgcrypt', static: static)
18 endif
19
20 cdata.set('HAVE_LIBGCRYPT', 1)
21