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