summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-12 17:19:24 +0200
committerGünther Deschner <gd@samba.org>2010-08-25 22:55:16 +0200
commit72f30e82e406ae3690c0d324b844fc6b3a4c02c4 (patch)
tree07ed9ff7fa59d364023ff53742344f3d6eb5a860 /source3
parente978a3d3f4974753f09fbafdd0cf3ad15209911f (diff)
downloadsamba-72f30e82e406ae3690c0d324b844fc6b3a4c02c4.tar.gz
samba-72f30e82e406ae3690c0d324b844fc6b3a4c02c4.tar.bz2
samba-72f30e82e406ae3690c0d324b844fc6b3a4c02c4.zip
s3-waf: only link in spoolss client code where needed.
Shrinks a lot of binaries by 1 MB each. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript_build13
1 files changed, 8 insertions, 5 deletions
diff --git a/source3/wscript_build b/source3/wscript_build
index 528b124af6..c920f4953e 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -69,6 +69,12 @@ LIBNDR_SPOOLSS_SRC = '''../librpc/gen_ndr/ndr_spoolss.c
LIBNDR_XATTR_SRC = '''../librpc/gen_ndr/ndr_xattr.c
../librpc/ndr/ndr_xattr.c'''
+LIBCLI_SPOOLSS_SRC = '''
+ librpc/gen_ndr/cli_spoolss.c
+ librpc/gen_ndr/ndr_spoolss_c.c
+ rpc_client/cli_spoolss.c
+ rpc_client/init_spoolss.c'''
+
LIBNDR_GEN_SRC = '''../librpc/gen_ndr/ndr_wkssvc.c
${LIBNDR_GEN_SRC0}
../librpc/gen_ndr/ndr_dfs.c
@@ -288,8 +294,6 @@ RPC_CLIENT_SRC1 = '''rpc_client/cli_netlogon.c
LIBMSRPC_SRC = '''rpc_client/cli_lsarpc.c rpc_client/cli_samr.c
${RPC_CLIENT_SRC1}
${RPC_CLIENT_SRC}
- rpc_client/cli_spoolss.c
- rpc_client/init_spoolss.c
rpc_client/init_samr.c
../librpc/rpc/binding.c'''
@@ -308,8 +312,7 @@ DCERPC_CLIENT_GEN_SRC = '''
../librpc/gen_ndr/ndr_dssetup_c.c
../librpc/gen_ndr/ndr_ntsvcs_c.c
../librpc/gen_ndr/ndr_epmapper_c.c
- ../librpc/gen_ndr/ndr_drsuapi_c.c
- ../librpc/gen_ndr/ndr_spoolss_c.c'''
+ ../librpc/gen_ndr/ndr_drsuapi_c.c'''
LIBMSRPC_GEN_SRC = '''../librpc/gen_ndr/cli_lsa.c
../librpc/gen_ndr/cli_dfs.c
@@ -326,7 +329,6 @@ LIBMSRPC_GEN_SRC = '''../librpc/gen_ndr/cli_lsa.c
../librpc/gen_ndr/cli_ntsvcs.c
../librpc/gen_ndr/cli_epmapper.c
../librpc/gen_ndr/cli_drsuapi.c
- ../librpc/gen_ndr/cli_spoolss.c
${DCERPC_CLIENT_GEN_SRC}
../librpc/rpc/dcerpc_util.c
librpc/rpc/dcerpc_helpers.c
@@ -766,6 +768,7 @@ SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
${RPC_SVCCTL_SRC} ${RPC_NTSVCS_SRC} ${RPC_DFS_SRC}
${RPC_SPOOLSS_SRC} ${RPC_EVENTLOG_SRC}
${RPC_ECHO_SRC}
+ ${LIBCLI_SPOOLSS_SRC}
${AUTH_SRC}
${PRIVILEGES_BASIC_SRC}'''