heimdal_build: Simplify library handling.
[Samba/gebeck_regimport.git] / nsswitch / wscript_build
bloba9881bd9c4ee2add2751c9aa737d287c87cb7688
1 #!/usr/bin/env python
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
11 bld.SAMBA_BINARY('nsstest',
12 source='nsstest.c',
13 deps='replace'
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'
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')
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',