s3-waf: TLDAP is only needed by pdb_ads (and smbtorture).
[Samba.git] / librpc / wscript_build
blob287e5875dcd341a059d75529acfc7b56ac9aabc2
1 #!/usr/bin/env python
3 bld.RECURSE('idl')
4 bld.RECURSE('../lib/compression')
6 bld.SAMBA_SUBSYSTEM('NDR_AUDIOSRV',
7 source='gen_ndr/ndr_audiosrv.c',
8 public_deps='ndr'
11 bld.SAMBA_SUBSYSTEM('NDR_NAMED_PIPE_AUTH',
12 source='gen_ndr/ndr_named_pipe_auth.c',
13 public_deps='ndr'
16 bld.SAMBA_SUBSYSTEM('NDR_DNSSERVER',
17 source='gen_ndr/ndr_dnsserver.c',
18 public_deps='ndr'
21 bld.SAMBA_SUBSYSTEM('NDR_DNS',
22 source='gen_ndr/ndr_dns.c ndr/ndr_dns.c',
23 public_deps='ndr'
26 bld.SAMBA_SUBSYSTEM('NDR_DSBACKUP',
27 source='gen_ndr/ndr_dsbackup.c',
28 public_deps='ndr'
31 bld.SAMBA_SUBSYSTEM('NDR_DFS',
32 source='gen_ndr/ndr_dfs.c',
33 public_deps='ndr'
36 bld.SAMBA_SUBSYSTEM('NDR_WINREG',
37 source='gen_ndr/ndr_winreg.c',
38 public_deps='ndr NDR_SECURITY NDR_LSA'
41 bld.SAMBA_SUBSYSTEM('NDR_EFS',
42 source='gen_ndr/ndr_efs.c',
43 public_deps='ndr NDR_SECURITY'
46 bld.SAMBA_SUBSYSTEM('NDR_ROT',
47 source='gen_ndr/ndr_rot.c',
48 public_deps='ndr NDR_ORPC'
51 bld.SAMBA_SUBSYSTEM('NDR_FRSRPC',
52 source='ndr/ndr_frsrpc.c gen_ndr/ndr_frsrpc.c',
53 public_deps='ndr'
56 bld.SAMBA_SUBSYSTEM('NDR_FRSAPI',
57 source='gen_ndr/ndr_frsapi.c',
58 public_deps='ndr'
61 bld.SAMBA_SUBSYSTEM('NDR_FRSTRANS',
62 source='gen_ndr/ndr_frstrans.c',
63 public_deps='ndr'
66 bld.SAMBA_SUBSYSTEM('NDR_DFSBLOBS',
67 source='gen_ndr/ndr_dfsblobs.c',
68 public_deps='ndr'
71 bld.SAMBA_SUBSYSTEM('NDR_POLICYAGENT',
72 source='gen_ndr/ndr_policyagent.c',
73 public_deps='ndr'
76 bld.SAMBA_SUBSYSTEM('NDR_UNIXINFO',
77 source='gen_ndr/ndr_unixinfo.c',
78 public_deps='ndr NDR_SECURITY'
81 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS',
82 source='gen_ndr/ndr_spoolss.c',
83 public_deps='ndr NDR_SPOOLSS_BUF NDR_SECURITY'
86 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF',
87 source='ndr/ndr_spoolss_buf.c',
88 deps='talloc'
91 bld.SAMBA_SUBSYSTEM('NDR_EPMAPPER',
92 source='gen_ndr/ndr_epmapper.c',
93 public_deps='ndr'
96 bld.SAMBA_SUBSYSTEM('NDR_DBGIDL',
97 source='gen_ndr/ndr_dbgidl.c',
98 public_deps='ndr'
101 bld.SAMBA_SUBSYSTEM('NDR_DSSETUP',
102 source='gen_ndr/ndr_dssetup.c',
103 public_deps='ndr'
106 bld.SAMBA_SUBSYSTEM('NDR_MSGSVC',
107 source='gen_ndr/ndr_msgsvc.c',
108 public_deps='ndr'
111 bld.SAMBA_SUBSYSTEM('NDR_MGMT',
112 source='gen_ndr/ndr_mgmt.c',
113 public_deps='ndr'
116 bld.SAMBA_SUBSYSTEM('NDR_ORPC',
117 source='ndr/ndr_orpc.c gen_ndr/ndr_orpc.c',
118 public_deps='ndr'
121 bld.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
122 source='gen_ndr/ndr_oxidresolver.c',
123 public_deps='ndr NDR_ORPC'
126 bld.SAMBA_SUBSYSTEM('NDR_REMACT',
127 source='gen_ndr/ndr_remact.c',
128 public_deps='ndr NDR_ORPC'
131 bld.SAMBA_SUBSYSTEM('NDR_DCOM',
132 source='gen_ndr/ndr_dcom.c',
133 public_deps='ndr NDR_SECURITY NDR_ORPC'
136 bld.SAMBA_SUBSYSTEM('NDR_WMI',
137 source='ndr/ndr_wmi.c gen_ndr/ndr_wmi.c',
138 public_deps='ndr NDR_SECURITY NDR_DCOM'
141 bld.SAMBA_SUBSYSTEM('NDR_WZCSVC',
142 source='gen_ndr/ndr_wzcsvc.c',
143 public_deps='ndr'
146 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
147 source='gen_ndr/ndr_browser.c',
148 public_deps='ndr'
151 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
152 source='gen_ndr/ndr_w32time.c',
153 public_deps='ndr'
156 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
157 source='gen_ndr/ndr_scerpc.c',
158 public_deps='ndr'
161 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
162 source='gen_ndr/ndr_trkwks.c',
163 public_deps='ndr'
166 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
167 source='gen_ndr/ndr_keysvc.c',
168 public_deps='ndr'
171 bld.SAMBA_SUBSYSTEM('NDR_RAP',
172 source='gen_ndr/ndr_rap.c ndr/ndr_rap.c',
173 public_deps='ndr'
176 bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
177 source='gen_ndr/ndr_idmap.c',
178 public_deps='ndr ndr-standard'
181 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
182 source='ndr/ndr_ntlmssp.c gen_ndr/ndr_ntlmssp.c',
183 public_deps='ndr ndr-standard'
186 bld.SAMBA_SUBSYSTEM('NDR_DNSP',
187 source='gen_ndr/ndr_dnsp.c ndr/ndr_dnsp.c',
188 public_deps='ndr'
191 bld.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
192 source='gen_ndr/ndr_ntprinting.c ndr/ndr_ntprinting.c',
193 public_deps='ndr'
196 bld.SAMBA_SUBSYSTEM('NDR_SAMR',
197 source='gen_ndr/ndr_samr.c',
198 public_deps='ndr NDR_SECURITY NDR_LSA'
201 bld.SAMBA_SUBSYSTEM('NDR_LSA',
202 source='gen_ndr/ndr_lsa.c',
203 public_deps='ndr NDR_SECURITY'
206 bld.SAMBA_SUBSYSTEM('NDR_SVCCTL',
207 source='gen_ndr/ndr_svcctl.c ndr/ndr_svcctl.c',
208 public_deps='ndr NDR_SECURITY'
211 bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
212 source='gen_ndr/ndr_srvsvc.c',
213 public_deps='ndr NDR_SECURITY NDR_SVCCTL'
216 bld.SAMBA_SUBSYSTEM('NDR_NETLOGON',
217 source='gen_ndr/ndr_netlogon.c ndr/ndr_netlogon.c',
218 public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR NDR_NBT'
221 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
222 source='gen_ndr/ndr_eventlog.c',
223 public_deps='ndr NDR_SECURITY NDR_LSA'
226 bld.SAMBA_SUBSYSTEM('NDR_NTSVCS',
227 source='gen_ndr/ndr_ntsvcs.c',
228 public_deps='ndr'
231 bld.SAMBA_SUBSYSTEM('NDR_WKSSVC',
232 source='gen_ndr/ndr_wkssvc.c',
233 public_deps='ndr NDR_SECURITY'
236 bld.SAMBA_SUBSYSTEM('NDR_ECHO',
237 source='gen_ndr/ndr_echo.c',
238 public_deps='ndr'
241 bld.SAMBA_SUBSYSTEM('NDR_INITSHUTDOWN',
242 source='gen_ndr/ndr_initshutdown.c',
243 public_deps='ndr NDR_LSA'
246 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
247 source='ndr/ndr_compression.c',
248 public_deps='errors ndr',
249 deps='z LZXPRESS'
252 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
253 source='ndr/ndr_drsuapi.c gen_ndr/ndr_drsuapi.c',
254 public_deps='ndr NDR_COMPRESSION NDR_SECURITY ndr-standard ASN1_UTIL'
257 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
258 source='ndr/ndr_drsblobs.c gen_ndr/ndr_drsblobs.c',
259 public_deps='ndr NDR_DRSUAPI'
262 bld.SAMBA_SUBSYSTEM('NDR_KRB5PAC',
263 source='ndr/ndr_krb5pac.c gen_ndr/ndr_krb5pac.c',
264 public_deps='ndr ndr-standard NDR_SECURITY',
265 public_headers='gen_ndr/krb5pac.h',
266 header_path='gen_ndr'
270 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
271 source='ndr/ndr_xattr.c gen_ndr/ndr_xattr.c',
272 public_deps='ndr NDR_SECURITY'
275 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
276 source='ndr/ndr_schannel.c gen_ndr/ndr_schannel.c',
277 public_deps='ndr NDR_NBT'
280 bld.SAMBA_SUBSYSTEM('NDR_NBT',
281 source='gen_ndr/ndr_nbt.c',
282 public_deps='ndr NDR_NBT_BUF NDR_SECURITY ndr-standard LIBCLI_NDR_NETLOGON',
283 public_headers='gen_ndr/nbt.h',
284 header_path='gen_ndr'
287 bld.SAMBA_SUBSYSTEM('NDR_BACKUPKEY',
288 source='ndr/ndr_backupkey.c gen_ndr/ndr_backupkey.c',
289 public_deps='ndr'
292 bld.SAMBA_SUBSYSTEM('NDR_PREG',
293 source='gen_ndr/ndr_preg.c ndr/ndr_preg.c',
294 public_deps='ndr'
297 bld.SAMBA_SUBSYSTEM('NDR_FILE_ID',
298 source='gen_ndr/ndr_file_id.c',
299 public_deps='ndr'
302 bld.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
303 source='gen_ndr/ndr_xattr_c.c',
304 public_deps='NDR_XATTR dcerpc'
307 bld.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
308 source='gen_ndr/ndr_rot_c.c',
309 public_deps='NDR_ROT dcerpc'
312 bld.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
313 source='gen_ndr/ndr_audiosrv_c.c',
314 public_deps='NDR_AUDIOSRV dcerpc'
317 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
318 source='gen_ndr/ndr_echo_c.c',
319 public_deps='dcerpc NDR_ECHO'
322 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
323 source='gen_ndr/ndr_dsbackup_c.c',
324 public_deps='dcerpc NDR_DSBACKUP'
327 bld.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
328 source='gen_ndr/ndr_efs_c.c',
329 public_deps='dcerpc NDR_EFS'
332 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
333 source='gen_ndr/ndr_lsa_c.c',
334 public_deps='dcerpc ndr-standard'
337 bld.SAMBA_SUBSYSTEM('RPC_NDR_SAMR',
338 source='gen_ndr/ndr_samr_c.c',
339 public_deps='dcerpc NDR_SAMR'
342 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
343 source='gen_ndr/ndr_dfs_c.c',
344 public_deps='dcerpc ndr-standard'
347 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
348 source='gen_ndr/ndr_frsapi_c.c',
349 public_deps='dcerpc NDR_FRSAPI'
352 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
353 source='gen_ndr/ndr_drsuapi_c.c',
354 public_deps='dcerpc NDR_DRSUAPI'
357 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSBLOBS',
358 source='gen_ndr/ndr_drsblobs_c.c',
359 public_deps='dcerpc NDR_DRSBLOBS'
362 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
363 source='gen_ndr/ndr_policyagent_c.c',
364 public_deps='dcerpc NDR_POLICYAGENT'
367 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
368 source='gen_ndr/ndr_unixinfo_c.c',
369 public_deps='dcerpc NDR_UNIXINFO'
372 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
373 source='gen_ndr/ndr_browser_c.c',
374 public_deps='dcerpc NDR_BROWSER'
377 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
378 source='gen_ndr/ndr_spoolss_c.c',
379 public_deps='dcerpc NDR_SPOOLSS'
382 bld.SAMBA_SUBSYSTEM('RPC_NDR_NBT',
383 source='gen_ndr/ndr_nbt_c.c',
384 public_deps='dcerpc NDR_NBT'
387 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
388 source='gen_ndr/ndr_wkssvc_c.c',
389 public_deps='dcerpc ndr-standard'
392 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
393 source='gen_ndr/ndr_srvsvc_c.c',
394 public_deps='dcerpc NDR_SRVSVC'
397 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
398 source='gen_ndr/ndr_svcctl_c.c',
399 public_deps='dcerpc ndr-standard',
400 public_headers='gen_ndr/ndr_svcctl_c.h',
401 header_path='gen_ndr'
404 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
405 source='gen_ndr/ndr_eventlog_c.c',
406 public_deps='dcerpc ndr-standard'
409 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
410 source='gen_ndr/ndr_epmapper_c.c',
411 public_deps='tevent NDR_EPMAPPER'
414 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
415 source='gen_ndr/ndr_dbgidl_c.c',
416 public_deps='dcerpc NDR_DBGIDL'
419 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
420 source='gen_ndr/ndr_dssetup_c.c',
421 public_deps='dcerpc NDR_DSSETUP'
424 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
425 source='gen_ndr/ndr_msgsvc_c.c',
426 public_deps='dcerpc NDR_MSGSVC'
429 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
430 source='gen_ndr/ndr_winreg_c.c',
431 public_deps='dcerpc ndr-standard'
434 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
435 source='gen_ndr/ndr_initshutdown_c.c',
436 public_deps='dcerpc ndr-standard'
439 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
440 source='gen_ndr/ndr_mgmt_c.c',
441 deps='tevent NDR_MGMT'
444 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
445 source='gen_ndr/ndr_oxidresolver_c.c',
446 public_deps='dcerpc NDR_OXIDRESOLVER'
449 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
450 source='gen_ndr/ndr_remact_c.c',
451 public_deps='dcerpc NDR_REMACT'
454 bld.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
455 source='gen_ndr/ndr_wzcsvc_c.c',
456 public_deps='dcerpc NDR_WZCSVC'
459 bld.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
460 source='gen_ndr/ndr_w32time_c.c',
461 public_deps='dcerpc NDR_W32TIME'
464 bld.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
465 source='gen_ndr/ndr_scerpc_c.c',
466 public_deps='dcerpc NDR_SCERPC'
469 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
470 source='gen_ndr/ndr_ntsvcs_c.c',
471 public_deps='dcerpc ndr-standard'
474 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
475 source='gen_ndr/ndr_netlogon_c.c',
476 public_deps='ndr-standard tevent'
479 bld.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
480 source='gen_ndr/ndr_trkwks_c.c',
481 public_deps='dcerpc NDR_TRKWKS'
484 bld.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
485 source='gen_ndr/ndr_keysvc_c.c',
486 public_deps='dcerpc NDR_KEYSVC'
489 bld.SAMBA_SUBSYSTEM('RPC_NDR_BACKUPKEY',
490 source='gen_ndr/ndr_backupkey_c.c',
491 public_deps='dcerpc NDR_BACKUPKEY'
494 # a grouping library for NDR subsystems that may be used by more than one target
495 bld.SAMBA_LIBRARY('ndr-samba',
496 source=[],
497 deps='NDR_DRSBLOBS NDR_DRSUAPI NDR_IDMAP NDR_NTLMSSP NDR_SCHANNEL NDR_MGMT NDR_KRB5PAC NDR_DNSP NDR_EPMAPPER NDR_XATTR NDR_UNIXINFO NDR_NAMED_PIPE_AUTH NDR_DCOM',
498 private_library=True,
499 grouping_library=True
502 # a grouping library for RPC_NDR subsystems that may be used by more than one target
503 bld.SAMBA_LIBRARY('dcerpc-samba',
504 source=[],
505 deps='RPC_NDR_DRSUAPI RPC_NDR_LSA RPC_NDR_WINREG',
506 private_library=True,
507 grouping_library=True
510 bld.SAMBA_LIBRARY('ndr',
511 source='ndr/ndr_string.c ndr/ndr_basic.c ndr/uuid.c ndr/ndr.c ndr/ndr_misc.c gen_ndr/ndr_misc.c',
512 pc_files='ndr.pc',
513 public_deps='errors talloc samba-util',
514 public_headers='gen_ndr/misc.h gen_ndr/ndr_misc.h ndr/libndr.h:ndr.h',
515 header_path= [ ( '*gen_ndr*', 'gen_ndr' ) ],
516 depends_on='PIDL_MISC',
517 vnum='0.0.1'