Inside _talloc_realloc(), keep track of size changes over malloc/realloc/free.
[Samba.git] / source4 / librpc / wscript_build
blobc53acef44d8cf0397e3230076d0b19624570318c
1 #!/usr/bin/env python
3 bld.RECURSE('../../librpc/idl')
4 bld.RECURSE('../../librpc/tools')
5 bld.RECURSE('idl')
8 bld.SAMBA_SUBSYSTEM('NDR_WINSTATION',
9 source='gen_ndr/ndr_winstation.c',
10 public_deps='ndr'
14 bld.SAMBA_SUBSYSTEM('NDR_IRPC',
15 source='gen_ndr/ndr_irpc.c',
16 public_deps='ndr NDR_SECURITY ndr_nbt'
20 bld.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
21 source='gen_ndr/ndr_sasl_helpers.c',
22 public_deps='ndr'
27 bld.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
28 source='gen_ndr/ndr_nfs4acl.c',
29 public_deps='ndr NDR_SECURITY'
34 bld.SAMBA_SUBSYSTEM('NDR_WINSIF',
35 source='gen_ndr/ndr_winsif.c',
36 public_deps='ndr'
40 bld.SAMBA_SUBSYSTEM('NDR_OPENDB',
41 source='gen_ndr/ndr_opendb.c',
42 public_deps='ndr'
46 bld.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
47 source='gen_ndr/ndr_ntp_signd.c',
48 public_deps='ndr'
52 bld.SAMBA_SUBSYSTEM('NDR_WINSREPL',
53 source='gen_ndr/ndr_winsrepl.c',
54 public_deps='ndr ndr_nbt'
58 bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
59 source='gen_ndr/ndr_winbind.c',
60 public_deps='NDR_IDMAP ndr ndr-standard'
63 # create a grouping library to consolidate our samba4 specific NDR code
64 bld.SAMBA_LIBRARY('ndr-samba4',
65 source=[],
66 deps='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB ndr-table',
67 private_library=True,
68 grouping_library=True
71 # a grouping library for RPC_NDR subsystems that may be used by more than one target
72 bld.SAMBA_LIBRARY('dcerpc-samba4',
73 source=[],
74 deps='RPC_NDR_WINBIND',
75 private_library=True,
76 grouping_library=True
80 bld.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
82 bld.SAMBA_SUBSYSTEM('ndr-table',
83 source='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
84 public_deps='''ndr-standard NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
85 NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
86 NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
87 NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
88 NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC ndr-krb5pac
89 NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS ndr_nbt NDR_WINSREPL
90 NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB
91 NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI
92 NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI
93 NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP
94 NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_WBINT''',
95 depends_on='GEN_NDR_TABLES'
99 bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
100 source='gen_ndr/ndr_irpc_c.c',
101 public_deps='dcerpc NDR_IRPC'
104 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
105 source='gen_ndr/ndr_winbind_c.c',
106 public_deps='dcerpc NDR_WINBIND'
110 bld.SAMBA_LIBRARY('dcerpc-samr',
111 source='',
112 pc_files='dcerpc_samr.pc',
113 vnum='0.0.1',
114 public_deps='dcerpc ndr-standard RPC_NDR_SAMR',
115 public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
116 header_path='gen_ndr'
120 bld.SAMBA_LIBRARY('dcerpc-atsvc',
121 source='',
122 pc_files='dcerpc_atsvc.pc',
123 vnum='0.0.1',
124 public_deps='dcerpc ndr-standard RPC_NDR_ATSVC',
125 public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
126 header_path='gen_ndr'
130 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
131 source='gen_ndr/ndr_winsif_c.c',
132 public_deps='dcerpc NDR_WINSIF'
136 bld.SAMBA_LIBRARY('dcerpc',
137 source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
138 rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
139 rpc/dcerpc_connect.c rpc/dcerpc_secondary.c''',
140 pc_files='dcerpc.pc',
141 deps='samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 ndr NDR_DCERPC RPC_NDR_EPMAPPER NDR_SCHANNEL RPC_NDR_NETLOGON RPC_NDR_MGMT gensec LIBCLI_AUTH smbclient-raw LP_RESOLVE tevent-util dcerpc-binding param_options',
142 autoproto='rpc/dcerpc_proto.h',
143 public_deps='samba-credentials tevent talloc',
144 public_headers='''rpc/dcerpc.h ../../librpc/gen_ndr/mgmt.h
145 ../../librpc/gen_ndr/ndr_mgmt.h ../../librpc/gen_ndr/ndr_mgmt_c.h
146 ../../librpc/gen_ndr/epmapper.h ../../librpc/gen_ndr/ndr_epmapper.h
147 ../../librpc/gen_ndr/ndr_epmapper_c.h''',
148 # It's very important to keep this form of construction
149 # it force the sambawaf extension to put everything that match the first element
150 # (*gen_ndr*) into the dir named by the second element (gen_ndr).
151 # If we just put header_path = 'gen_ndr' then all the public_headers will go
152 # in 'gen_ndr' and for dcerpc.h (at least) it will cause a problem as
153 # we have already a dcerpc.h installed by librpc/wscript_build
154 # and one will overright the other which is not what we expect.
155 header_path=[ ('*gen_ndr*', 'gen_ndr') ],
156 vnum='0.0.1'
159 bld.SAMBA_SUBSYSTEM('pyrpc_util',
160 source='rpc/pyrpc_util.c',
161 public_deps='pytalloc-util pyparam_util dcerpc MESSAGING',
162 pyext=True,
166 bld.SAMBA_PYTHON('python_dcerpc',
167 source='rpc/pyrpc.c',
168 public_deps='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG pyrpc_util gensec',
169 realname='samba/dcerpc/base.so'
172 bld.SAMBA_PYTHON('python_srvsvc',
173 source='../../librpc/gen_ndr/py_srvsvc.c',
174 deps='RPC_NDR_SRVSVC pytalloc-util pyrpc_util',
175 realname='samba/dcerpc/srvsvc.so'
178 bld.SAMBA_PYTHON('python_echo',
179 source='../../librpc/gen_ndr/py_echo.c',
180 deps='RPC_NDR_ECHO pytalloc-util pyrpc_util',
181 realname='samba/dcerpc/echo.so'
184 bld.SAMBA_PYTHON('python_dns',
185 source='../../librpc/gen_ndr/py_dns.c',
186 deps='RPC_NDR_DNS pytalloc-util pyrpc_util',
187 realname='samba/dcerpc/dns.so'
190 bld.SAMBA_PYTHON('python_auth',
191 source='../../librpc/gen_ndr/py_auth.c',
192 deps='NDR_AUTH pytalloc-util pyrpc_util',
193 realname='samba/dcerpc/auth.so'
196 bld.SAMBA_PYTHON('python_krb5pac',
197 source='../../librpc/gen_ndr/py_krb5pac.c',
198 deps='ndr-krb5pac pytalloc-util pyrpc_util',
199 realname='samba/dcerpc/krb5pac.so'
202 bld.SAMBA_PYTHON('python_winreg',
203 source='../../librpc/gen_ndr/py_winreg.c',
204 deps='RPC_NDR_WINREG pytalloc-util pyrpc_util',
205 realname='samba/dcerpc/winreg.so'
209 bld.SAMBA_PYTHON('python_dcerpc_misc',
210 source='../../librpc/gen_ndr/py_misc.c',
211 deps='pytalloc-util pyrpc_util ndr-krb5pac',
212 realname='samba/dcerpc/misc.so'
216 bld.SAMBA_PYTHON('python_initshutdown',
217 source='../../librpc/gen_ndr/py_initshutdown.c',
218 deps='RPC_NDR_INITSHUTDOWN pytalloc-util pyrpc_util',
219 realname='samba/dcerpc/initshutdown.so'
223 bld.SAMBA_PYTHON('python_epmapper',
224 source='../../librpc/gen_ndr/py_epmapper.c',
225 deps='dcerpc pytalloc-util pyrpc_util',
226 realname='samba/dcerpc/epmapper.so'
230 bld.SAMBA_PYTHON('python_mgmt',
231 source='../../librpc/gen_ndr/py_mgmt.c',
232 deps='pytalloc-util dcerpc pyrpc_util',
233 realname='samba/dcerpc/mgmt.so'
237 bld.SAMBA_PYTHON('python_atsvc',
238 source='../../librpc/gen_ndr/py_atsvc.c',
239 deps='dcerpc-atsvc pytalloc-util pyrpc_util',
240 realname='samba/dcerpc/atsvc.so'
244 bld.SAMBA_PYTHON('python_dcerpc_nbt',
245 source='../../librpc/gen_ndr/py_nbt.c',
246 deps='ndr_nbt RPC_NDR_NBT pytalloc-util pyrpc_util',
247 realname='samba/dcerpc/nbt.so'
251 bld.SAMBA_PYTHON('python_samr',
252 source='../../librpc/gen_ndr/py_samr.c',
253 deps='dcerpc-samr pytalloc-util pyrpc_util',
254 realname='samba/dcerpc/samr.so'
258 bld.SAMBA_PYTHON('python_svcctl',
259 source='../../librpc/gen_ndr/py_svcctl.c',
260 deps='RPC_NDR_SVCCTL pytalloc-util pyrpc_util',
261 realname='samba/dcerpc/svcctl.so'
265 bld.SAMBA_PYTHON('python_lsa',
266 source='../../librpc/gen_ndr/py_lsa.c',
267 deps='RPC_NDR_LSA pytalloc-util pyrpc_util',
268 realname='samba/dcerpc/lsa.so'
272 bld.SAMBA_PYTHON('python_wkssvc',
273 source='../../librpc/gen_ndr/py_wkssvc.c',
274 deps='RPC_NDR_WKSSVC pytalloc-util pyrpc_util',
275 realname='samba/dcerpc/wkssvc.so'
279 bld.SAMBA_PYTHON('python_dfs',
280 source='../../librpc/gen_ndr/py_dfs.c',
281 deps='RPC_NDR_DFS pytalloc-util pyrpc_util',
282 realname='samba/dcerpc/dfs.so'
286 bld.SAMBA_PYTHON('python_unixinfo',
287 source='../../librpc/gen_ndr/py_unixinfo.c',
288 deps='RPC_NDR_UNIXINFO pytalloc-util pyrpc_util',
289 realname='samba/dcerpc/unixinfo.so'
293 bld.SAMBA_PYTHON('python_irpc',
294 source='gen_ndr/py_irpc.c',
295 deps='RPC_NDR_IRPC pytalloc-util pyrpc_util',
296 realname='samba/dcerpc/irpc.so'
299 bld.SAMBA_PYTHON('python_server_id',
300 source='../../librpc/gen_ndr/py_server_id.c',
301 deps='RPC_NDR_SERVER_ID pytalloc-util pyrpc_util',
302 realname='samba/dcerpc/server_id.so'
305 bld.SAMBA_PYTHON('python_winbind',
306 source='gen_ndr/py_winbind.c',
307 deps='RPC_NDR_WINBIND pytalloc-util pyrpc_util python_netlogon',
308 realname='samba/dcerpc/winbind.so'
311 bld.SAMBA_PYTHON('python_idmap',
312 source='../../librpc/gen_ndr/py_idmap.c',
313 deps='NDR_IDMAP pytalloc-util pyrpc_util',
314 realname='samba/dcerpc/idmap.so'
318 bld.SAMBA_PYTHON('python_drsuapi',
319 source='../../librpc/gen_ndr/py_drsuapi.c',
320 deps='RPC_NDR_DRSUAPI pytalloc-util pyrpc_util',
321 realname='samba/dcerpc/drsuapi.so'
324 bld.SAMBA_PYTHON('python_dcerpc_security',
325 source='../../librpc/gen_ndr/py_security.c',
326 deps='pytalloc-util pyrpc_util NDR_SECURITY',
327 realname='samba/dcerpc/security.so'
330 bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
331 source='../../librpc/gen_ndr/py_drsblobs.c',
332 deps='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
333 realname='samba/dcerpc/drsblobs.so'
336 bld.SAMBA_PYTHON('python_dcerpc_dnsp',
337 source='../../librpc/gen_ndr/py_dnsp.c',
338 deps='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DNSP',
339 realname='samba/dcerpc/dnsp.so'
343 bld.SAMBA_PYTHON('python_dcerpc_xattr',
344 source='../../librpc/gen_ndr/py_xattr.c',
345 deps='pytalloc-util pyrpc_util RPC_NDR_XATTR',
346 realname='samba/dcerpc/xattr.so'
349 bld.SAMBA_PYTHON('python_dcerpc_idmap',
350 source='../../librpc/gen_ndr/py_idmap.c',
351 deps='pytalloc-util pyrpc_util RPC_NDR_XATTR',
352 realname='samba/dcerpc/idmap.so'
355 bld.SAMBA_PYTHON('python_netlogon',
356 source='../../librpc/gen_ndr/py_netlogon.c',
357 deps='RPC_NDR_NETLOGON pytalloc-util pyrpc_util',
358 realname='samba/dcerpc/netlogon.so'
361 bld.SAMBA_PYTHON('python_dnsserver',
362 source='../../librpc/gen_ndr/py_dnsserver.c',
363 deps='RPC_NDR_DNSSERVER pytalloc-util pyrpc_util',
364 realname='samba/dcerpc/dnsserver.so'
367 bld.SAMBA_PYTHON('python_dcerpc_smb_acl',
368 source='../../librpc/gen_ndr/py_smb_acl.c',
369 deps='pytalloc-util pyrpc_util',
370 realname='samba/dcerpc/smb_acl.so'
373 bld.SAMBA_SCRIPT('python_dcerpc_init',
374 pattern='rpc/dcerpc.py',
375 installdir='python/samba/dcerpc',
376 installname='__init__.py')
378 bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')