r10446: Add ndr_base and rpc_base sources to proto.h
authorTim Potter <tpot@samba.org>
Fri, 23 Sep 2005 07:42:17 +0000 (07:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:46 +0000 (13:38 -0500)
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

index cf0d58245fd98586f000b003dd051ac839b9e34c..43f951a1cf8449808c5dff3c1b3c28d9263ad0fc 100644 (file)
@@ -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]