winbind-waf: the installed name is libnss_winbind.so.2
[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 LIBSECURITY_COMMON LIBNDR NDR_SECURITY'
19         )
20
21 bld.SAMBA_LIBRARY('nsswinbind',
22     source='../nsswitch/winbind_nss_linux.c',
23     deps='LIBWINBIND-CLIENT',
24     realname='libnss_winbind.so.2',
25     vnum='2')
26
27 if bld.CONFIG_SET('HAVE_PAM_START'):
28     bld.SAMBA_LIBRARY('pamwinbind',
29         source='../nsswitch/pam_winbind.c',
30         deps='talloc LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER pam',
31         cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
32         realname='pam_winbind.so',
33         )