f50269879b541ce2171a2da4cf8c70b8ed9fa2d4
[gd/samba-autobuild/.git] / lib / crypto / wscript_build
1 #!/usr/bin/env python
2
3 extra_source = ''
4 extra_deps = ''
5 if bld.CONFIG_SET('HAVE_BSD_MD5_H'):
6         extra_deps += ' bsd'
7 else:
8         extra_source += ' md5.c'
9
10 bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
11         source='''crc32.c hmacmd5.c md4.c arcfour.c sha256.c hmacsha256.c
12         aes.c rijndael-alg-fst.c aes_cmac_128.c
13         ''' + extra_source,
14         deps='talloc' + extra_deps
15         )
16
17 bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
18         source='md4test.c md5test.c hmacmd5test.c aes_cmac_128_test.c',
19         autoproto='test_proto.h',
20         deps='LIBCRYPTO'
21         )
22