waf: add a cross-execute program that runs natively
[Samba.git] / source3 / pam_smbpass / wscript_build
bloba4eaa6c29722f493952a02679823e58d7ddef8e8
1 #!/usr/bin/env python
3 if bld.CONFIG_SET('WITH_PAM_MODULES'):
4 bld.SAMBA3_LIBRARY('pamsmbpass',
5 source='''pam_smb_auth.c
6 pam_smb_passwd.c
7 pam_smb_acct.c
8 support.c''',
9 allow_warnings=True,
10 deps='''tdb talloc pam PAM_ERRORS wbclient cap asn1util param pdb
11 LIBNTLMSSP LIBTSOCKET''',
12 cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
13 realname='pam_smbpass.so',
14 install_path='${PAMMODULESDIR}',
15 enabled=bld.env.with_pam_smbpass