build: fixed the build without sasl libraries
[nivanova/samba-autobuild/.git] / source4 / auth / gensec / wscript_build
1 bld.SAMBA_LIBRARY('gensec',
2         source='gensec.c socket.c',
3         # PC_FILES='gensec.pc',
4         autoproto='gensec_proto.h',
5         public_deps='CREDENTIALS LIBSAMBA-UTIL LIBCRYPTO ASN1_UTIL samba_socket LIBPACKET LIBTSOCKET UTIL_TEVENT',
6         public_headers='gensec.h',
7         vnum='0.0.1'
8         )
9
10
11 bld.SAMBA_MODULE('gensec_krb5',
12         source='gensec_krb5.c',
13         subsystem='gensec',
14         init_function='gensec_krb5_init',
15         deps='CREDENTIALS KERBEROS auth_session'
16         )
17
18
19 bld.SAMBA_MODULE('gensec_gssapi',
20         source='gensec_gssapi.c',
21         subsystem='gensec',
22         init_function='gensec_gssapi_init',
23         deps='HEIMDAL_GSSAPI CREDENTIALS KERBEROS'
24         )
25
26
27 bld.SAMBA_MODULE('cyrus_sasl',
28         source='cyrus_sasl.c',
29         subsystem='gensec',
30         init_function='gensec_sasl_init',
31         deps='CREDENTIALS SASL',
32         enabled=bld.CONFIG_SET('HAVE_SASL')
33         )
34
35
36 bld.SAMBA_MODULE('gensec_spnego',
37         source='spnego.c ../../../libcli/auth/spnego_parse.c',
38         autoproto='spnego_proto.h',
39         subsystem='gensec',
40         init_function='gensec_spnego_init',
41         deps='ASN1_UTIL CREDENTIALS'
42         )
43
44
45 bld.SAMBA_MODULE('gensec_schannel',
46         source='schannel.c ../../../libcli/auth/schannel_sign.c',
47         subsystem='gensec',
48         deps='COMMON_SCHANNELDB NDR_SCHANNEL CREDENTIALS LIBNDR auth_session',
49         internal_module=True,
50         autoproto='schannel_proto.h',
51         init_function='gensec_schannel_init'
52         )
53
54
55 bld.SAMBA_PYTHON('pygensec',
56         source='pygensec.c',
57         deps='gensec PYTALLOC pyparam_util',
58         realname='samba/gensec.so'
59         )
60