summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-04-16 17:05:35 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-04-17 16:17:35 +0200
commite3ffb31554927a24df35576bd753ee4eb2dc2a3c (patch)
tree122a612ed69d54a6befde02c6258881b8798cada /source3/libsmb
parentc09c288f7c239ec0d73091061d417e1562825c64 (diff)
downloadsamba-e3ffb31554927a24df35576bd753ee4eb2dc2a3c.tar.gz
samba-e3ffb31554927a24df35576bd753ee4eb2dc2a3c.tar.bz2
samba-e3ffb31554927a24df35576bd753ee4eb2dc2a3c.zip
s3-waf: Add possibility to build with system libsmbclient.
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/wscript40
1 files changed, 40 insertions, 0 deletions
diff --git a/source3/libsmb/wscript b/source3/libsmb/wscript
new file mode 100644
index 0000000000..6260945c11
--- /dev/null
+++ b/source3/libsmb/wscript
@@ -0,0 +1,40 @@
+#!/usr/bin/env python
+
+import Options, Logs
+
+def configure(conf):
+ if conf.CHECK_BUNDLED_SYSTEM_PKG('smbclient', minversion='0'):
+ conf.define('USING_SYSTEM_LIBSMBCLIENT', 1)
+
+def build(bld):
+ if bld.CONFIG_SET('USING_SYSTEM_LIBSMBCLIENT'):
+ Logs.info("\tSelected system libsmbclient build")
+ return
+
+ Logs.info("\tSelected embedded libsmbclient build")
+ bld.SAMBA3_LIBRARY('smbclient',
+ source='''
+ libsmb_cache.c
+ libsmb_compat.c
+ libsmb_context.c
+ libsmb_dir.c
+ libsmb_file.c
+ libsmb_misc.c
+ libsmb_path.c
+ libsmb_printjob.c
+ libsmb_server.c
+ libsmb_stat.c
+ libsmb_xattr.c
+ libsmb_setget.c''',
+ public_deps='''
+ talloc
+ param
+ libsmb
+ KRBCLIENT
+ msrpc3
+ libcli_lsa3''',
+ public_headers='../include/libsmbclient.h',
+ abi_directory='ABI',
+ abi_match='smbc_*',
+ vnum='0.1.0',
+ pc_files='smbclient.pc')