s4-waf: add the missing bits for builing nss_winbind and pam_winbind
[samba.git] / nsswitch / wscript_build
index 80f11871c90292ed7c35d9953e8587591046933c..9303ace0da11d035249815416dfe48766293d09d 100644 (file)
@@ -18,3 +18,15 @@ bld.SAMBA_BINARY('wbinfo',
        deps='LIBSAMBA-UTIL LIBCLI_AUTH popt POPT_SAMBA LIBWINBIND-CLIENT LIBWBCLIENT tevent UTIL_TEVENT LIBASYNC_REQ UID_WRAPPER'
        )
 
+bld.SAMBA_LIBRARY('nsswinbind',
+    source='../nsswitch/winbind_nss_linux.c',
+    deps='LIBWINBIND-CLIENT',
+    realname='libnss_winbind.so',
+    vnum='2')
+
+bld.SAMBA_LIBRARY('pamwinbind',
+    source='../nsswitch/pam_winbind.c',
+    deps='talloc LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER pam',
+    cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
+    realname='pam_winbind.so',
+    )