s4-waf: add the missing bits for builing nss_winbind and pam_winbind
[samba.git] / nsswitch / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_SUBSYSTEM('LIBWINBIND-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                     )
8
9
10 bld.SAMBA_BINARY('nsstest',
11         source='nsstest.c',
12         deps='LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG NSS_WRAPPER'
13         )
14
15
16 bld.SAMBA_BINARY('wbinfo',
17         source='wbinfo.c',
18         deps='LIBSAMBA-UTIL LIBCLI_AUTH popt POPT_SAMBA LIBWINBIND-CLIENT LIBWBCLIENT tevent UTIL_TEVENT LIBASYNC_REQ UID_WRAPPER'
19         )
20
21 bld.SAMBA_LIBRARY('nsswinbind',
22     source='../nsswitch/winbind_nss_linux.c',
23     deps='LIBWINBIND-CLIENT',
24     realname='libnss_winbind.so',
25     vnum='2')
26
27 bld.SAMBA_LIBRARY('pamwinbind',
28     source='../nsswitch/pam_winbind.c',
29     deps='talloc LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER pam',
30     cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
31     realname='pam_winbind.so',
32     )