s4-waf: more dependencies on talloc
[samba.git] / source4 / librpc / wscript_build
1 #!/usr/bin/env python
2
3 bld.BUILD_SUBDIR('../../librpc/idl')
4 bld.BUILD_SUBDIR('idl')
5
6 bld.SAMBA_LIBRARY('LIBNDR',
7         source='ndr/ndr_string.c ../../librpc/ndr/ndr_basic.c ../../librpc/ndr/uuid.c ../../librpc/ndr/ndr.c ../../librpc/ndr/ndr_misc.c ../../librpc/gen_ndr/ndr_misc.c',
8         pc_files='../../librpc/ndr.pc',
9         public_deps='LIBSAMBA-ERRORS talloc LIBSAMBA-UTIL CHARSET LIBSAMBA-HOSTCONFIG',
10         public_headers='../../librpc/gen_ndr/misc.h ../../librpc/gen_ndr/ndr_misc.h ../../librpc/ndr/libndr.h:ndr.h',
11         header_path= [ ( '*gen_ndr*', 'gen_ndr' ) ],
12         depends_on='PIDL_MISC',
13         vnum='0.0.1'
14         )
15
16
17 bld.SAMBA_BINARY('ndrdump',
18         source='../../librpc/tools/ndrdump.c',
19         manpages='../../librpc/tools/ndrdump.1',
20         installdir='BINDIR',
21         deps='LIBSAMBA-HOSTCONFIG LIBSAMBA-UTIL popt POPT_SAMBA NDR_TABLE LIBSAMBA-ERRORS'
22         )
23
24
25 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
26         source='../../librpc/ndr/ndr_compression.c',
27         public_deps='LIBSAMBA-ERRORS LIBNDR',
28         deps='ZLIB LZXPRESS'
29         )
30
31
32 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
33         source='../../librpc/gen_ndr/ndr_security.c ../../librpc/ndr/ndr_sec_helper.c gen_ndr/ndr_server_id.c',
34         public_deps='LIBNDR LIBSECURITY',
35         public_headers='../libcli/security/security.h gen_ndr/server_id.h',
36         header_path='gen_ndr'
37         )
38
39
40 bld.SAMBA_SUBSYSTEM('NDR_AUDIOSRV',
41         source='../../librpc/gen_ndr/ndr_audiosrv.c',
42         public_deps='LIBNDR'
43         )
44
45
46 bld.SAMBA_SUBSYSTEM('NDR_NAMED_PIPE_AUTH',
47         source='../../librpc/gen_ndr/ndr_named_pipe_auth.c',
48         public_deps='LIBNDR'
49         )
50
51
52 bld.SAMBA_SUBSYSTEM('NDR_DNSSERVER',
53         source='../../librpc/gen_ndr/ndr_dnsserver.c',
54         public_deps='LIBNDR'
55         )
56
57
58 bld.SAMBA_SUBSYSTEM('NDR_WINSTATION',
59         source='gen_ndr/ndr_winstation.c',
60         public_deps='LIBNDR'
61         )
62
63
64 bld.SAMBA_SUBSYSTEM('NDR_IRPC',
65         source='gen_ndr/ndr_irpc.c',
66         public_deps='LIBNDR NDR_SECURITY NDR_NBT'
67         )
68
69
70 bld.SAMBA_SUBSYSTEM('NDR_DCOM',
71         source='../../librpc/gen_ndr/ndr_dcom.c',
72         public_deps='LIBNDR NDR_SECURITY NDR_ORPC'
73         )
74
75
76 bld.SAMBA_SUBSYSTEM('NDR_WMI',
77         source='../../librpc/ndr/ndr_wmi.c ../../librpc/gen_ndr/ndr_wmi.c',
78         public_deps='LIBNDR NDR_SECURITY NDR_DCOM'
79         )
80
81
82 bld.SAMBA_SUBSYSTEM('NDR_DSBACKUP',
83         source='../../librpc/gen_ndr/ndr_dsbackup.c',
84         public_deps='LIBNDR'
85         )
86
87
88 bld.SAMBA_SUBSYSTEM('NDR_EFS',
89         source='../../librpc/gen_ndr/ndr_efs.c',
90         public_deps='LIBNDR NDR_SECURITY'
91         )
92
93
94 bld.SAMBA_SUBSYSTEM('NDR_ROT',
95         source='../../librpc/gen_ndr/ndr_rot.c',
96         public_deps='LIBNDR NDR_ORPC'
97         )
98
99
100 bld.SAMBA_SUBSYSTEM('NDR_FRSRPC',
101         source='../../librpc/ndr/ndr_frsrpc.c ../../librpc/gen_ndr/ndr_frsrpc.c',
102         public_deps='LIBNDR'
103         )
104
105
106 bld.SAMBA_SUBSYSTEM('NDR_FRSAPI',
107         source='../../librpc/gen_ndr/ndr_frsapi.c',
108         public_deps='LIBNDR'
109         )
110
111
112 bld.SAMBA_SUBSYSTEM('NDR_FRSTRANS',
113         source='../../librpc/gen_ndr/ndr_frstrans.c',
114         public_deps='LIBNDR'
115         )
116
117
118 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
119         source='../../librpc/ndr/ndr_drsuapi.c ../../librpc/gen_ndr/ndr_drsuapi.c',
120         public_deps='LIBNDR NDR_COMPRESSION NDR_SECURITY NDR_STANDARD ASN1_UTIL'
121         )
122
123
124 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
125         source='../../librpc/ndr/ndr_drsblobs.c ../../librpc/gen_ndr/ndr_drsblobs.c',
126         public_deps='LIBNDR NDR_DRSUAPI'
127         )
128
129
130 bld.SAMBA_SUBSYSTEM('NDR_DFSBLOBS',
131         source='../../librpc/gen_ndr/ndr_dfsblobs.c',
132         public_deps='LIBNDR'
133         )
134
135
136 bld.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
137         source='gen_ndr/ndr_sasl_helpers.c',
138         public_deps='LIBNDR'
139         )
140
141
142 bld.SAMBA_SUBSYSTEM('NDR_POLICYAGENT',
143         source='../../librpc/gen_ndr/ndr_policyagent.c',
144         public_deps='LIBNDR'
145         )
146
147
148 bld.SAMBA_SUBSYSTEM('NDR_UNIXINFO',
149         source='../../librpc/gen_ndr/ndr_unixinfo.c',
150         public_deps='LIBNDR NDR_SECURITY'
151         )
152
153
154 bld.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
155         source='gen_ndr/ndr_nfs4acl.c',
156         public_deps='LIBNDR NDR_SECURITY'
157         )
158
159
160 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS',
161         source='../../librpc/gen_ndr/ndr_spoolss.c',
162         public_deps='LIBNDR NDR_SPOOLSS_BUF NDR_SECURITY'
163         )
164
165
166 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF',
167         source='../../librpc/ndr/ndr_spoolss_buf.c',
168         deps='talloc'
169         )
170
171
172 bld.SAMBA_SUBSYSTEM('NDR_EPMAPPER',
173         source='../../librpc/gen_ndr/ndr_epmapper.c',
174         public_deps='LIBNDR'
175         )
176
177
178 bld.SAMBA_SUBSYSTEM('NDR_DBGIDL',
179         source='../../librpc/gen_ndr/ndr_dbgidl.c',
180         public_deps='LIBNDR'
181         )
182
183
184 bld.SAMBA_SUBSYSTEM('NDR_DSSETUP',
185         source='../../librpc/gen_ndr/ndr_dssetup.c',
186         public_deps='LIBNDR'
187         )
188
189
190 bld.SAMBA_SUBSYSTEM('NDR_MSGSVC',
191         source='../../librpc/gen_ndr/ndr_msgsvc.c',
192         public_deps='LIBNDR'
193         )
194
195
196 bld.SAMBA_SUBSYSTEM('NDR_WINSIF',
197         source='gen_ndr/ndr_winsif.c',
198         public_deps='LIBNDR'
199         )
200
201
202 bld.SAMBA_SUBSYSTEM('NDR_MGMT',
203         source='../../librpc/gen_ndr/ndr_mgmt.c',
204         public_deps='LIBNDR'
205         )
206
207
208 bld.SAMBA_SUBSYSTEM('NDR_PROTECTED_STORAGE',
209         source='../../librpc/gen_ndr/ndr_protected_storage.c',
210         public_deps='LIBNDR'
211         )
212
213
214 bld.SAMBA_SUBSYSTEM('NDR_ORPC',
215         source='../../librpc/ndr/ndr_orpc.c ../../librpc/gen_ndr/ndr_orpc.c',
216         public_deps='LIBNDR'
217         )
218
219
220 bld.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
221         source='../../librpc/gen_ndr/ndr_oxidresolver.c',
222         public_deps='LIBNDR NDR_ORPC'
223         )
224
225
226 bld.SAMBA_SUBSYSTEM('NDR_REMACT',
227         source='../../librpc/gen_ndr/ndr_remact.c',
228         public_deps='LIBNDR NDR_ORPC'
229         )
230
231
232 bld.SAMBA_SUBSYSTEM('NDR_WZCSVC',
233         source='../../librpc/gen_ndr/ndr_wzcsvc.c',
234         public_deps='LIBNDR'
235         )
236
237
238 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
239         source='../../librpc/gen_ndr/ndr_browser.c',
240         public_deps='LIBNDR'
241         )
242
243
244 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
245         source='../../librpc/gen_ndr/ndr_w32time.c',
246         public_deps='LIBNDR'
247         )
248
249
250 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
251         source='../../librpc/gen_ndr/ndr_scerpc.c',
252         public_deps='LIBNDR'
253         )
254
255
256 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
257         source='../../librpc/gen_ndr/ndr_trkwks.c',
258         public_deps='LIBNDR'
259         )
260
261
262 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
263         source='../../librpc/gen_ndr/ndr_keysvc.c',
264         public_deps='LIBNDR'
265         )
266
267
268 bld.SAMBA_SUBSYSTEM('NDR_KRB5PAC',
269         source='../../librpc/ndr/ndr_krb5pac.c ../../librpc/gen_ndr/ndr_krb5pac.c',
270         public_deps='LIBNDR NDR_STANDARD NDR_SECURITY'
271         )
272
273
274 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
275         source='../../librpc/ndr/ndr_xattr.c ../../librpc/gen_ndr/ndr_xattr.c',
276         public_deps='LIBNDR NDR_SECURITY'
277         )
278
279
280 bld.SAMBA_SUBSYSTEM('NDR_OPENDB',
281         source='gen_ndr/ndr_opendb.c',
282         public_deps='LIBNDR'
283         )
284
285
286 bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
287         source='gen_ndr/ndr_notify.c',
288         public_deps='LIBNDR'
289         )
290
291
292 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
293         source='../../librpc/ndr/ndr_schannel.c ../../librpc/gen_ndr/ndr_schannel.c',
294         public_deps='LIBNDR NDR_NBT'
295         )
296
297
298 bld.SAMBA_SUBSYSTEM('NDR_NBT',
299         source='../../librpc/gen_ndr/ndr_nbt.c',
300         public_deps='LIBNDR NDR_NBT_BUF NDR_SECURITY NDR_STANDARD LIBCLI_NDR_NETLOGON',
301         public_headers='../../librpc/gen_ndr/nbt.h',
302         header_path='gen_ndr'
303         )
304
305
306 bld.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
307         source='gen_ndr/ndr_ntp_signd.c',
308         public_deps='LIBNDR'
309         )
310
311
312 bld.SAMBA_SUBSYSTEM('NDR_WINSREPL',
313         source='gen_ndr/ndr_winsrepl.c',
314         public_deps='LIBNDR NDR_NBT'
315         )
316
317
318 bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
319         source='gen_ndr/ndr_winbind.c',
320         public_deps='LIBNDR NDR_STANDARD'
321         )
322
323
324 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
325         source='../../librpc/ndr/ndr_ntlmssp.c ../../librpc/gen_ndr/ndr_ntlmssp.c',
326         public_deps='LIBNDR NDR_STANDARD'
327         )
328
329
330 bld.SAMBA_LIBRARY('NDR_STANDARD',
331         source='../../librpc/gen_ndr/ndr_echo.c ../../librpc/gen_ndr/ndr_lsa.c ../../librpc/gen_ndr/ndr_samr.c ../../librpc/ndr/ndr_netlogon.c ../../librpc/gen_ndr/ndr_netlogon.c ../../librpc/gen_ndr/ndr_dfs.c ../../librpc/gen_ndr/ndr_atsvc.c ../../librpc/gen_ndr/ndr_wkssvc.c ../../librpc/gen_ndr/ndr_srvsvc.c ../../librpc/ndr/ndr_svcctl.c ../../librpc/gen_ndr/ndr_svcctl.c ../../librpc/gen_ndr/ndr_winreg.c ../../librpc/gen_ndr/ndr_initshutdown.c ../../librpc/gen_ndr/ndr_eventlog.c ../../librpc/gen_ndr/ndr_ntsvcs.c',
332         vnum='0.0.1',
333         pc_files='../../librpc/ndr_standard.pc',
334         deps='NDR_SECURITY',
335         public_deps='LIBNDR',
336         public_headers='../../librpc/gen_ndr/samr.h ../../librpc/gen_ndr/ndr_samr.h ../rpc_server/lsa/lsa.h ../torture/rpc/netlogon.h ../../librpc/gen_ndr/atsvc.h ../../librpc/gen_ndr/ndr_atsvc.h ../../librpc/gen_ndr/ndr_svcctl.h ../../librpc/gen_ndr/svcctl.h',
337         header_path='gen_ndr'
338         )
339
340
341 bld.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
342
343 bld.SAMBA_SUBSYSTEM('NDR_TABLE',
344         source='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
345         public_deps='NDR_STANDARD NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT NDR_PROTECTED_STORAGE NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC NDR_KRB5PAC NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS NDR_NBT NDR_WINSREPL NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS',
346         depends_on='GEN_NDR_TABLES'
347         )
348
349
350 bld.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
351         source='../../librpc/gen_ndr/ndr_xattr_c.c',
352         public_deps='NDR_XATTR dcerpc'
353         )
354
355
356 bld.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
357         source='../../librpc/gen_ndr/ndr_rot_c.c',
358         public_deps='NDR_ROT dcerpc'
359         )
360
361
362 bld.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
363         source='../../librpc/gen_ndr/ndr_audiosrv_c.c',
364         public_deps='NDR_AUDIOSRV dcerpc'
365         )
366
367
368 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
369         source='../../librpc/gen_ndr/ndr_echo_c.c',
370         public_deps='dcerpc NDR_STANDARD'
371         )
372
373
374 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
375         source='../../librpc/gen_ndr/ndr_dsbackup_c.c',
376         public_deps='dcerpc NDR_DSBACKUP'
377         )
378
379
380 bld.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
381         source='../../librpc/gen_ndr/ndr_efs_c.c',
382         public_deps='dcerpc NDR_EFS'
383         )
384
385
386 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
387         source='../../librpc/gen_ndr/ndr_lsa_c.c',
388         public_deps='dcerpc NDR_STANDARD'
389         )
390
391
392 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
393         source='../../librpc/gen_ndr/ndr_dfs_c.c',
394         public_deps='dcerpc NDR_STANDARD'
395         )
396
397
398 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
399         source='../../librpc/gen_ndr/ndr_frsapi_c.c',
400         public_deps='dcerpc NDR_FRSAPI'
401         )
402
403
404 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
405         source='../../librpc/gen_ndr/ndr_drsuapi_c.c',
406         public_deps='dcerpc NDR_DRSUAPI'
407         )
408
409
410 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
411         source='../../librpc/gen_ndr/ndr_policyagent_c.c',
412         public_deps='dcerpc NDR_POLICYAGENT'
413         )
414
415
416 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
417         source='../../librpc/gen_ndr/ndr_unixinfo_c.c',
418         public_deps='dcerpc NDR_UNIXINFO'
419         )
420
421
422 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
423         source='../../librpc/gen_ndr/ndr_browser_c.c',
424         public_deps='dcerpc NDR_BROWSER'
425         )
426
427
428 bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
429         source='gen_ndr/ndr_irpc_c.c',
430         public_deps='dcerpc NDR_IRPC'
431         )
432
433
434 bld.SAMBA_LIBRARY('dcerpc_samr',
435         source='../../librpc/gen_ndr/ndr_samr_c.c',
436         pc_files='dcerpc_samr.pc',
437         vnum='0.0.1',
438         public_deps='dcerpc NDR_STANDARD',
439         public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
440         header_path='gen_ndr'
441         )
442
443
444 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
445         source='../../librpc/gen_ndr/ndr_spoolss_c.c',
446         public_deps='dcerpc NDR_SPOOLSS'
447         )
448
449
450 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
451         source='../../librpc/gen_ndr/ndr_wkssvc_c.c',
452         public_deps='dcerpc NDR_STANDARD'
453         )
454
455
456 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
457         source='../../librpc/gen_ndr/ndr_srvsvc_c.c',
458         public_deps='dcerpc NDR_SRVSVC'
459         )
460
461
462 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
463         source='../../librpc/gen_ndr/ndr_svcctl_c.c',
464         public_deps='dcerpc NDR_STANDARD',
465         public_headers='../../librpc/gen_ndr/ndr_svcctl_c.h',
466         header_path='gen_ndr'
467         )
468
469
470 bld.SAMBA_LIBRARY('dcerpc_atsvc',
471         source='../../librpc/gen_ndr/ndr_atsvc_c.c',
472         pc_files='dcerpc_atsvc.pc',
473         vnum='0.0.1',
474         public_deps='dcerpc NDR_STANDARD',
475         public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
476         header_path='gen_ndr'
477         )
478
479
480 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
481         source='../../librpc/gen_ndr/ndr_eventlog_c.c',
482         public_deps='dcerpc NDR_STANDARD'
483         )
484
485
486 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
487         source='../../librpc/gen_ndr/ndr_epmapper_c.c',
488         public_deps='tevent NDR_EPMAPPER'
489         )
490
491
492 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
493         source='../../librpc/gen_ndr/ndr_dbgidl_c.c',
494         public_deps='dcerpc NDR_DBGIDL'
495         )
496
497
498 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
499         source='../../librpc/gen_ndr/ndr_dssetup_c.c',
500         public_deps='dcerpc NDR_DSSETUP'
501         )
502
503
504 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
505         source='../../librpc/gen_ndr/ndr_msgsvc_c.c',
506         public_deps='dcerpc NDR_MSGSVC'
507         )
508
509
510 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
511         source='gen_ndr/ndr_winsif_c.c',
512         public_deps='dcerpc NDR_WINSIF'
513         )
514
515
516 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
517         source='../../librpc/gen_ndr/ndr_winreg_c.c',
518         public_deps='dcerpc NDR_STANDARD'
519         )
520
521
522 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
523         source='../../librpc/gen_ndr/ndr_initshutdown_c.c',
524         public_deps='dcerpc NDR_STANDARD'
525         )
526
527
528 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
529         source='../../librpc/gen_ndr/ndr_mgmt_c.c',
530         deps='tevent NDR_MGMT'
531         )
532
533
534 bld.SAMBA_SUBSYSTEM('RPC_NDR_PROTECTED_STORAGE',
535         source='../../librpc/gen_ndr/ndr_protected_storage_c.c',
536         public_deps='dcerpc NDR_PROTECTED_STORAGE'
537         )
538
539
540 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
541         source='../../librpc/gen_ndr/ndr_oxidresolver_c.c',
542         public_deps='dcerpc NDR_OXIDRESOLVER'
543         )
544
545
546 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
547         source='../../librpc/gen_ndr/ndr_remact_c.c',
548         public_deps='dcerpc NDR_REMACT'
549         )
550
551
552 bld.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
553         source='../../librpc/gen_ndr/ndr_wzcsvc_c.c',
554         public_deps='dcerpc NDR_WZCSVC'
555         )
556
557
558 bld.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
559         source='../../librpc/gen_ndr/ndr_w32time_c.c',
560         public_deps='dcerpc NDR_W32TIME'
561         )
562
563
564 bld.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
565         source='../../librpc/gen_ndr/ndr_scerpc_c.c',
566         public_deps='dcerpc NDR_SCERPC'
567         )
568
569
570 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
571         source='../../librpc/gen_ndr/ndr_ntsvcs_c.c',
572         public_deps='dcerpc NDR_STANDARD'
573         )
574
575
576 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
577         source='../../librpc/gen_ndr/ndr_netlogon_c.c',
578         public_deps='NDR_STANDARD'
579         )
580
581
582 bld.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
583         source='../../librpc/gen_ndr/ndr_trkwks_c.c',
584         public_deps='dcerpc NDR_TRKWKS'
585         )
586
587
588 bld.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
589         source='../../librpc/gen_ndr/ndr_keysvc_c.c',
590         public_deps='dcerpc NDR_KEYSVC'
591         )
592
593
594 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
595         source='../../librpc/gen_ndr/ndr_dcerpc.c',
596         public_deps='LIBNDR',
597         public_headers='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
598         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
599         )
600
601
602 bld.SAMBA_LIBRARY('dcerpc',
603         source='rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c rpc/dcerpc_connect.c rpc/dcerpc_secondary.c ../../librpc/rpc/binding.c ../../librpc/rpc/dcerpc_error.c',
604         pc_files='dcerpc.pc',
605         deps='samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 LIBNDR NDR_DCERPC RPC_NDR_EPMAPPER NDR_SCHANNEL RPC_NDR_NETLOGON RPC_NDR_MGMT gensec LIBCLI_AUTH LIBCLI_RAW LP_RESOLVE UTIL_TEVENT',
606         autoproto='rpc/dcerpc_proto.h',
607         public_deps='CREDENTIALS tevent talloc',
608         public_headers='../../librpc/gen_ndr/mgmt.h ../../librpc/gen_ndr/ndr_mgmt.h ../../librpc/gen_ndr/ndr_mgmt_c.h ../../librpc/gen_ndr/epmapper.h ../../librpc/gen_ndr/ndr_epmapper.h ../../librpc/gen_ndr/ndr_epmapper_c.h',
609         header_path='gen_ndr',
610         vnum='0.0.1'
611         )
612
613
614 bld.SAMBA_PYTHON('python_dcerpc',
615         source='rpc/pyrpc.c',
616         public_deps='LIBCLI_SMB LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG pycredentials pyparam_util',
617         realname='samba/dcerpc/base.so'
618         )
619
620
621 bld.SAMBA_PYTHON('python_echo',
622         source='../../librpc/gen_ndr/py_echo.c',
623         deps='RPC_NDR_ECHO PYTALLOC pyparam_util pycredentials python_dcerpc',
624         realname='samba/dcerpc/echo.so'
625         )
626
627
628 bld.SAMBA_PYTHON('python_winreg',
629         source='../../librpc/gen_ndr/py_winreg.c',
630         deps='RPC_NDR_WINREG PYTALLOC pyparam_util pycredentials python_dcerpc',
631         realname='samba/dcerpc/winreg.so'
632         )
633
634
635 bld.SAMBA_PYTHON('python_dcerpc_misc',
636         source='../../librpc/gen_ndr/py_misc.c',
637         deps='PYTALLOC python_dcerpc NDR_MISC NDR_KRB5PAC',
638         realname='samba/dcerpc/misc.so'
639         )
640
641
642 bld.SAMBA_PYTHON('python_initshutdown',
643         source='../../librpc/gen_ndr/py_initshutdown.c',
644         deps='RPC_NDR_INITSHUTDOWN PYTALLOC pyparam_util pycredentials python_dcerpc',
645         realname='samba/dcerpc/initshutdown.so'
646         )
647
648
649 bld.SAMBA_PYTHON('python_epmapper',
650         source='../../librpc/gen_ndr/py_epmapper.c',
651         deps='dcerpc PYTALLOC pyparam_util pycredentials python_dcerpc',
652         realname='samba/dcerpc/epmapper.so'
653         )
654
655
656 bld.SAMBA_PYTHON('python_mgmt',
657         source='../../librpc/gen_ndr/py_mgmt.c',
658         deps='PYTALLOC param pycredentials dcerpc python_dcerpc',
659         realname='samba/dcerpc/mgmt.so'
660         )
661
662
663 bld.SAMBA_PYTHON('python_atsvc',
664         source='../../librpc/gen_ndr/py_atsvc.c',
665         deps='dcerpc_atsvc PYTALLOC pyparam_util pycredentials python_dcerpc',
666         realname='samba/dcerpc/atsvc.so'
667         )
668
669
670 bld.SAMBA_PYTHON('python_dcerpc_nbt',
671         source='../../librpc/gen_ndr/py_nbt.c',
672         deps='NDR_NBT PYTALLOC pyparam_util pycredentials python_dcerpc',
673         realname='samba/dcerpc/nbt.so'
674         )
675
676
677 bld.SAMBA_PYTHON('python_samr',
678         source='../../librpc/gen_ndr/py_samr.c',
679         deps='dcerpc_samr PYTALLOC pycredentials pyparam_util python_dcerpc',
680         realname='samba/dcerpc/samr.so'
681         )
682
683
684 bld.SAMBA_PYTHON('python_svcctl',
685         source='../../librpc/gen_ndr/py_svcctl.c',
686         deps='RPC_NDR_SVCCTL PYTALLOC pyparam_util pycredentials python_dcerpc',
687         realname='samba/dcerpc/svcctl.so'
688         )
689
690
691 bld.SAMBA_PYTHON('python_lsa',
692         source='../../librpc/gen_ndr/py_lsa.c',
693         deps='RPC_NDR_LSA PYTALLOC pyparam_util pycredentials python_dcerpc',
694         realname='samba/dcerpc/lsa.so'
695         )
696
697
698 bld.SAMBA_PYTHON('python_wkssvc',
699         source='../../librpc/gen_ndr/py_wkssvc.c',
700         deps='RPC_NDR_WKSSVC PYTALLOC pyparam_util pycredentials python_dcerpc',
701         realname='samba/dcerpc/wkssvc.so'
702         )
703
704
705 bld.SAMBA_PYTHON('python_dfs',
706         source='../../librpc/gen_ndr/py_dfs.c',
707         deps='RPC_NDR_DFS PYTALLOC pyparam_util pycredentials python_dcerpc',
708         realname='samba/dcerpc/dfs.so'
709         )
710
711
712 bld.SAMBA_PYTHON('python_unixinfo',
713         source='../../librpc/gen_ndr/py_unixinfo.c',
714         deps='RPC_NDR_UNIXINFO PYTALLOC pyparam_util pycredentials python_dcerpc',
715         realname='samba/dcerpc/unixinfo.so'
716         )
717
718
719 bld.SAMBA_PYTHON('python_irpc',
720         source='gen_ndr/py_irpc.c',
721         deps='RPC_NDR_IRPC PYTALLOC pyparam_util pycredentials python_dcerpc',
722         realname='samba/dcerpc/irpc.so'
723         )
724
725
726 bld.SAMBA_PYTHON('python_drsuapi',
727         source='../../librpc/gen_ndr/py_drsuapi.c',
728         deps='RPC_NDR_DRSUAPI PYTALLOC pyparam_util pycredentials python_dcerpc',
729         realname='samba/dcerpc/drsuapi.so'
730         )
731
732
733 bld.SAMBA_PYTHON('python_dcerpc_security',
734         source='../../librpc/gen_ndr/py_security.c',
735         deps='PYTALLOC python_dcerpc_misc python_dcerpc NDR_SECURITY',
736         realname='samba/dcerpc/security.so'
737         )
738
739
740 bld.SAMBA_PYTHON('python_dcerpc_xattr',
741         source='../../librpc/gen_ndr/py_xattr.c',
742         deps='PYTALLOC python_dcerpc_misc python_dcerpc python_dcerpc_security NDR_XATTR RPC_NDR_XATTR',
743         realname='samba/dcerpc/xattr.so'
744         )
745
746 bld.SAMBA_SCRIPT('python_dcerpc_init',
747                  pattern='rpc/dcerpc.py',
748                  installdir='python/samba/dcerpc',
749                  installname='__init__.py')
750
751 bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')