summaryrefslogtreecommitdiffstats
path: root/source4/librpc
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-23 07:42:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:46 -0500
commit88b74af1d83f5134ff959d9b3e24c85ff7378af9 (patch)
treebb2e8fdf43bda24801c6371482724e47614f9081 /source4/librpc
parentdc56baecfb6ae3d3aa74085b12571356c7e1d2bf (diff)
downloadsamba-88b74af1d83f5134ff959d9b3e24c85ff7378af9.tar.gz
samba-88b74af1d83f5134ff959d9b3e24c85ff7378af9.tar.xz
samba-88b74af1d83f5134ff959d9b3e24c85ff7378af9.zip
r10446: Add ndr_base and rpc_base sources to proto.h
Generate NDR mashalling code for all idl files (why isn't this automatically by the scanner when it finds librpc/gen_ndr/{misc,dcerpc,orpc}.h in includes.h?) (This used to be commit 01eb22b9dac4f7d06c7e760ce5f1f4b4049e41c9)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/SConscript26
1 files changed, 16 insertions, 10 deletions
diff --git a/source4/librpc/SConscript b/source4/librpc/SConscript
index cf0d58245f..43f951a1cf 100644
--- a/source4/librpc/SConscript
+++ b/source4/librpc/SConscript
@@ -1,18 +1,24 @@
-Import('hostenv')
-hostenv.StaticLibrary('ndr_base',
- ['ndr/ndr.c','ndr/ndr_basic.c','ndr/ndr_string.c','ndr/ndr_obfuscate.c',
- 'ndr/ndr_misc.c'])
+Import('hostenv', 'proto_files')
+
+ndr_base_files = ['ndr/ndr.c', 'ndr/ndr_basic.c', 'ndr/ndr_string.c',
+ 'ndr/ndr_obfuscate.c', 'ndr/ndr_misc.c']
+
+hostenv.StaticLibrary('ndr_base', ndr_base_files)
+proto_files += [File(x) for x in ndr_base_files]
hostenv.StaticLibrary('ndr_compression',
['ndr/ndr_compression.c'])
-hostenv.StaticLibrary('rpc_base',
- [ 'rpc/dcerpc.c','rpc/dcerpc_auth.c','rpc/dcerpc_schannel.c',
- 'rpc/dcerpc_util.c','rpc/dcerpc_error.c','rpc/dcerpc_smb.c',
- 'rpc/dcerpc_sock.c'])
+rpc_base_files = ['rpc/dcerpc.c', 'rpc/dcerpc_auth.c', 'rpc/dcerpc_schannel.c',
+ 'rpc/dcerpc_util.c', 'rpc/dcerpc_error.c',
+ 'rpc/dcerpc_smb.c', 'rpc/dcerpc_sock.c']
+
+hostenv.StaticLibrary('rpc_base', rpc_base_files)
+proto_files += [File(x) for x in rpc_base_files]
-ndr_misc = hostenv.NdrMarshaller('idl/misc.idl')
-hostenv.StaticLibrary('ndr_misc', ndr_misc)
+from glob import glob
+for idl in glob('idl/*.idl'):
+ hostenv.NdrMarshaller(idl)
'''
[SUBSYSTEM::NDR_AUDIOSRV]