From bd5445ee4f663d18197dbb01078cc21342dd5045 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 15 Sep 2011 12:52:49 +0200 Subject: waf: restore libsmbclient handling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a temporary solution to get libsmbclient installed properly as a library (including symlinks and proper symbols). I was not able to make the old internal library name 'libsmb/smbclient' work together with "realname" and/or "link_name". Maybe one of the waf gurus has more ideas here. Guenther Autobuild-User: Günther Deschner Autobuild-Date: Thu Sep 15 15:31:59 CEST 2011 on sn-devel-104 --- source3/wscript_build | 6 +++--- source4/client/wscript_build | 13 ------------- source4/torture/libsmbclient/wscript_build | 2 +- source4/wscript_build | 12 ++++++++++++ wscript_build | 2 +- 5 files changed, 17 insertions(+), 18 deletions(-) delete mode 100644 source4/client/wscript_build create mode 100644 source4/wscript_build diff --git a/source3/wscript_build b/source3/wscript_build index bca1cdf8a3b..4bedbfe0321 100755 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -675,7 +675,7 @@ bld.SAMBA3_LIBRARY('netapi', vnum='0', vars=locals()) -bld.SAMBA3_LIBRARY('libsmb/smbclient', +bld.SAMBA3_LIBRARY('smbclient', source=LIBSMBCLIENT_SRC, public_deps='''talloc tdb_compat wbclient cap param smbd_shim libsmb KRBCLIENT pdb SMBLDAP LIBMSRPC_GEN msrpc3 libcli_lsa3 RPC_NDR_SRVSVC popt_samba3''', @@ -1175,7 +1175,7 @@ bld.SAMBA3_BINARY('client/smbclient' + bld.env.suffix3, source=CLIENT_SRC, deps='''talloc tdb_compat cap popt_samba3 pdb libsmb smbd_shim param wbclient param KRBCLIENT LIBMSRPC_GEN - msrpc3 SMBREADLINE libsmb/smbclient RPC_NDR_SRVSVC INIT_LSA + msrpc3 SMBREADLINE smbclient RPC_NDR_SRVSVC INIT_LSA cli_smb_common''', vars=locals()) @@ -1252,7 +1252,7 @@ bld.SAMBA3_BINARY('pdbedit', bld.SAMBA3_BINARY('smbget', source=SMBGET_SRC, - deps='''talloc tdb_compat libsmb/smbclient popt_samba3''', + deps='''talloc tdb_compat smbclient popt_samba3''', vars=locals()) bld.SAMBA3_BINARY('nmblookup' + bld.env.suffix3, diff --git a/source4/client/wscript_build b/source4/client/wscript_build deleted file mode 100644 index d1622b3d1d0..00000000000 --- a/source4/client/wscript_build +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python - -bld.SAMBA_BINARY('smbclient', - source='client.c', - deps='samba-hostconfig SMBREADLINE samba-util LIBCLI_SMB RPC_NDR_SRVSVC LIBCLI_LSA popt POPT_SAMBA POPT_CREDENTIALS smbclient-raw' - ) - - -bld.SAMBA_BINARY('cifsdd', - source='cifsdd.c cifsddio.c', - deps='samba-hostconfig LIBCLI_SMB popt POPT_SAMBA POPT_CREDENTIALS' - ) - diff --git a/source4/torture/libsmbclient/wscript_build b/source4/torture/libsmbclient/wscript_build index 8b2c516dbfc..40c7932a208 100644 --- a/source4/torture/libsmbclient/wscript_build +++ b/source4/torture/libsmbclient/wscript_build @@ -6,7 +6,7 @@ bld.SAMBA_MODULE('TORTURE_LIBSMBCLIENT', autoproto='proto.h', subsystem='smbtorture', init_function='torture_libsmbclient_init', - deps='POPT_CREDENTIALS libsmb/smbclient', + deps='POPT_CREDENTIALS smbclient', internal_module=True ) diff --git a/source4/wscript_build b/source4/wscript_build new file mode 100644 index 00000000000..06b9e487e3d --- /dev/null +++ b/source4/wscript_build @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +bld.SAMBA_BINARY('client/smbclient', + source='client/client.c', + deps='samba-hostconfig SMBREADLINE samba-util LIBCLI_SMB RPC_NDR_SRVSVC LIBCLI_LSA popt POPT_SAMBA POPT_CREDENTIALS smbclient-raw' + ) + + +bld.SAMBA_BINARY('client/cifsdd', + source='client/cifsdd.c client/cifsddio.c', + deps='samba-hostconfig LIBCLI_SMB popt POPT_SAMBA POPT_CREDENTIALS' + ) diff --git a/wscript_build b/wscript_build index 1b6fb31e412..4f618202244 100644 --- a/wscript_build +++ b/wscript_build @@ -90,7 +90,7 @@ bld.RECURSE('source4/ntvfs') bld.RECURSE('source4/ntptr') bld.RECURSE('source4/torture') bld.RECURSE('librpc') -bld.RECURSE('source4/client') +bld.RECURSE('source4') bld.RECURSE('source4/libcli') bld.RECURSE('libcli/smb') bld.RECURSE('libcli/util') -- cgit