s4-dns: Deprecate BIND9_FLATFILE and remove "rndc command"
[samba.git] / lib / crypto / wscript_build
1 #!/usr/bin/env python
2
3 extra_deps = ''
4
5 if bld.CONFIG_SET("HAVE_AESNI_INTEL"):
6         extra_deps += ' aesni-intel'
7
8 bld.SAMBA_SUBSYSTEM('GNUTLS_HELPERS',
9                     source='''
10                     gnutls_error.c
11                     gnutls_arcfour_confounded_md5.c
12                     ''',
13                     deps='gnutls samba-errors');
14
15 bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES_CCM',
16                     source='aes_ccm_128.c',
17                     deps='talloc')
18
19 bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES_GCM',
20                     source='aes_gcm_128.c',
21                     deps='talloc')
22
23 bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES',
24                     source='aes.c rijndael-alg-fst.c',
25                     deps='talloc')
26
27 bld.SAMBA_SUBSYSTEM('LIBCRYPTO_AES_CMAC',
28                     source='aes_cmac_128.c',
29                     deps='talloc',
30                     enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
31
32 bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
33         source='''
34                md4.c
35                ''',
36         deps='''
37              talloc
38              LIBCRYPTO_AES
39              LIBCRYPTO_AES_CCM
40              LIBCRYPTO_AES_GCM
41              LIBCRYPTO_AES_CMAC
42              ''' + extra_deps)
43
44 bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO_AES_CCM',
45                     source='aes_ccm_128_test.c',
46                     autoproto='aes_ccm_test_proto.h',
47                     deps='talloc')
48
49 bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO_AES_GCM',
50                     source='aes_gcm_128_test.c',
51                     autoproto='aes_gcm_test_proto.h',
52                     deps='talloc')
53
54 bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO_AES_CMAC',
55                     source='aes_cmac_128_test.c',
56                     autoproto='aes_cmac_test_proto.h',
57                     deps='talloc',
58                     enabled=not bld.CONFIG_SET('HAVE_GNUTLS_AES_CMAC'))
59
60 bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
61         source='md4test.c',
62         autoproto='test_proto.h',
63         deps='''
64              LIBCRYPTO
65              TORTURE_LIBCRYPTO_AES_CCM
66              TORTURE_LIBCRYPTO_AES_GCM
67              TORTURE_LIBCRYPTO_AES_CMAC
68              ''')
69
70 bld.SAMBA_PYTHON('python_crypto',
71                  source='py_crypto.c',
72                  deps='gnutls talloc',
73                  realname='samba/crypto.so')