From be712a8eea486d493d6e0c924d1d8e13312a52af Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Fri, 30 Apr 2010 14:18:20 +0200 Subject: [PATCH] s3-waf: Build swat --- source3/wscript | 1 + source3/wscript_build | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/source3/wscript b/source3/wscript index 5bbf377fd9b..a261d39d7cc 100644 --- a/source3/wscript +++ b/source3/wscript @@ -32,6 +32,7 @@ def set_options(opt): action="store_true", dest='enable_selftest', default=False) opt.SAMBA3_ADD_OPTION('winbind') + opt.SAMBA3_ADD_OPTION('swat') opt.SAMBA3_ADD_OPTION('ads') opt.SAMBA3_ADD_OPTION('krb5') opt.SAMBA3_ADD_OPTION('ldap') diff --git a/source3/wscript_build b/source3/wscript_build index df677dffe35..5b2ab280ee6 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -788,6 +788,15 @@ NMBD_SRC = '''${NMBD_SRC1} ${KRBCLIENT_SRC} ${PROFILE_SRC} ${POPT_LIB_SRC} ${LIBNDR_GEN_SRC0}''' +SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c + web/swat.c web/neg_lang.c''' + +SWAT_SRC = '''${SWAT_SRC1} ${PRINTING_SRC} ${PRINTBASE_SRC} + ${LOCKING_SRC} ${KRBCLIENT_SRC} + ${PLAINTEXT_AUTH_SRC} + ${POPT_LIB_SRC} ${SMBLDAP_SRC} ${RPC_PARSE_SRC} ${LIBMSRPC_GEN_SRC} ${LIBMSRPC_SRC} + ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}''' + WBINFO_SRC = '../nsswitch/wbinfo.c ${POPT_LIB_SRC} ${AFS_SETTOKEN_SRC}' TESTPARM_SRC = 'utils/testparm.c ${POPT_LIB_SRC}' @@ -868,7 +877,7 @@ bld.SAMBA_SUBSYSTEM('PARAM', bld.SAMBA_SUBSYSTEM('LIBS', source=LIB_SRC, - deps='tdb popt', + deps='tdb popt NSS_WRAPPER', vars=locals()) bld.SAMBA_SUBSYSTEM('LIB_NONSMBD', @@ -919,6 +928,15 @@ bld.SAMBA_BINARY('winbindd/winbindd', install_path='${SBINDIR}', vars=locals()) +bld.SAMBA_BINARY('web/swat', + source=SWAT_SRC, + deps='''talloc tevent DYNCONFIG LIBS LIBSMB LIBWBCLIENT PARAM + LIB_NONSMBD resolv LDB PASSDB''', + includes='lib', + enabled=Options.options.with_swat, + install_path='${SBINDIR}', + vars=locals()) + bld.SAMBA_BINARY('wbinfo', source=WBINFO_SRC, deps='''talloc LIBWBCLIENT popt DYNCONFIG tevent tdb cap -- 2.11.4.GIT