summaryrefslogtreecommitdiff
path: root/source3/wscript_build
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-05-28 15:56:32 +0200
committerKai Blin <kai@samba.org>2010-05-30 23:29:39 +0200
commit209555ef09bf57aa79f164f6e85a16e5b4977609 (patch)
tree777650d823ecb44371f930853cac9dc8bc1f637b /source3/wscript_build
parent04d251a8476b8cf267667fc108f2f8c213fceb54 (diff)
downloadsamba-209555ef09bf57aa79f164f6e85a16e5b4977609.tar.gz
samba-209555ef09bf57aa79f164f6e85a16e5b4977609.tar.bz2
samba-209555ef09bf57aa79f164f6e85a16e5b4977609.zip
s3-waf: support avahi builds
Diffstat (limited to 'source3/wscript_build')
-rw-r--r--source3/wscript_build10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/wscript_build b/source3/wscript_build
index 770877e5d9..31456619f1 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -23,7 +23,7 @@ AFS_SRC = 'lib/afs.c'
AFS_SETTOKEN_SRC = 'lib/afs_settoken.c'
-AVAHI_SRC = '' # TODO: fix
+AVAHI_SRC = 'lib/avahi.c smbd/avahi_register.c'
SERVER_MUTEX_SRC = 'lib/server_mutex.c'
@@ -715,7 +715,7 @@ SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
${PROFILE_SRC} ${PRINTBACKEND_SRC}
${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
${LIBMSRPC_SRC}
- ${LIBMSRPC_GEN_SRC} ${AVAHI_SRC} ${LIBADS_SRC}
+ ${LIBMSRPC_GEN_SRC} ${LIBADS_SRC}
${LIBADS_SERVER_SRC} ${REG_FULL_SRC}
${BUILDOPT_SRC}
${LIBNET_SRC} ${LIBSMBCONF_SRC}
@@ -851,6 +851,10 @@ bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
deps='talloc',
local_include=False)
+bld.SAMBA_SUBSYSTEM('AVAHI',
+ source=AVAHI_SRC,
+ enabled=bld.env.with_avahi)
+
bld.SAMBA_SUBSYSTEM('GROUPDB',
source=GROUPDB_SRC)
@@ -919,7 +923,7 @@ bld.SAMBA_BINARY('smbd/smbd',
source=SMBD_SRC,
deps='''tdb DYNCONFIG tevent dl krb5 ldap gssapi gssapi_krb5
NSS_WRAPPER LIBWBCLIENT crypt nsl cups cap resolv ZLIB PASSDB
- PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT''',
+ PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI''',
install_path='${SBINDIR}',
vars=locals())