autobuild: fixed clone source for build trees
[samba.git] / nsswitch / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('winbind-client',
4         source='wb_common.c',
5         deps='replace',
6         cflags='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
7         private_library=True
8         )
9
10
11 bld.SAMBA_BINARY('nsstest',
12         source='nsstest.c',
13         deps='replace'
14         )
15
16
17 bld.SAMBA_BINARY('wbinfo',
18         source='wbinfo.c',
19         deps='samba-util LIBCLI_AUTH popt POPT_SAMBA winbind-client wbclient tevent UTIL_TEVENT LIBASYNC_REQ security ndr NDR_SECURITY'
20         )
21
22 bld.SAMBA_LIBRARY('nss_winbind',
23         source='../nsswitch/winbind_nss_linux.c',
24         deps='winbind-client',
25         realname='libnss_winbind.so.2',
26         vnum='2')
27
28 if bld.CONFIG_SET('HAVE_PAM_START'):
29         bld.SAMBA_LIBRARY('pamwinbind',
30                 source='../nsswitch/pam_winbind.c',
31                 deps='intl talloc wbclient winbind-client LIBINIPARSER pam',
32                 cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
33                 realname='pam_winbind.so',
34                 )