fb062e6c84b843df7e670fa843fd2dcf1cfae1b3
[kai/samba.git] / source4 / librpc / wscript_build
1 #!/usr/bin/env python
2
3 bld.RECURSE('../../librpc/idl')
4 bld.RECURSE('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_DRSBLOBS',
411         source='../../librpc/gen_ndr/ndr_drsblobs_c.c',
412         public_deps='dcerpc NDR_DRSBLOBS'
413         )
414
415
416 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
417         source='../../librpc/gen_ndr/ndr_policyagent_c.c',
418         public_deps='dcerpc NDR_POLICYAGENT'
419         )
420
421
422 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
423         source='../../librpc/gen_ndr/ndr_unixinfo_c.c',
424         public_deps='dcerpc NDR_UNIXINFO'
425         )
426
427
428 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
429         source='../../librpc/gen_ndr/ndr_browser_c.c',
430         public_deps='dcerpc NDR_BROWSER'
431         )
432
433
434 bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
435         source='gen_ndr/ndr_irpc_c.c',
436         public_deps='dcerpc NDR_IRPC'
437         )
438
439
440 bld.SAMBA_LIBRARY('dcerpc_samr',
441         source='../../librpc/gen_ndr/ndr_samr_c.c',
442         pc_files='dcerpc_samr.pc',
443         vnum='0.0.1',
444         public_deps='dcerpc NDR_STANDARD',
445         public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
446         header_path='gen_ndr'
447         )
448
449
450 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
451         source='../../librpc/gen_ndr/ndr_spoolss_c.c',
452         public_deps='dcerpc NDR_SPOOLSS'
453         )
454
455
456 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
457         source='../../librpc/gen_ndr/ndr_wkssvc_c.c',
458         public_deps='dcerpc NDR_STANDARD'
459         )
460
461
462 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
463         source='../../librpc/gen_ndr/ndr_srvsvc_c.c',
464         public_deps='dcerpc NDR_SRVSVC'
465         )
466
467
468 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
469         source='../../librpc/gen_ndr/ndr_svcctl_c.c',
470         public_deps='dcerpc NDR_STANDARD',
471         public_headers='../../librpc/gen_ndr/ndr_svcctl_c.h',
472         header_path='gen_ndr'
473         )
474
475
476 bld.SAMBA_LIBRARY('dcerpc_atsvc',
477         source='../../librpc/gen_ndr/ndr_atsvc_c.c',
478         pc_files='dcerpc_atsvc.pc',
479         vnum='0.0.1',
480         public_deps='dcerpc NDR_STANDARD',
481         public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
482         header_path='gen_ndr'
483         )
484
485
486 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
487         source='../../librpc/gen_ndr/ndr_eventlog_c.c',
488         public_deps='dcerpc NDR_STANDARD'
489         )
490
491
492 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
493         source='../../librpc/gen_ndr/ndr_epmapper_c.c',
494         public_deps='tevent NDR_EPMAPPER'
495         )
496
497
498 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
499         source='../../librpc/gen_ndr/ndr_dbgidl_c.c',
500         public_deps='dcerpc NDR_DBGIDL'
501         )
502
503
504 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
505         source='../../librpc/gen_ndr/ndr_dssetup_c.c',
506         public_deps='dcerpc NDR_DSSETUP'
507         )
508
509
510 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
511         source='../../librpc/gen_ndr/ndr_msgsvc_c.c',
512         public_deps='dcerpc NDR_MSGSVC'
513         )
514
515
516 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
517         source='gen_ndr/ndr_winsif_c.c',
518         public_deps='dcerpc NDR_WINSIF'
519         )
520
521
522 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
523         source='../../librpc/gen_ndr/ndr_winreg_c.c',
524         public_deps='dcerpc NDR_STANDARD'
525         )
526
527
528 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
529         source='../../librpc/gen_ndr/ndr_initshutdown_c.c',
530         public_deps='dcerpc NDR_STANDARD'
531         )
532
533
534 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
535         source='../../librpc/gen_ndr/ndr_mgmt_c.c',
536         deps='tevent NDR_MGMT'
537         )
538
539
540 bld.SAMBA_SUBSYSTEM('RPC_NDR_PROTECTED_STORAGE',
541         source='../../librpc/gen_ndr/ndr_protected_storage_c.c',
542         public_deps='dcerpc NDR_PROTECTED_STORAGE'
543         )
544
545
546 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
547         source='../../librpc/gen_ndr/ndr_oxidresolver_c.c',
548         public_deps='dcerpc NDR_OXIDRESOLVER'
549         )
550
551
552 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
553         source='../../librpc/gen_ndr/ndr_remact_c.c',
554         public_deps='dcerpc NDR_REMACT'
555         )
556
557
558 bld.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
559         source='../../librpc/gen_ndr/ndr_wzcsvc_c.c',
560         public_deps='dcerpc NDR_WZCSVC'
561         )
562
563
564 bld.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
565         source='../../librpc/gen_ndr/ndr_w32time_c.c',
566         public_deps='dcerpc NDR_W32TIME'
567         )
568
569
570 bld.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
571         source='../../librpc/gen_ndr/ndr_scerpc_c.c',
572         public_deps='dcerpc NDR_SCERPC'
573         )
574
575
576 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
577         source='../../librpc/gen_ndr/ndr_ntsvcs_c.c',
578         public_deps='dcerpc NDR_STANDARD'
579         )
580
581
582 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
583         source='../../librpc/gen_ndr/ndr_netlogon_c.c',
584         public_deps='NDR_STANDARD'
585         )
586
587
588 bld.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
589         source='../../librpc/gen_ndr/ndr_trkwks_c.c',
590         public_deps='dcerpc NDR_TRKWKS'
591         )
592
593
594 bld.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
595         source='../../librpc/gen_ndr/ndr_keysvc_c.c',
596         public_deps='dcerpc NDR_KEYSVC'
597         )
598
599
600 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
601         source='../../librpc/gen_ndr/ndr_dcerpc.c',
602         public_deps='LIBNDR',
603         public_headers='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
604         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
605         )
606
607
608 bld.SAMBA_LIBRARY('dcerpc',
609         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',
610         pc_files='dcerpc.pc',
611         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',
612         autoproto='rpc/dcerpc_proto.h',
613         public_deps='CREDENTIALS tevent talloc',
614         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',
615         header_path='gen_ndr',
616         vnum='0.0.1'
617         )
618
619
620 bld.SAMBA_PYTHON('python_dcerpc',
621         source='rpc/pyrpc.c',
622         public_deps='LIBCLI_SMB LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG pycredentials pyparam_util',
623         realname='samba/dcerpc/base.so'
624         )
625
626
627 bld.SAMBA_PYTHON('python_echo',
628         source='../../librpc/gen_ndr/py_echo.c',
629         deps='RPC_NDR_ECHO PYTALLOC pyparam_util pycredentials python_dcerpc',
630         realname='samba/dcerpc/echo.so'
631         )
632
633
634 bld.SAMBA_PYTHON('python_winreg',
635         source='../../librpc/gen_ndr/py_winreg.c',
636         deps='RPC_NDR_WINREG PYTALLOC pyparam_util pycredentials python_dcerpc',
637         realname='samba/dcerpc/winreg.so'
638         )
639
640
641 bld.SAMBA_PYTHON('python_dcerpc_misc',
642         source='../../librpc/gen_ndr/py_misc.c',
643         deps='PYTALLOC python_dcerpc NDR_MISC NDR_KRB5PAC',
644         realname='samba/dcerpc/misc.so'
645         )
646
647
648 bld.SAMBA_PYTHON('python_initshutdown',
649         source='../../librpc/gen_ndr/py_initshutdown.c',
650         deps='RPC_NDR_INITSHUTDOWN PYTALLOC pyparam_util pycredentials python_dcerpc',
651         realname='samba/dcerpc/initshutdown.so'
652         )
653
654
655 bld.SAMBA_PYTHON('python_epmapper',
656         source='../../librpc/gen_ndr/py_epmapper.c',
657         deps='dcerpc PYTALLOC pyparam_util pycredentials python_dcerpc',
658         realname='samba/dcerpc/epmapper.so'
659         )
660
661
662 bld.SAMBA_PYTHON('python_mgmt',
663         source='../../librpc/gen_ndr/py_mgmt.c',
664         deps='PYTALLOC param pycredentials dcerpc python_dcerpc',
665         realname='samba/dcerpc/mgmt.so'
666         )
667
668
669 bld.SAMBA_PYTHON('python_atsvc',
670         source='../../librpc/gen_ndr/py_atsvc.c',
671         deps='dcerpc_atsvc PYTALLOC pyparam_util pycredentials python_dcerpc',
672         realname='samba/dcerpc/atsvc.so'
673         )
674
675
676 bld.SAMBA_PYTHON('python_dcerpc_nbt',
677         source='../../librpc/gen_ndr/py_nbt.c',
678         deps='NDR_NBT PYTALLOC pyparam_util pycredentials python_dcerpc',
679         realname='samba/dcerpc/nbt.so'
680         )
681
682
683 bld.SAMBA_PYTHON('python_samr',
684         source='../../librpc/gen_ndr/py_samr.c',
685         deps='dcerpc_samr PYTALLOC pycredentials pyparam_util python_dcerpc',
686         realname='samba/dcerpc/samr.so'
687         )
688
689
690 bld.SAMBA_PYTHON('python_svcctl',
691         source='../../librpc/gen_ndr/py_svcctl.c',
692         deps='RPC_NDR_SVCCTL PYTALLOC pyparam_util pycredentials python_dcerpc',
693         realname='samba/dcerpc/svcctl.so'
694         )
695
696
697 bld.SAMBA_PYTHON('python_lsa',
698         source='../../librpc/gen_ndr/py_lsa.c',
699         deps='RPC_NDR_LSA PYTALLOC pyparam_util pycredentials python_dcerpc',
700         realname='samba/dcerpc/lsa.so'
701         )
702
703
704 bld.SAMBA_PYTHON('python_wkssvc',
705         source='../../librpc/gen_ndr/py_wkssvc.c',
706         deps='RPC_NDR_WKSSVC PYTALLOC pyparam_util pycredentials python_dcerpc',
707         realname='samba/dcerpc/wkssvc.so'
708         )
709
710
711 bld.SAMBA_PYTHON('python_dfs',
712         source='../../librpc/gen_ndr/py_dfs.c',
713         deps='RPC_NDR_DFS PYTALLOC pyparam_util pycredentials python_dcerpc',
714         realname='samba/dcerpc/dfs.so'
715         )
716
717
718 bld.SAMBA_PYTHON('python_unixinfo',
719         source='../../librpc/gen_ndr/py_unixinfo.c',
720         deps='RPC_NDR_UNIXINFO PYTALLOC pyparam_util pycredentials python_dcerpc',
721         realname='samba/dcerpc/unixinfo.so'
722         )
723
724
725 bld.SAMBA_PYTHON('python_irpc',
726         source='gen_ndr/py_irpc.c',
727         deps='RPC_NDR_IRPC PYTALLOC pyparam_util pycredentials python_dcerpc',
728         realname='samba/dcerpc/irpc.so'
729         )
730
731
732 bld.SAMBA_PYTHON('python_drsuapi',
733         source='../../librpc/gen_ndr/py_drsuapi.c',
734         deps='RPC_NDR_DRSUAPI PYTALLOC pyparam_util pycredentials python_dcerpc',
735         realname='samba/dcerpc/drsuapi.so'
736         )
737
738
739 bld.SAMBA_PYTHON('python_drsblobs',
740         source='../../librpc/gen_ndr/py_drsblobs.c',
741         deps='RPC_NDR_DRSBLOBS PYTALLOC pyparam_util pycredentials python_dcerpc',
742         realname='samba/dcerpc/drsblobs.so'
743         )
744
745
746 bld.SAMBA_PYTHON('python_dcerpc_security',
747         source='../../librpc/gen_ndr/py_security.c',
748         deps='PYTALLOC python_dcerpc_misc python_dcerpc NDR_SECURITY',
749         realname='samba/dcerpc/security.so'
750         )
751
752 bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
753         source='../../librpc/gen_ndr/py_drsblobs.c ../../librpc/gen_ndr/ndr_drsblobs_c.c',
754         deps='PYTALLOC python_dcerpc_misc python_dcerpc NDR_SECURITY',
755         realname='samba/dcerpc/drsblobs.so'
756         )
757
758
759 bld.SAMBA_PYTHON('python_dcerpc_xattr',
760         source='../../librpc/gen_ndr/py_xattr.c',
761         deps='PYTALLOC python_dcerpc_misc python_dcerpc python_dcerpc_security NDR_XATTR RPC_NDR_XATTR',
762         realname='samba/dcerpc/xattr.so'
763         )
764
765 bld.SAMBA_SCRIPT('python_dcerpc_init',
766                  pattern='rpc/dcerpc.py',
767                  installdir='python/samba/dcerpc',
768                  installname='__init__.py')
769
770 bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')