summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-06-26 10:01:16 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-06-26 04:12:33 +0000
commit88bb8fe43ad30247a78d088fad9c840a7a63bd97 (patch)
tree84425fdd9c6b4b2c4c95d3157226f9a785e2c969 /librpc
parent6f9176e649661c458d82226e8fcef550ff870291 (diff)
downloadsamba-88bb8fe43ad30247a78d088fad9c840a7a63bd97.tar.gz
librpc: Do not generate extra unused client or python bindings with PIDL
This sorts out the idl list into the parts that actually need --python and --client specified and so speeds up the compile and clarifies the code behaviour. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/wscript_build101
1 files changed, 69 insertions, 32 deletions
diff --git a/librpc/idl/wscript_build b/librpc/idl/wscript_build
index d443a8edd52..2f1eacc4911 100644
--- a/librpc/idl/wscript_build
+++ b/librpc/idl/wscript_build
@@ -1,20 +1,17 @@
#!/usr/bin/env python
bld.SAMBA_PIDL_LIST('PIDL',
- '''atsvc.idl auth.idl drsuapi.idl epmapper.idl initshutdown.idl
- misc.idl ntlmssp.idl negoex.idl schannel.idl trkwks.idl
- audiosrv.idl dfsblobs.idl dsbackup.idl eventlog.idl file_id.idl keysvc.idl
- msgsvc.idl ntsvcs.idl remact.idl security.idl smb_acl.idl unixinfo.idl wzcsvc.idl
- browser.idl dfs.idl dssetup.idl frsapi.idl krb5pac.idl
- named_pipe_auth.idl orpc.idl rot.idl spoolss.idl w32time.idl
- dnsserver.idl echo.idl frsrpc.idl lsa.idl nbt.idl dns.idl
- oxidresolver.idl samr.idl server_id.idl srvsvc.idl winreg.idl dcerpc.idl
- drsblobs.idl efs.idl frstrans.idl mgmt.idl netlogon.idl
- notify.idl
- smb2_lease_struct.idl
- policyagent.idl scerpc.idl svcctl.idl wkssvc.idl eventlog6.idl backupkey.idl
- fsrvp.idl bkupblobs.idl fscc.idl witness.idl clusapi.idl
- mdssvc.idl winspool.idl''',
+ '''atsvc.idl drsuapi.idl epmapper.idl initshutdown.idl
+ eventlog.idl
+ ntsvcs.idl remact.idl unixinfo.idl
+ browser.idl dfs.idl dssetup.idl frsapi.idl
+ rot.idl spoolss.idl w32time.idl
+ dnsserver.idl echo.idl frsrpc.idl lsa.idl
+ oxidresolver.idl samr.idl srvsvc.idl winreg.idl
+ mgmt.idl netlogon.idl
+ svcctl.idl wkssvc.idl eventlog6.idl backupkey.idl
+ fsrvp.idl witness.idl clusapi.idl
+ winspool.idl''',
options='--header --ndr-parser --samba3-ndr-server --server --client --python',
output_dir='../gen_ndr')
@@ -23,34 +20,78 @@ bld.SAMBA_PIDL_LIST('PIDL',
options='--header --ndr-parser --server --client --dcom-proxy --com-header',
output_dir='../gen_ndr')
-bld.SAMBA_PIDL_LIST('PIDL',
- 'idmap.idl messaging.idl xattr.idl',
- options='--header --ndr-parser --client --python',
- output_dir='../gen_ndr')
+# DCE/RPC protocols which Samba does not implement a client or server
+# for
bld.SAMBA_PIDL_LIST('PIDL',
- 'preg.idl',
- options='--header --ndr-parser --client --python',
+ '''
+ audiosrv.idl
+ dsbackup.idl
+ efs.idl
+ frstrans.idl
+ keysvc.idl
+ mdssvc.idl
+ msgsvc.idl
+ orpc.idl
+ policyagent.idl
+ scerpc.idl
+ trkwks.idl
+ wzcsvc.idl
+ ''',
+ options='--header --ndr-parser',
output_dir='../gen_ndr')
+# Non-DCE/RPC protocols encoded in IDL for Samba or helper IDLs for
+# DCE/RPC protocols (eg defining constands or structures but not
+# functions)
bld.SAMBA_PIDL_LIST('PIDL',
'''
- rap.idl
- ntprinting.idl
- ioctl.idl
- printcap.idl
- fsrvp_state.idl
+ bkupblobs.idl
cab.idl
+ dbgidl.idl
+ file_id.idl
+ fscc.idl
+ fsrvp_state.idl
+ ioctl.idl
+ named_pipe_auth.idl
+ negoex.idl
nfs4acl.idl
+ notify.idl
+ ntprinting.idl
+ printcap.idl
quota.idl
- dbgidl.idl
+ rap.idl
+ schannel.idl
+ smb2_lease_struct.idl
''',
options='--header --ndr-parser',
output_dir='../gen_ndr')
+# Non-DCE/RPC protocls with Python bindings
+# (for structures or constants)
+
bld.SAMBA_PIDL_LIST('PIDL',
- 'dnsp.idl',
- options='--header --ndr-parser --client --python',
+ '''
+ auth.idl
+ dcerpc.idl
+ dfsblobs.idl
+ dns.idl
+ dnsp.idl
+ drsblobs.idl
+ idmap.idl
+ krb5pac.idl
+ messaging.idl
+ misc.idl
+ nbt.idl
+ ntlmssp.idl
+ preg.idl
+ security.idl
+ server_id.idl
+ smb_acl.idl
+ windows_event_ids.idl
+ xattr.idl
+ ''',
+ options='--header --ndr-parser --python --client',
output_dir='../gen_ndr')
bld.SAMBA_PIDL_LIST('PIDL',
@@ -58,7 +99,3 @@ bld.SAMBA_PIDL_LIST('PIDL',
options='--header --ndr-parser --samba3-ndr-server --client --python',
output_dir='../gen_ndr')
-bld.SAMBA_PIDL_LIST('PIDL',
- source='windows_event_ids.idl',
- options='--header --python --ndr-parser --client',
- output_dir='../gen_ndr')