waf: convert NDR_NBT into shared library.
[garming/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'
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_POLICYAGENT',
84         source='gen_ndr/ndr_policyagent.c',
85         public_deps='ndr'
86         )
87
88 bld.SAMBA_SUBSYSTEM('NDR_UNIXINFO',
89         source='gen_ndr/ndr_unixinfo.c',
90         public_deps='ndr NDR_SECURITY'
91         )
92
93 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS',
94         source='gen_ndr/ndr_spoolss.c',
95         public_deps='ndr NDR_SPOOLSS_BUF NDR_SECURITY'
96         )
97
98 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF',
99         source='ndr/ndr_spoolss_buf.c',
100         deps='talloc'
101         )
102
103 bld.SAMBA_SUBSYSTEM('NDR_PRINTCAP',
104         source='gen_ndr/ndr_printcap.c',
105         public_deps='ndr'
106         )
107
108 bld.SAMBA_SUBSYSTEM('NDR_EPMAPPER',
109         source='gen_ndr/ndr_epmapper.c',
110         public_deps='ndr'
111         )
112
113 bld.SAMBA_SUBSYSTEM('NDR_DBGIDL',
114         source='gen_ndr/ndr_dbgidl.c',
115         public_deps='ndr'
116         )
117
118 bld.SAMBA_SUBSYSTEM('NDR_DSSETUP',
119         source='gen_ndr/ndr_dssetup.c',
120         public_deps='ndr'
121         )
122
123 bld.SAMBA_SUBSYSTEM('NDR_MSGSVC',
124         source='gen_ndr/ndr_msgsvc.c',
125         public_deps='ndr'
126         )
127
128 bld.SAMBA_SUBSYSTEM('NDR_MGMT',
129         source='gen_ndr/ndr_mgmt.c',
130         public_deps='ndr'
131         )
132
133 bld.SAMBA_SUBSYSTEM('NDR_ORPC',
134         source='ndr/ndr_orpc.c gen_ndr/ndr_orpc.c',
135         public_deps='ndr'
136         )
137
138 bld.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
139         source='gen_ndr/ndr_oxidresolver.c',
140         public_deps='ndr NDR_ORPC'
141         )
142
143 bld.SAMBA_SUBSYSTEM('NDR_REMACT',
144         source='gen_ndr/ndr_remact.c',
145         public_deps='ndr NDR_ORPC'
146         )
147
148 bld.SAMBA_SUBSYSTEM('NDR_DCOM',
149         source='gen_ndr/ndr_dcom.c',
150         public_deps='ndr NDR_SECURITY NDR_ORPC'
151         )
152
153 bld.SAMBA_SUBSYSTEM('NDR_WMI',
154         source='ndr/ndr_wmi.c gen_ndr/ndr_wmi.c',
155         public_deps='ndr NDR_SECURITY NDR_DCOM'
156         )
157
158 bld.SAMBA_SUBSYSTEM('NDR_WZCSVC',
159         source='gen_ndr/ndr_wzcsvc.c',
160         public_deps='ndr'
161         )
162
163 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
164         source='gen_ndr/ndr_browser.c',
165         public_deps='ndr'
166         )
167
168 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
169         source='gen_ndr/ndr_w32time.c',
170         public_deps='ndr'
171         )
172
173 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
174         source='gen_ndr/ndr_scerpc.c',
175         public_deps='ndr'
176         )
177
178 bld.SAMBA_SUBSYSTEM('NDR_SERVER_ID',
179         source='gen_ndr/ndr_server_id.c',
180         deps='ndr',
181         public_headers='gen_ndr/server_id.h',
182         header_path='gen_ndr'
183         )
184
185 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
186         source='gen_ndr/ndr_trkwks.c',
187         public_deps='ndr'
188         )
189
190 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
191         source='gen_ndr/ndr_keysvc.c',
192         public_deps='ndr'
193         )
194
195 bld.SAMBA_SUBSYSTEM('NDR_RAP',
196         source='gen_ndr/ndr_rap.c ndr/ndr_rap.c',
197         public_deps='ndr'
198         )
199
200 bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
201         source='gen_ndr/ndr_idmap.c',
202         public_deps='ndr ndr-standard'
203         )
204
205 bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
206         source='gen_ndr/ndr_notify.c',
207         public_deps='ndr ndr-standard NDR_SERVER_ID NDR_FILE_ID'
208         )
209
210 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
211         source='ndr/ndr_ntlmssp.c gen_ndr/ndr_ntlmssp.c',
212         public_deps='ndr ndr-standard'
213         )
214
215 bld.SAMBA_SUBSYSTEM('NDR_DNSP',
216         source='gen_ndr/ndr_dnsp.c ndr/ndr_dnsp.c',
217         public_deps='ndr'
218         )
219
220 bld.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
221         source='gen_ndr/ndr_ntprinting.c ndr/ndr_ntprinting.c',
222         public_deps='ndr'
223         )
224
225 bld.SAMBA_SUBSYSTEM('NDR_SAMR',
226         source='gen_ndr/ndr_samr.c',
227         public_deps='ndr NDR_SECURITY NDR_LSA'
228         )
229
230 bld.SAMBA_SUBSYSTEM('NDR_LSA',
231         source='gen_ndr/ndr_lsa.c',
232         public_deps='ndr NDR_SECURITY'
233         )
234
235 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
236         source='gen_ndr/ndr_security.c ndr/ndr_sec_helper.c',
237         deps='ndr security',
238         public_headers='gen_ndr/security.h',
239         header_path='gen_ndr'
240         )
241
242 bld.SAMBA_SUBSYSTEM('NDR_SVCCTL',
243         source='gen_ndr/ndr_svcctl.c ndr/ndr_svcctl.c',
244         public_deps='ndr NDR_SECURITY'
245         )
246
247 bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
248         source='gen_ndr/ndr_srvsvc.c',
249         public_deps='ndr NDR_SECURITY NDR_SVCCTL'
250         )
251
252 bld.SAMBA_SUBSYSTEM('NDR_NETLOGON',
253         source='gen_ndr/ndr_netlogon.c ndr/ndr_netlogon.c',
254         public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR ndr_nbt'
255         )
256
257 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
258         source='gen_ndr/ndr_eventlog.c',
259         public_deps='ndr NDR_SECURITY NDR_LSA'
260         )
261
262 bld.SAMBA_SUBSYSTEM('NDR_NTSVCS',
263         source='gen_ndr/ndr_ntsvcs.c',
264         public_deps='ndr'
265         )
266
267 bld.SAMBA_SUBSYSTEM('NDR_WKSSVC',
268         source='gen_ndr/ndr_wkssvc.c',
269         public_deps='ndr NDR_SECURITY'
270         )
271
272 bld.SAMBA_SUBSYSTEM('NDR_ECHO',
273         source='gen_ndr/ndr_echo.c',
274         public_deps='ndr'
275         )
276
277 bld.SAMBA_SUBSYSTEM('NDR_INITSHUTDOWN',
278         source='gen_ndr/ndr_initshutdown.c',
279         public_deps='ndr NDR_LSA'
280         )
281
282 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
283         source='ndr/ndr_compression.c',
284         public_deps='errors ndr',
285         deps='z LZXPRESS'
286         )
287
288 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
289         source='gen_ndr/ndr_dcerpc.c',
290         public_deps='ndr',
291         public_headers='gen_ndr/ndr_dcerpc.h gen_ndr/dcerpc.h',
292         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
293         )
294
295 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
296         source='ndr/ndr_drsuapi.c gen_ndr/ndr_drsuapi.c',
297         public_deps='ndr NDR_COMPRESSION NDR_SECURITY ndr-standard asn1util'
298         )
299
300 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
301         source='ndr/ndr_drsblobs.c gen_ndr/ndr_drsblobs.c',
302         public_deps='ndr NDR_DRSUAPI'
303         )
304
305 bld.SAMBA_LIBRARY('ndr-krb5pac',
306                     source='ndr/ndr_krb5pac.c gen_ndr/ndr_krb5pac.c',
307                     public_deps='ndr ndr-standard NDR_SECURITY',
308                     public_headers='gen_ndr/krb5pac.h gen_ndr/ndr_krb5pac.h',
309                     header_path='gen_ndr',
310                     pc_files='ndr_krb5pac.pc',
311                     vnum='0.0.1'
312                     )
313
314 bld.SAMBA_LIBRARY('ndr-standard',
315         source='gen_ndr/ndr_eventlog6.c',
316         vnum='0.0.1',
317         pc_files='ndr_standard.pc',
318         deps='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
319         NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
320         NDR_ECHO security NDR_DNS NDR_ATSVC NDR_SPOOLSS NDR_DSSETUP
321         NDR_SERVER_ID NDR_NOTIFY''',
322         public_deps='ndr',
323         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',
324         header_path='gen_ndr'
325         )
326
327 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
328         source='ndr/ndr_xattr.c gen_ndr/ndr_xattr.c',
329         public_deps='ndr NDR_SECURITY'
330         )
331
332 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
333         source='ndr/ndr_schannel.c gen_ndr/ndr_schannel.c',
334         public_deps='ndr ndr_nbt'
335         )
336
337 bld.SAMBA_LIBRARY('ndr_nbt',
338         source='gen_ndr/ndr_nbt.c ndr/ndr_nbt.c',
339         public_deps='ndr NDR_NBT_BUF NDR_SECURITY',
340         public_headers='gen_ndr/nbt.h gen_ndr/ndr_nbt.h ndr/ndr_nbt.h',
341         header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')],
342         pc_files='ndr_nbt.pc',
343         vnum='0.0.1'
344         )
345
346 bld.SAMBA_SUBSYSTEM('NDR_BACKUPKEY',
347         source='ndr/ndr_backupkey.c gen_ndr/ndr_backupkey.c',
348         public_deps='ndr'
349         )
350
351 bld.SAMBA_SUBSYSTEM('NDR_PREG',
352         source='gen_ndr/ndr_preg.c ndr/ndr_preg.c',
353         public_deps='ndr'
354         )
355
356 bld.SAMBA_SUBSYSTEM('NDR_FILE_ID',
357         source='gen_ndr/ndr_file_id.c',
358         public_deps='ndr'
359         )
360
361 bld.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
362         source='gen_ndr/ndr_xattr_c.c',
363         public_deps='NDR_XATTR dcerpc-binding'
364         )
365
366 bld.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
367         source='gen_ndr/ndr_rot_c.c',
368         public_deps='NDR_ROT dcerpc-binding'
369         )
370
371 bld.SAMBA_SUBSYSTEM('RPC_NDR_ATSVC',
372         source='gen_ndr/ndr_atsvc_c.c',
373         public_deps='dcerpc-binding NDR_ATSVC'
374         )
375
376 bld.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
377         source='gen_ndr/ndr_audiosrv_c.c',
378         public_deps='NDR_AUDIOSRV dcerpc-binding'
379         )
380
381 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
382         source='gen_ndr/ndr_echo_c.c',
383         public_deps='dcerpc-binding NDR_ECHO'
384         )
385
386 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
387         source='gen_ndr/ndr_dsbackup_c.c',
388         public_deps='dcerpc-binding NDR_DSBACKUP'
389         )
390
391 bld.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
392         source='gen_ndr/ndr_efs_c.c',
393         public_deps='dcerpc-binding NDR_EFS'
394         )
395
396 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
397         source='gen_ndr/ndr_lsa_c.c',
398         public_deps='dcerpc-binding ndr-standard'
399         )
400
401 bld.SAMBA_SUBSYSTEM('RPC_NDR_SAMR',
402         source='gen_ndr/ndr_samr_c.c',
403         public_deps='dcerpc-binding NDR_SAMR'
404         )
405
406 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
407         source='gen_ndr/ndr_dfs_c.c',
408         public_deps='dcerpc-binding ndr-standard'
409         )
410
411 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
412         source='gen_ndr/ndr_frsapi_c.c',
413         public_deps='dcerpc-binding NDR_FRSAPI'
414         )
415
416 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
417         source='gen_ndr/ndr_drsuapi_c.c',
418         public_deps='dcerpc-binding NDR_DRSUAPI'
419         )
420
421 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSBLOBS',
422         source='gen_ndr/ndr_drsblobs_c.c',
423         public_deps='dcerpc-binding NDR_DRSBLOBS'
424         )
425
426 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
427         source='gen_ndr/ndr_policyagent_c.c',
428         public_deps='dcerpc-binding NDR_POLICYAGENT'
429         )
430
431 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
432         source='gen_ndr/ndr_unixinfo_c.c',
433         public_deps='dcerpc-binding NDR_UNIXINFO'
434         )
435
436 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
437         source='gen_ndr/ndr_browser_c.c',
438         public_deps='dcerpc-binding NDR_BROWSER'
439         )
440
441 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
442         source='gen_ndr/ndr_spoolss_c.c',
443         public_deps='dcerpc-binding NDR_SPOOLSS'
444         )
445
446 bld.SAMBA_SUBSYSTEM('RPC_NDR_NBT',
447         source='gen_ndr/ndr_nbt_c.c',
448         public_deps='dcerpc-binding ndr_nbt'
449         )
450
451 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
452         source='gen_ndr/ndr_wkssvc_c.c',
453         public_deps='dcerpc-binding ndr-standard'
454         )
455
456 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
457         source='gen_ndr/ndr_srvsvc_c.c',
458         public_deps='dcerpc-binding NDR_SRVSVC'
459         )
460
461 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
462         source='gen_ndr/ndr_svcctl_c.c',
463         public_deps='dcerpc-binding ndr-standard',
464         public_headers='gen_ndr/ndr_svcctl_c.h ndr/ndr_svcctl.h',
465         header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
466         )
467
468 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
469         source='gen_ndr/ndr_eventlog_c.c',
470         public_deps='dcerpc-binding ndr-standard'
471         )
472
473 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
474         source='gen_ndr/ndr_epmapper_c.c',
475         public_deps='tevent NDR_EPMAPPER'
476         )
477
478 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
479         source='gen_ndr/ndr_dbgidl_c.c',
480         public_deps='dcerpc-binding NDR_DBGIDL'
481         )
482
483 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
484         source='gen_ndr/ndr_dssetup_c.c',
485         public_deps='dcerpc-binding NDR_DSSETUP'
486         )
487
488 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
489         source='gen_ndr/ndr_msgsvc_c.c',
490         public_deps='dcerpc-binding NDR_MSGSVC'
491         )
492
493 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
494         source='gen_ndr/ndr_winreg_c.c',
495         public_deps='dcerpc-binding ndr-standard'
496         )
497
498 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
499         source='gen_ndr/ndr_initshutdown_c.c',
500         public_deps='dcerpc-binding ndr-standard'
501         )
502
503 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
504         source='gen_ndr/ndr_mgmt_c.c',
505         deps='tevent NDR_MGMT'
506         )
507
508 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
509         source='gen_ndr/ndr_oxidresolver_c.c',
510         public_deps='dcerpc-binding NDR_OXIDRESOLVER'
511         )
512
513 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
514         source='gen_ndr/ndr_remact_c.c',
515         public_deps='dcerpc-binding NDR_REMACT'
516         )
517
518 bld.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
519         source='gen_ndr/ndr_wzcsvc_c.c',
520         public_deps='dcerpc-binding NDR_WZCSVC'
521         )
522
523 bld.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
524         source='gen_ndr/ndr_w32time_c.c',
525         public_deps='dcerpc-binding NDR_W32TIME'
526         )
527
528 bld.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
529         source='gen_ndr/ndr_scerpc_c.c',
530         public_deps='dcerpc-binding NDR_SCERPC'
531         )
532
533 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
534         source='gen_ndr/ndr_ntsvcs_c.c',
535         public_deps='dcerpc-binding ndr-standard'
536         )
537
538 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
539         source='gen_ndr/ndr_netlogon_c.c',
540         public_deps='ndr-standard tevent'
541         )
542
543 bld.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
544         source='gen_ndr/ndr_trkwks_c.c',
545         public_deps='dcerpc-binding NDR_TRKWKS'
546         )
547
548 bld.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
549         source='gen_ndr/ndr_keysvc_c.c',
550         public_deps='dcerpc-binding NDR_KEYSVC'
551         )
552
553 bld.SAMBA_SUBSYSTEM('RPC_NDR_BACKUPKEY',
554         source='gen_ndr/ndr_backupkey_c.c',
555         public_deps='dcerpc-binding NDR_BACKUPKEY'
556         )
557
558 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNSP',
559         source='gen_ndr/ndr_dnsp_c.c',
560         public_deps='dcerpc-binding NDR_DNSP'
561         )
562
563 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNSSERVER',
564         source='gen_ndr/ndr_dnsserver_c.c',
565         public_deps='dcerpc-binding ndr-standard'
566         )
567
568 bld.SAMBA_SUBSYSTEM('NDR_IOCTL',
569         source='gen_ndr/ndr_ioctl.c',
570         public_deps='ndr'
571         )
572
573 # a grouping library for NDR subsystems that may be used by more than one target
574 bld.SAMBA_LIBRARY('ndr-samba',
575         source=[],
576         deps='NDR_DRSBLOBS NDR_DRSUAPI NDR_IDMAP NDR_NTLMSSP NDR_SCHANNEL NDR_MGMT NDR_DNSP NDR_EPMAPPER NDR_XATTR NDR_UNIXINFO NDR_NAMED_PIPE_AUTH NDR_DCOM NDR_NTPRINTING',
577         private_library=True,
578         grouping_library=True
579         )
580
581 # a grouping library for RPC_NDR subsystems that may be used by more than one target
582 bld.SAMBA_LIBRARY('dcerpc-samba',
583                   source='',
584                   deps='''RPC_NDR_LSA RPC_NDR_SAMR RPC_NDR_NETLOGON RPC_NDR_EVENTLOG RPC_NDR_DFS
585                   RPC_NDR_NTSVCS RPC_NDR_SVCCTL RPC_NDR_INITSHUTDOWN RPC_NDR_WKSSVC RPC_NDR_SRVSVC RPC_NDR_WINREG
586                   RPC_NDR_ECHO RPC_NDR_EPMAPPER RPC_NDR_ATSVC RPC_NDR_SPOOLSS''',
587                   public_deps='ndr-standard',
588                   private_library=True,
589                   grouping_library=True
590                   )
591
592 bld.SAMBA_LIBRARY('ndr',
593         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',
594         pc_files='ndr.pc',
595         public_deps='errors talloc samba-util',
596         public_headers='gen_ndr/misc.h gen_ndr/ndr_misc.h ndr/libndr.h:ndr.h',
597         header_path= [ ( '*gen_ndr*', 'gen_ndr' ) ],
598         depends_on='PIDL_MISC',
599         vnum='0.0.1'
600         )
601
602 bld.SAMBA_LIBRARY('dcerpc-binding',
603           source='rpc/dcerpc_error.c rpc/binding.c rpc/dcerpc_util.c rpc/binding_handle.c',
604           deps='ndr tevent NDR_DCERPC LIBTSOCKET tevent-util',
605           pc_files=[],
606           public_headers='rpc/rpc_common.h',
607           vnum='0.0.1')