idl: frsrpc depends on bkupblobs.idl and fscc.idl
[samba.git] / librpc / wscript_build
1 #!/usr/bin/env python
2
3 bld.RECURSE('idl')
4 bld.RECURSE('../lib/compression')
5
6 bld.SAMBA_SUBSYSTEM('NDR_AUDIOSRV',
7     source='gen_ndr/ndr_audiosrv.c',
8     public_deps='ndr'
9     )
10
11 bld.SAMBA_SUBSYSTEM('NDR_AUTH',
12     source='gen_ndr/ndr_auth.c ndr/ndr_auth.c',
13     public_headers='gen_ndr/auth.h',
14     header_path='gen_ndr',
15     public_deps='ndr NDR_SECURITY ndr-krb5pac'
16     )
17
18 bld.SAMBA_SUBSYSTEM('NDR_ATSVC',
19     source='gen_ndr/ndr_atsvc.c',
20     public_deps='ndr'
21     )
22
23 bld.SAMBA_SUBSYSTEM('NDR_NAMED_PIPE_AUTH',
24     source='gen_ndr/ndr_named_pipe_auth.c',
25     public_deps='ndr NDR_AUTH'
26     )
27
28 bld.SAMBA_SUBSYSTEM('NDR_DNSSERVER',
29     source='gen_ndr/ndr_dnsserver.c ndr/ndr_dnsserver.c',
30     public_deps='ndr'
31     )
32
33 bld.SAMBA_SUBSYSTEM('NDR_DNS',
34     source='gen_ndr/ndr_dns.c ndr/ndr_dns.c',
35     public_deps='ndr'
36     )
37
38 bld.SAMBA_SUBSYSTEM('NDR_DSBACKUP',
39     source='gen_ndr/ndr_dsbackup.c',
40     public_deps='ndr'
41     )
42
43 bld.SAMBA_SUBSYSTEM('NDR_DFS',
44     source='gen_ndr/ndr_dfs.c',
45     public_deps='ndr'
46     )
47
48 bld.SAMBA_SUBSYSTEM('NDR_WINREG',
49     source='gen_ndr/ndr_winreg.c',
50     public_deps='ndr NDR_SECURITY NDR_LSA'
51     )
52
53 bld.SAMBA_SUBSYSTEM('NDR_EFS',
54     source='gen_ndr/ndr_efs.c',
55     public_deps='ndr NDR_SECURITY'
56     )
57
58 bld.SAMBA_SUBSYSTEM('NDR_ROT',
59     source='gen_ndr/ndr_rot.c',
60     public_deps='ndr NDR_ORPC'
61     )
62
63 bld.SAMBA_SUBSYSTEM('NDR_FRSRPC',
64     source='ndr/ndr_frsrpc.c gen_ndr/ndr_frsrpc.c',
65     public_deps='ndr'
66     )
67
68 bld.SAMBA_SUBSYSTEM('NDR_FRSAPI',
69     source='gen_ndr/ndr_frsapi.c',
70     public_deps='ndr'
71     )
72
73 bld.SAMBA_SUBSYSTEM('NDR_FRSTRANS',
74     source='gen_ndr/ndr_frstrans.c',
75     public_deps='ndr'
76     )
77
78 bld.SAMBA_SUBSYSTEM('NDR_DFSBLOBS',
79     source='gen_ndr/ndr_dfsblobs.c',
80     public_deps='ndr'
81     )
82
83 bld.SAMBA_SUBSYSTEM('NDR_BKUPBLOBS',
84         source='gen_ndr/ndr_bkupblobs.c',
85         public_deps='ndr'
86         )
87
88 bld.SAMBA_SUBSYSTEM('NDR_FSCC',
89         source='gen_ndr/ndr_fscc.c',
90         public_deps='ndr'
91         )
92
93 bld.SAMBA_SUBSYSTEM('NDR_POLICYAGENT',
94     source='gen_ndr/ndr_policyagent.c',
95     public_deps='ndr'
96     )
97
98 bld.SAMBA_SUBSYSTEM('NDR_UNIXINFO',
99     source='gen_ndr/ndr_unixinfo.c',
100     public_deps='ndr NDR_SECURITY'
101     )
102
103 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS',
104     source='gen_ndr/ndr_spoolss.c',
105     public_deps='ndr NDR_SPOOLSS_BUF NDR_SECURITY'
106     )
107
108 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF',
109     source='ndr/ndr_spoolss_buf.c',
110     deps='talloc'
111     )
112
113 bld.SAMBA_SUBSYSTEM('NDR_PRINTCAP',
114     source='gen_ndr/ndr_printcap.c',
115     public_deps='ndr'
116     )
117
118 bld.SAMBA_SUBSYSTEM('NDR_EPMAPPER',
119     source='gen_ndr/ndr_epmapper.c',
120     public_deps='ndr'
121     )
122
123 bld.SAMBA_SUBSYSTEM('NDR_DBGIDL',
124     source='gen_ndr/ndr_dbgidl.c',
125     public_deps='ndr'
126     )
127
128 bld.SAMBA_SUBSYSTEM('NDR_DSSETUP',
129     source='gen_ndr/ndr_dssetup.c',
130     public_deps='ndr'
131     )
132
133 bld.SAMBA_SUBSYSTEM('NDR_MSGSVC',
134     source='gen_ndr/ndr_msgsvc.c',
135     public_deps='ndr'
136     )
137
138 bld.SAMBA_SUBSYSTEM('NDR_MGMT',
139     source='gen_ndr/ndr_mgmt.c',
140     public_deps='ndr'
141     )
142
143 bld.SAMBA_SUBSYSTEM('NDR_ORPC',
144     source='ndr/ndr_orpc.c gen_ndr/ndr_orpc.c',
145     public_deps='ndr'
146     )
147
148 bld.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
149     source='gen_ndr/ndr_oxidresolver.c',
150     public_deps='ndr NDR_ORPC'
151     )
152
153 bld.SAMBA_SUBSYSTEM('NDR_REMACT',
154     source='gen_ndr/ndr_remact.c',
155     public_deps='ndr NDR_ORPC'
156     )
157
158 bld.SAMBA_SUBSYSTEM('NDR_DCOM',
159     source='gen_ndr/ndr_dcom.c',
160     public_deps='ndr NDR_SECURITY NDR_ORPC'
161     )
162
163 bld.SAMBA_SUBSYSTEM('NDR_WMI',
164     source='ndr/ndr_wmi.c gen_ndr/ndr_wmi.c',
165     public_deps='ndr NDR_SECURITY NDR_DCOM'
166     )
167
168 bld.SAMBA_SUBSYSTEM('NDR_WZCSVC',
169     source='gen_ndr/ndr_wzcsvc.c',
170     public_deps='ndr'
171     )
172
173 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
174     source='gen_ndr/ndr_browser.c',
175     public_deps='ndr'
176     )
177
178 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
179     source='gen_ndr/ndr_w32time.c',
180     public_deps='ndr'
181     )
182
183 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
184     source='gen_ndr/ndr_scerpc.c',
185     public_deps='ndr'
186     )
187
188 bld.SAMBA_SUBSYSTEM('NDR_SERVER_ID',
189     source='gen_ndr/ndr_server_id.c',
190     deps='ndr',
191     public_headers='gen_ndr/server_id.h',
192     header_path='gen_ndr'
193     )
194
195 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
196     source='gen_ndr/ndr_trkwks.c',
197     public_deps='ndr'
198     )
199
200 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
201     source='gen_ndr/ndr_keysvc.c',
202     public_deps='ndr'
203     )
204
205 bld.SAMBA_SUBSYSTEM('NDR_RAP',
206     source='gen_ndr/ndr_rap.c ndr/ndr_rap.c',
207     public_deps='ndr'
208     )
209
210 bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
211     source='gen_ndr/ndr_idmap.c',
212     public_deps='ndr ndr-standard'
213     )
214
215 bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
216     source='gen_ndr/ndr_notify.c',
217     public_deps='ndr ndr-standard NDR_SERVER_ID NDR_FILE_ID'
218     )
219
220 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
221     source='ndr/ndr_ntlmssp.c gen_ndr/ndr_ntlmssp.c',
222     public_deps='ndr ndr-standard'
223     )
224
225 bld.SAMBA_SUBSYSTEM('NDR_DNSP',
226     source='gen_ndr/ndr_dnsp.c ndr/ndr_dnsp.c',
227     public_deps='ndr'
228     )
229
230 bld.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
231     source='gen_ndr/ndr_nfs4acl.c',
232     public_deps='ndr NDR_SECURITY'
233     )
234
235 bld.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
236     source='gen_ndr/ndr_ntprinting.c ndr/ndr_ntprinting.c',
237     public_deps='ndr'
238     )
239
240 bld.SAMBA_SUBSYSTEM('NDR_SAMR',
241     source='gen_ndr/ndr_samr.c',
242     public_deps='ndr NDR_SECURITY NDR_LSA'
243     )
244
245 bld.SAMBA_SUBSYSTEM('NDR_LSA',
246     source='gen_ndr/ndr_lsa.c',
247     public_deps='ndr NDR_SECURITY'
248     )
249
250 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
251     source='gen_ndr/ndr_security.c ndr/ndr_sec_helper.c',
252     deps='ndr samba-security',
253     public_headers='gen_ndr/security.h',
254     header_path='gen_ndr'
255     )
256
257 bld.SAMBA_SUBSYSTEM('NDR_SMB_ACL',
258     source='gen_ndr/ndr_smb_acl.c',
259     deps='ndr',
260     )
261
262 bld.SAMBA_SUBSYSTEM('NDR_SVCCTL',
263     source='gen_ndr/ndr_svcctl.c ndr/ndr_svcctl.c',
264     public_deps='ndr NDR_SECURITY'
265     )
266
267 bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
268     source='gen_ndr/ndr_srvsvc.c',
269     public_deps='ndr NDR_SECURITY NDR_SVCCTL'
270     )
271
272 bld.SAMBA_SUBSYSTEM('NDR_NETLOGON',
273     source='gen_ndr/ndr_netlogon.c ndr/ndr_netlogon.c',
274     public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR ndr_nbt'
275     )
276
277 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
278     source='gen_ndr/ndr_eventlog.c',
279     public_deps='ndr NDR_SECURITY NDR_LSA'
280     )
281
282 bld.SAMBA_SUBSYSTEM('NDR_NTSVCS',
283     source='gen_ndr/ndr_ntsvcs.c',
284     public_deps='ndr'
285     )
286
287 bld.SAMBA_SUBSYSTEM('NDR_WKSSVC',
288     source='gen_ndr/ndr_wkssvc.c',
289     public_deps='ndr NDR_SECURITY'
290     )
291
292 bld.SAMBA_SUBSYSTEM('NDR_ECHO',
293     source='gen_ndr/ndr_echo.c',
294     public_deps='ndr'
295     )
296
297 bld.SAMBA_SUBSYSTEM('NDR_INITSHUTDOWN',
298     source='gen_ndr/ndr_initshutdown.c',
299     public_deps='ndr NDR_LSA'
300     )
301
302 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
303     source='ndr/ndr_compression.c',
304     public_deps='errors ndr',
305     deps='z LZXPRESS'
306     )
307
308 bld.SAMBA_SUBSYSTEM('NDR_FSRVP',
309         source='gen_ndr/ndr_fsrvp.c',
310         public_deps='ndr'
311         )
312
313 bld.SAMBA_SUBSYSTEM('NDR_WITNESS',
314     source='gen_ndr/ndr_witness.c',
315     public_deps='ndr'
316     )
317
318 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
319     source='gen_ndr/ndr_dcerpc.c ndr/ndr_dcerpc.c',
320     public_deps='ndr',
321     public_headers='gen_ndr/ndr_dcerpc.h gen_ndr/dcerpc.h ndr/ndr_dcerpc.h',
322     header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
323     )
324
325 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
326     source='ndr/ndr_drsuapi.c gen_ndr/ndr_drsuapi.c',
327     public_deps='ndr NDR_COMPRESSION NDR_SECURITY ndr-standard asn1util',
328     public_headers='gen_ndr/ndr_drsuapi.h gen_ndr/drsuapi.h ndr/ndr_drsuapi.h',
329     header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
330     )
331
332 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
333     source='ndr/ndr_drsblobs.c gen_ndr/ndr_drsblobs.c',
334     public_deps='ndr NDR_DRSUAPI',
335     public_headers='gen_ndr/ndr_drsblobs.h gen_ndr/drsblobs.h ndr/ndr_drsblobs.h',
336     header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
337     )
338
339 bld.SAMBA_LIBRARY('ndr-krb5pac',
340     source='ndr/ndr_krb5pac.c gen_ndr/ndr_krb5pac.c',
341     public_deps='ndr ndr-standard NDR_SECURITY',
342     public_headers='gen_ndr/krb5pac.h gen_ndr/ndr_krb5pac.h',
343     header_path='gen_ndr',
344     pc_files='ndr_krb5pac.pc',
345     vnum='0.0.1'
346     )
347
348 bld.SAMBA_LIBRARY('ndr-standard',
349     source='gen_ndr/ndr_eventlog6.c',
350     vnum='0.0.1',
351     pc_files='ndr_standard.pc',
352     deps='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
353     NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
354     NDR_ECHO security NDR_DNS NDR_ATSVC NDR_SPOOLSS NDR_DSSETUP
355     NDR_SERVER_ID NDR_NOTIFY''',
356     public_deps='ndr',
357     public_headers='gen_ndr/samr.h gen_ndr/ndr_samr.h gen_ndr/lsa.h gen_ndr/netlogon.h gen_ndr/atsvc.h gen_ndr/ndr_atsvc.h gen_ndr/ndr_svcctl.h gen_ndr/svcctl.h',
358     header_path='gen_ndr'
359     )
360
361 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
362     source='ndr/ndr_xattr.c gen_ndr/ndr_xattr.c',
363     public_deps='ndr NDR_SECURITY'
364     )
365
366 bld.SAMBA_SUBSYSTEM('NDR_SMB2_LEASE_STRUCT',
367     source='gen_ndr/ndr_smb2_lease_struct.c',
368     public_deps='ndr',
369     public_headers='gen_ndr/smb2_lease_struct.h'
370     )
371
372 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
373     source='ndr/ndr_schannel.c gen_ndr/ndr_schannel.c',
374     public_deps='ndr ndr_nbt'
375     )
376
377 bld.SAMBA_LIBRARY('ndr_nbt',
378     source='gen_ndr/ndr_nbt.c ndr/ndr_nbt.c',
379     public_deps='ndr NDR_NBT_BUF NDR_SECURITY',
380     public_headers='gen_ndr/nbt.h gen_ndr/ndr_nbt.h ndr/ndr_nbt.h',
381     header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')],
382     pc_files='ndr_nbt.pc',
383     vnum='0.0.1'
384 )
385
386 bld.SAMBA_SUBSYSTEM('NDR_BACKUPKEY',
387     source='ndr/ndr_backupkey.c gen_ndr/ndr_backupkey.c',
388     public_deps='ndr'
389     )
390
391 bld.SAMBA_SUBSYSTEM('NDR_PREG',
392     source='gen_ndr/ndr_preg.c ndr/ndr_preg.c',
393     public_deps='ndr'
394     )
395
396 bld.SAMBA_SUBSYSTEM('NDR_FILE_ID',
397     source='gen_ndr/ndr_file_id.c',
398     public_deps='ndr'
399     )
400
401 bld.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
402     source='gen_ndr/ndr_xattr_c.c',
403     public_deps='NDR_XATTR dcerpc-binding'
404     )
405
406 bld.SAMBA_SUBSYSTEM('RPC_NDR_IDMAP',
407     source='gen_ndr/ndr_idmap_c.c',
408     public_deps='NDR_IDMAP dcerpc-binding'
409     )
410
411 bld.SAMBA_SUBSYSTEM('RPC_NDR_SMB_ACL',
412     source='gen_ndr/ndr_smb_acl_c.c',
413     public_deps='NDR_SMB_ACL dcerpc-binding'
414     )
415
416 bld.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
417     source='gen_ndr/ndr_rot_c.c',
418     public_deps='NDR_ROT dcerpc-binding'
419     )
420
421 bld.SAMBA_SUBSYSTEM('RPC_NDR_ATSVC',
422     source='gen_ndr/ndr_atsvc_c.c',
423     public_deps='dcerpc-binding NDR_ATSVC'
424     )
425
426 bld.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
427     source='gen_ndr/ndr_audiosrv_c.c',
428     public_deps='NDR_AUDIOSRV dcerpc-binding'
429     )
430
431 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNS',
432     source='gen_ndr/ndr_dns_c.c',
433     public_deps='dcerpc-binding NDR_DNS'
434     )
435
436 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
437     source='gen_ndr/ndr_echo_c.c',
438     public_deps='dcerpc-binding NDR_ECHO'
439     )
440
441 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
442     source='gen_ndr/ndr_dsbackup_c.c',
443     public_deps='dcerpc-binding NDR_DSBACKUP'
444     )
445
446 bld.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
447     source='gen_ndr/ndr_efs_c.c',
448     public_deps='dcerpc-binding NDR_EFS'
449     )
450
451 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
452     source='gen_ndr/ndr_lsa_c.c',
453     public_deps='dcerpc-binding ndr-standard'
454     )
455
456 bld.SAMBA_SUBSYSTEM('RPC_NDR_SAMR',
457     source='gen_ndr/ndr_samr_c.c',
458     public_deps='dcerpc-binding NDR_SAMR'
459     )
460
461 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
462     source='gen_ndr/ndr_dfs_c.c',
463     public_deps='dcerpc-binding ndr-standard'
464     )
465
466 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
467     source='gen_ndr/ndr_frsapi_c.c',
468     public_deps='dcerpc-binding NDR_FRSAPI'
469     )
470
471 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
472     source='gen_ndr/ndr_drsuapi_c.c',
473     public_deps='dcerpc-binding NDR_DRSUAPI'
474     )
475
476 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSBLOBS',
477     source='gen_ndr/ndr_drsblobs_c.c',
478     public_deps='dcerpc-binding NDR_DRSBLOBS'
479     )
480
481 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
482     source='gen_ndr/ndr_policyagent_c.c',
483     public_deps='dcerpc-binding NDR_POLICYAGENT'
484     )
485
486 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
487     source='gen_ndr/ndr_unixinfo_c.c',
488     public_deps='dcerpc-binding NDR_UNIXINFO'
489     )
490
491 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
492     source='gen_ndr/ndr_browser_c.c',
493     public_deps='dcerpc-binding NDR_BROWSER'
494     )
495
496 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
497     source='gen_ndr/ndr_spoolss_c.c',
498     public_deps='dcerpc-binding NDR_SPOOLSS'
499     )
500
501 bld.SAMBA_SUBSYSTEM('RPC_NDR_NBT',
502     source='gen_ndr/ndr_nbt_c.c',
503     public_deps='dcerpc-binding ndr_nbt'
504     )
505
506 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
507     source='gen_ndr/ndr_wkssvc_c.c',
508     public_deps='dcerpc-binding ndr-standard'
509     )
510
511 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
512     source='gen_ndr/ndr_srvsvc_c.c',
513     public_deps='dcerpc-binding NDR_SRVSVC'
514     )
515
516 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
517     source='gen_ndr/ndr_svcctl_c.c',
518     public_deps='dcerpc-binding ndr-standard',
519     public_headers='gen_ndr/ndr_svcctl_c.h ndr/ndr_svcctl.h',
520     header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
521     )
522
523 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
524     source='gen_ndr/ndr_eventlog_c.c',
525     public_deps='dcerpc-binding ndr-standard'
526     )
527
528 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
529     source='gen_ndr/ndr_epmapper_c.c',
530     public_deps='tevent NDR_EPMAPPER'
531     )
532
533 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
534     source='gen_ndr/ndr_dbgidl_c.c',
535     public_deps='dcerpc-binding NDR_DBGIDL'
536     )
537
538 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
539     source='gen_ndr/ndr_dssetup_c.c',
540     public_deps='dcerpc-binding NDR_DSSETUP'
541     )
542
543 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
544     source='gen_ndr/ndr_msgsvc_c.c',
545     public_deps='dcerpc-binding NDR_MSGSVC'
546     )
547
548 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
549     source='gen_ndr/ndr_winreg_c.c',
550     public_deps='dcerpc-binding ndr-standard'
551     )
552
553 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
554     source='gen_ndr/ndr_initshutdown_c.c',
555     public_deps='dcerpc-binding ndr-standard'
556     )
557
558 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
559     source='gen_ndr/ndr_mgmt_c.c',
560     deps='tevent NDR_MGMT'
561     )
562
563 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
564     source='gen_ndr/ndr_oxidresolver_c.c',
565     public_deps='dcerpc-binding NDR_OXIDRESOLVER'
566     )
567
568 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
569     source='gen_ndr/ndr_remact_c.c',
570     public_deps='dcerpc-binding NDR_REMACT'
571     )
572
573 bld.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
574     source='gen_ndr/ndr_wzcsvc_c.c',
575     public_deps='dcerpc-binding NDR_WZCSVC'
576     )
577
578 bld.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
579     source='gen_ndr/ndr_w32time_c.c',
580     public_deps='dcerpc-binding NDR_W32TIME'
581     )
582
583 bld.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
584     source='gen_ndr/ndr_scerpc_c.c',
585     public_deps='dcerpc-binding NDR_SCERPC'
586     )
587
588 bld.SAMBA_SUBSYSTEM('RPC_NDR_SERVER_ID',
589     source='gen_ndr/ndr_server_id_c.c',
590     public_deps='dcerpc-binding NDR_SERVER_ID'
591     )
592
593 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
594     source='gen_ndr/ndr_ntsvcs_c.c',
595     public_deps='dcerpc-binding ndr-standard'
596     )
597
598 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
599     source='gen_ndr/ndr_netlogon_c.c',
600     public_deps='ndr-standard tevent'
601     )
602
603 bld.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
604     source='gen_ndr/ndr_trkwks_c.c',
605     public_deps='dcerpc-binding NDR_TRKWKS'
606     )
607
608 bld.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
609     source='gen_ndr/ndr_keysvc_c.c',
610     public_deps='dcerpc-binding NDR_KEYSVC'
611     )
612
613 bld.SAMBA_SUBSYSTEM('RPC_NDR_BACKUPKEY',
614     source='gen_ndr/ndr_backupkey_c.c',
615     public_deps='dcerpc-binding NDR_BACKUPKEY'
616     )
617
618 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNSP',
619     source='gen_ndr/ndr_dnsp_c.c',
620     public_deps='dcerpc-binding NDR_DNSP'
621     )
622
623 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNSSERVER',
624     source='gen_ndr/ndr_dnsserver_c.c',
625     public_deps='dcerpc-binding ndr-standard'
626     )
627
628 bld.SAMBA_SUBSYSTEM('NDR_IOCTL',
629     source='gen_ndr/ndr_ioctl.c ndr/ndr_ioctl.c',
630     public_deps='ndr'
631     )
632
633 bld.SAMBA_SUBSYSTEM('RPC_NDR_FSRVP',
634         source='gen_ndr/ndr_fsrvp_c.c',
635         public_deps='dcerpc-binding NDR_FSRVP'
636         )
637
638 bld.SAMBA_SUBSYSTEM('RPC_NDR_WITNESS',
639     source='gen_ndr/ndr_witness_c.c',
640     public_deps='dcerpc-binding NDR_WITNESS'
641     )
642
643 # a grouping library for NDR subsystems that may be used by more than one target
644 bld.SAMBA_LIBRARY('ndr-samba',
645     source=[],
646     deps='''NDR_DRSBLOBS NDR_DRSUAPI NDR_IDMAP NDR_NTLMSSP NDR_SCHANNEL NDR_MGMT
647     NDR_DNSP NDR_EPMAPPER NDR_XATTR NDR_UNIXINFO NDR_NAMED_PIPE_AUTH NDR_DCOM
648     NDR_NTPRINTING NDR_FSRVP NDR_WITNESS NDR_OPEN_FILES NDR_SMBXSRV''',
649     private_library=True,
650     grouping_library=True
651     )
652
653 # a grouping library for RPC_NDR subsystems that may be used by more than one target
654 bld.SAMBA_LIBRARY('dcerpc-samba',
655     source='',
656     deps='''RPC_NDR_LSA RPC_NDR_SAMR RPC_NDR_NETLOGON RPC_NDR_EVENTLOG
657     RPC_NDR_DFS RPC_NDR_NTSVCS RPC_NDR_SVCCTL RPC_NDR_INITSHUTDOWN
658     RPC_NDR_WKSSVC RPC_NDR_SRVSVC RPC_NDR_WINREG RPC_NDR_ECHO RPC_NDR_EPMAPPER
659     RPC_NDR_ATSVC RPC_NDR_SPOOLSS RPC_NDR_DNS''',
660     public_deps='ndr-standard',
661     private_library=True,
662     grouping_library=True
663     )
664
665 bld.SAMBA_LIBRARY('ndr',
666     source='ndr/ndr_string.c ndr/ndr_basic.c ndr/uuid.c ndr/ndr.c ndr/ndr_misc.c gen_ndr/ndr_misc.c ndr/util.c',
667     pc_files='ndr.pc',
668     public_deps='errors talloc samba-util',
669     public_headers='gen_ndr/misc.h gen_ndr/ndr_misc.h ndr/libndr.h:ndr.h',
670     header_path= [('*gen_ndr*', 'gen_ndr')],
671     vnum='0.0.4',
672     abi_directory='ABI',
673     abi_match='ndr_* GUID_*',
674     )
675
676 bld.SAMBA_LIBRARY('dcerpc-binding',
677     source='rpc/dcerpc_error.c rpc/binding.c rpc/dcerpc_util.c rpc/binding_handle.c',
678     deps='ndr tevent NDR_DCERPC LIBTSOCKET tevent-util',
679     pc_files=[],
680     public_headers='rpc/rpc_common.h',
681     vnum='0.0.1')
682
683 bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
684         source='gen_ndr/ndr_winbind.c',
685         public_deps='ndr NDR_LSA'
686         )
687
688 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
689         source='gen_ndr/ndr_winbind_c.c',
690         public_deps='dcerpc NDR_WINBIND'
691         )
692
693 bld.SAMBA3_SUBSYSTEM('SRV_NDR_WINBIND',
694         source='gen_ndr/srv_winbind.c',
695         public_deps='NDR_WINBIND'
696         )