From 88b74af1d83f5134ff959d9b3e24c85ff7378af9 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 23 Sep 2005 07:42:17 +0000 Subject: 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) --- source4/librpc/SConscript | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'source4/librpc') 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] -- cgit