summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript1
-rw-r--r--source3/wscript_build20
2 files changed, 20 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript
index 5bbf377fd9..a261d39d7c 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 df677dffe3..5b2ab280ee 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