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