summaryrefslogtreecommitdiffstats
path: root/nsswitch/wscript_build
blob: 691f82f160aba9657d81c436dfa2756b42d53db5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python

bld.SAMBA_LIBRARY('winbind-client',
	source='wb_common.c',
	deps='replace',
	cflags='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
	private_library=True
	)


bld.SAMBA_BINARY('nsstest',
	source='nsstest.c',
	deps='replace'
	)


bld.SAMBA_LIBRARY('nss_winbind',
	source='../nsswitch/winbind_nss_linux.c',
	deps='winbind-client',
	realname='libnss_winbind.so.2',
	vnum='2')

if bld.CONFIG_SET('HAVE_PAM_START'):
	bld.SAMBA_LIBRARY('pamwinbind',
		source='../nsswitch/pam_winbind.c',
		deps='intl talloc wbclient winbind-client LIBINIPARSER pam',
		cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
		realname='pam_winbind.so',
		)