s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
[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 LIBPOPT 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         )
169
170
171 bld.SAMBA_SUBSYSTEM('NDR_EPMAPPER',
172         source='../../librpc/gen_ndr/ndr_epmapper.c',
173         public_deps='LIBNDR'
174         )
175
176
177 bld.SAMBA_SUBSYSTEM('NDR_DBGIDL',
178         source='../../librpc/gen_ndr/ndr_dbgidl.c',
179         public_deps='LIBNDR'
180         )
181
182
183 bld.SAMBA_SUBSYSTEM('NDR_DSSETUP',
184         source='../../librpc/gen_ndr/ndr_dssetup.c',
185         public_deps='LIBNDR'
186         )
187
188
189 bld.SAMBA_SUBSYSTEM('NDR_MSGSVC',
190         source='../../librpc/gen_ndr/ndr_msgsvc.c',
191         public_deps='LIBNDR'
192         )
193
194
195 bld.SAMBA_SUBSYSTEM('NDR_WINSIF',
196         source='gen_ndr/ndr_winsif.c',
197         public_deps='LIBNDR'
198         )
199
200
201 bld.SAMBA_SUBSYSTEM('NDR_MGMT',
202         source='../../librpc/gen_ndr/ndr_mgmt.c',
203         public_deps='LIBNDR'
204         )
205
206
207 bld.SAMBA_SUBSYSTEM('NDR_PROTECTED_STORAGE',
208         source='../../librpc/gen_ndr/ndr_protected_storage.c',
209         public_deps='LIBNDR'
210         )
211
212
213 bld.SAMBA_SUBSYSTEM('NDR_ORPC',
214         source='../../librpc/ndr/ndr_orpc.c ../../librpc/gen_ndr/ndr_orpc.c',
215         public_deps='LIBNDR'
216         )
217
218
219 bld.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
220         source='../../librpc/gen_ndr/ndr_oxidresolver.c',
221         public_deps='LIBNDR NDR_ORPC'
222         )
223
224
225 bld.SAMBA_SUBSYSTEM('NDR_REMACT',
226         source='../../librpc/gen_ndr/ndr_remact.c',
227         public_deps='LIBNDR NDR_ORPC'
228         )
229
230
231 bld.SAMBA_SUBSYSTEM('NDR_WZCSVC',
232         source='../../librpc/gen_ndr/ndr_wzcsvc.c',
233         public_deps='LIBNDR'
234         )
235
236
237 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
238         source='../../librpc/gen_ndr/ndr_browser.c',
239         public_deps='LIBNDR'
240         )
241
242
243 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
244         source='../../librpc/gen_ndr/ndr_w32time.c',
245         public_deps='LIBNDR'
246         )
247
248
249 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
250         source='../../librpc/gen_ndr/ndr_scerpc.c',
251         public_deps='LIBNDR'
252         )
253
254
255 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
256         source='../../librpc/gen_ndr/ndr_trkwks.c',
257         public_deps='LIBNDR'
258         )
259
260
261 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
262         source='../../librpc/gen_ndr/ndr_keysvc.c',
263         public_deps='LIBNDR'
264         )
265
266
267 bld.SAMBA_SUBSYSTEM('NDR_KRB5PAC',
268         source='../../librpc/ndr/ndr_krb5pac.c ../../librpc/gen_ndr/ndr_krb5pac.c',
269         public_deps='LIBNDR NDR_STANDARD NDR_SECURITY'
270         )
271
272
273 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
274         source='../../librpc/ndr/ndr_xattr.c ../../librpc/gen_ndr/ndr_xattr.c',
275         public_deps='LIBNDR NDR_SECURITY'
276         )
277
278
279 bld.SAMBA_SUBSYSTEM('NDR_OPENDB',
280         source='gen_ndr/ndr_opendb.c',
281         public_deps='LIBNDR'
282         )
283
284
285 bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
286         source='gen_ndr/ndr_notify.c',
287         public_deps='LIBNDR'
288         )
289
290
291 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
292         source='../../librpc/ndr/ndr_schannel.c ../../librpc/gen_ndr/ndr_schannel.c',
293         public_deps='LIBNDR NDR_NBT'
294         )
295
296
297 bld.SAMBA_SUBSYSTEM('NDR_NBT',
298         source='../../librpc/gen_ndr/ndr_nbt.c',
299         public_deps='LIBNDR NDR_NBT_BUF NDR_SECURITY NDR_STANDARD LIBCLI_NDR_NETLOGON',
300         public_headers='../../librpc/gen_ndr/nbt.h',
301         header_path='gen_ndr'
302         )
303
304
305 bld.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
306         source='gen_ndr/ndr_ntp_signd.c',
307         public_deps='LIBNDR'
308         )
309
310
311 bld.SAMBA_SUBSYSTEM('NDR_WINSREPL',
312         source='gen_ndr/ndr_winsrepl.c',
313         public_deps='LIBNDR NDR_NBT'
314         )
315
316
317 bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
318         source='gen_ndr/ndr_winbind.c',
319         public_deps='LIBNDR NDR_STANDARD'
320         )
321
322
323 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
324         source='../../librpc/ndr/ndr_ntlmssp.c ../../librpc/gen_ndr/ndr_ntlmssp.c',
325         public_deps='LIBNDR NDR_STANDARD'
326         )
327
328
329 bld.SAMBA_LIBRARY('NDR_STANDARD',
330         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',
331         vnum='0.0.1',
332         pc_files='../../librpc/ndr_standard.pc',
333         deps='NDR_SECURITY',
334         public_deps='LIBNDR',
335         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',
336         header_path='gen_ndr'
337         )
338
339
340 bld.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
341
342 bld.SAMBA_SUBSYSTEM('NDR_TABLE',
343         source='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
344         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',
345         depends_on='GEN_NDR_TABLES'
346         )
347
348
349 bld.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
350         source='../../librpc/gen_ndr/ndr_xattr_c.c',
351         public_deps='NDR_XATTR dcerpc'
352         )
353
354
355 bld.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
356         source='../../librpc/gen_ndr/ndr_rot_c.c',
357         public_deps='NDR_ROT dcerpc'
358         )
359
360
361 bld.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
362         source='../../librpc/gen_ndr/ndr_audiosrv_c.c',
363         public_deps='NDR_AUDIOSRV dcerpc'
364         )
365
366
367 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
368         source='../../librpc/gen_ndr/ndr_echo_c.c',
369         public_deps='dcerpc NDR_STANDARD'
370         )
371
372
373 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
374         source='../../librpc/gen_ndr/ndr_dsbackup_c.c',
375         public_deps='dcerpc NDR_DSBACKUP'
376         )
377
378
379 bld.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
380         source='../../librpc/gen_ndr/ndr_efs_c.c',
381         public_deps='dcerpc NDR_EFS'
382         )
383
384
385 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
386         source='../../librpc/gen_ndr/ndr_lsa_c.c',
387         public_deps='dcerpc NDR_STANDARD'
388         )
389
390
391 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
392         source='../../librpc/gen_ndr/ndr_dfs_c.c',
393         public_deps='dcerpc NDR_STANDARD'
394         )
395
396
397 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
398         source='../../librpc/gen_ndr/ndr_frsapi_c.c',
399         public_deps='dcerpc NDR_FRSAPI'
400         )
401
402
403 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
404         source='../../librpc/gen_ndr/ndr_drsuapi_c.c',
405         public_deps='dcerpc NDR_DRSUAPI'
406         )
407
408
409 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
410         source='../../librpc/gen_ndr/ndr_policyagent_c.c',
411         public_deps='dcerpc NDR_POLICYAGENT'
412         )
413
414
415 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
416         source='../../librpc/gen_ndr/ndr_unixinfo_c.c',
417         public_deps='dcerpc NDR_UNIXINFO'
418         )
419
420
421 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
422         source='../../librpc/gen_ndr/ndr_browser_c.c',
423         public_deps='dcerpc NDR_BROWSER'
424         )
425
426
427 bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
428         source='gen_ndr/ndr_irpc_c.c',
429         public_deps='dcerpc NDR_IRPC'
430         )
431
432
433 bld.SAMBA_LIBRARY('dcerpc_samr',
434         source='../../librpc/gen_ndr/ndr_samr_c.c',
435         pc_files='dcerpc_samr.pc',
436         vnum='0.0.1',
437         public_deps='dcerpc NDR_STANDARD',
438         public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
439         header_path='gen_ndr'
440         )
441
442
443 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
444         source='../../librpc/gen_ndr/ndr_spoolss_c.c',
445         public_deps='dcerpc NDR_SPOOLSS'
446         )
447
448
449 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
450         source='../../librpc/gen_ndr/ndr_wkssvc_c.c',
451         public_deps='dcerpc NDR_STANDARD'
452         )
453
454
455 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
456         source='../../librpc/gen_ndr/ndr_srvsvc_c.c',
457         public_deps='dcerpc NDR_SRVSVC'
458         )
459
460
461 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
462         source='../../librpc/gen_ndr/ndr_svcctl_c.c',
463         public_deps='dcerpc NDR_STANDARD',
464         public_headers='../../librpc/gen_ndr/ndr_svcctl_c.h',
465         header_path='gen_ndr'
466         )
467
468
469 bld.SAMBA_LIBRARY('dcerpc_atsvc',
470         source='../../librpc/gen_ndr/ndr_atsvc_c.c',
471         pc_files='dcerpc_atsvc.pc',
472         vnum='0.0.1',
473         public_deps='dcerpc NDR_STANDARD',
474         public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
475         header_path='gen_ndr'
476         )
477
478
479 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
480         source='../../librpc/gen_ndr/ndr_eventlog_c.c',
481         public_deps='dcerpc NDR_STANDARD'
482         )
483
484
485 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
486         source='../../librpc/gen_ndr/ndr_epmapper_c.c',
487         public_deps='tevent NDR_EPMAPPER'
488         )
489
490
491 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
492         source='../../librpc/gen_ndr/ndr_dbgidl_c.c',
493         public_deps='dcerpc NDR_DBGIDL'
494         )
495
496
497 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
498         source='../../librpc/gen_ndr/ndr_dssetup_c.c',
499         public_deps='dcerpc NDR_DSSETUP'
500         )
501
502
503 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
504         source='../../librpc/gen_ndr/ndr_msgsvc_c.c',
505         public_deps='dcerpc NDR_MSGSVC'
506         )
507
508
509 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
510         source='gen_ndr/ndr_winsif_c.c',
511         public_deps='dcerpc NDR_WINSIF'
512         )
513
514
515 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
516         source='../../librpc/gen_ndr/ndr_winreg_c.c',
517         public_deps='dcerpc NDR_STANDARD'
518         )
519
520
521 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
522         source='../../librpc/gen_ndr/ndr_initshutdown_c.c',
523         public_deps='dcerpc NDR_STANDARD'
524         )
525
526
527 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
528         source='../../librpc/gen_ndr/ndr_mgmt_c.c',
529         deps='tevent NDR_MGMT'
530         )
531
532
533 bld.SAMBA_SUBSYSTEM('RPC_NDR_PROTECTED_STORAGE',
534         source='../../librpc/gen_ndr/ndr_protected_storage_c.c',
535         public_deps='dcerpc NDR_PROTECTED_STORAGE'
536         )
537
538
539 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
540         source='../../librpc/gen_ndr/ndr_oxidresolver_c.c',
541         public_deps='dcerpc NDR_OXIDRESOLVER'
542         )
543
544
545 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
546         source='../../librpc/gen_ndr/ndr_remact_c.c',
547         public_deps='dcerpc NDR_REMACT'
548         )
549
550
551 bld.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
552         source='../../librpc/gen_ndr/ndr_wzcsvc_c.c',
553         public_deps='dcerpc NDR_WZCSVC'
554         )
555
556
557 bld.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
558         source='../../librpc/gen_ndr/ndr_w32time_c.c',
559         public_deps='dcerpc NDR_W32TIME'
560         )
561
562
563 bld.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
564         source='../../librpc/gen_ndr/ndr_scerpc_c.c',
565         public_deps='dcerpc NDR_SCERPC'
566         )
567
568
569 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
570         source='../../librpc/gen_ndr/ndr_ntsvcs_c.c',
571         public_deps='dcerpc NDR_STANDARD'
572         )
573
574
575 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
576         source='../../librpc/gen_ndr/ndr_netlogon_c.c',
577         public_deps='NDR_STANDARD'
578         )
579
580
581 bld.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
582         source='../../librpc/gen_ndr/ndr_trkwks_c.c',
583         public_deps='dcerpc NDR_TRKWKS'
584         )
585
586
587 bld.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
588         source='../../librpc/gen_ndr/ndr_keysvc_c.c',
589         public_deps='dcerpc NDR_KEYSVC'
590         )
591
592
593 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
594         source='../../librpc/gen_ndr/ndr_dcerpc.c',
595         public_deps='LIBNDR',
596         public_headers='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
597         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
598         )
599
600
601 bld.SAMBA_LIBRARY('dcerpc',
602         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',
603         pc_files='dcerpc.pc',
604         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',
605         autoproto='rpc/dcerpc_proto.h',
606         public_deps='CREDENTIALS tevent talloc',
607         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',
608         header_path='gen_ndr',
609         vnum='0.0.1'
610         )
611
612
613 bld.SAMBA_PYTHON('python_dcerpc',
614         source='rpc/pyrpc.c',
615         public_deps='LIBCLI_SMB LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG pycredentials pyparam_util',
616         realname='samba/dcerpc/base.so'
617         )
618
619
620 bld.SAMBA_PYTHON('python_echo',
621         source='../../librpc/gen_ndr/py_echo.c',
622         deps='RPC_NDR_ECHO PYTALLOC pyparam_util pycredentials python_dcerpc',
623         realname='samba/dcerpc/echo.so'
624         )
625
626
627 bld.SAMBA_PYTHON('python_winreg',
628         source='../../librpc/gen_ndr/py_winreg.c',
629         deps='RPC_NDR_WINREG PYTALLOC pyparam_util pycredentials python_dcerpc',
630         realname='samba/dcerpc/winreg.so'
631         )
632
633
634 bld.SAMBA_PYTHON('python_dcerpc_misc',
635         source='../../librpc/gen_ndr/py_misc.c',
636         deps='PYTALLOC python_dcerpc NDR_MISC NDR_KRB5PAC',
637         realname='samba/dcerpc/misc.so'
638         )
639
640
641 bld.SAMBA_PYTHON('python_initshutdown',
642         source='../../librpc/gen_ndr/py_initshutdown.c',
643         deps='RPC_NDR_INITSHUTDOWN PYTALLOC pyparam_util pycredentials python_dcerpc',
644         realname='samba/dcerpc/initshutdown.so'
645         )
646
647
648 bld.SAMBA_PYTHON('python_epmapper',
649         source='../../librpc/gen_ndr/py_epmapper.c',
650         deps='dcerpc PYTALLOC pyparam_util pycredentials python_dcerpc',
651         realname='samba/dcerpc/epmapper.so'
652         )
653
654
655 bld.SAMBA_PYTHON('python_mgmt',
656         source='../../librpc/gen_ndr/py_mgmt.c',
657         deps='PYTALLOC param pycredentials dcerpc python_dcerpc',
658         realname='samba/dcerpc/mgmt.so'
659         )
660
661
662 bld.SAMBA_PYTHON('python_atsvc',
663         source='../../librpc/gen_ndr/py_atsvc.c',
664         deps='dcerpc_atsvc PYTALLOC pyparam_util pycredentials python_dcerpc',
665         realname='samba/dcerpc/atsvc.so'
666         )
667
668
669 bld.SAMBA_PYTHON('python_dcerpc_nbt',
670         source='../../librpc/gen_ndr/py_nbt.c',
671         deps='NDR_NBT PYTALLOC pyparam_util pycredentials python_dcerpc',
672         realname='samba/dcerpc/nbt.so'
673         )
674
675
676 bld.SAMBA_PYTHON('python_samr',
677         source='../../librpc/gen_ndr/py_samr.c',
678         deps='dcerpc_samr PYTALLOC pycredentials pyparam_util python_dcerpc',
679         realname='samba/dcerpc/samr.so'
680         )
681
682
683 bld.SAMBA_PYTHON('python_svcctl',
684         source='../../librpc/gen_ndr/py_svcctl.c',
685         deps='RPC_NDR_SVCCTL PYTALLOC pyparam_util pycredentials python_dcerpc',
686         realname='samba/dcerpc/svcctl.so'
687         )
688
689
690 bld.SAMBA_PYTHON('python_lsa',
691         source='../../librpc/gen_ndr/py_lsa.c',
692         deps='RPC_NDR_LSA PYTALLOC pyparam_util pycredentials python_dcerpc',
693         realname='samba/dcerpc/lsa.so'
694         )
695
696
697 bld.SAMBA_PYTHON('python_wkssvc',
698         source='../../librpc/gen_ndr/py_wkssvc.c',
699         deps='RPC_NDR_WKSSVC PYTALLOC pyparam_util pycredentials python_dcerpc',
700         realname='samba/dcerpc/wkssvc.so'
701         )
702
703
704 bld.SAMBA_PYTHON('python_dfs',
705         source='../../librpc/gen_ndr/py_dfs.c',
706         deps='RPC_NDR_DFS PYTALLOC pyparam_util pycredentials python_dcerpc',
707         realname='samba/dcerpc/dfs.so'
708         )
709
710
711 bld.SAMBA_PYTHON('python_unixinfo',
712         source='../../librpc/gen_ndr/py_unixinfo.c',
713         deps='RPC_NDR_UNIXINFO PYTALLOC pyparam_util pycredentials python_dcerpc',
714         realname='samba/dcerpc/unixinfo.so'
715         )
716
717
718 bld.SAMBA_PYTHON('python_irpc',
719         source='gen_ndr/py_irpc.c',
720         deps='RPC_NDR_IRPC PYTALLOC pyparam_util pycredentials python_dcerpc',
721         realname='samba/dcerpc/irpc.so'
722         )
723
724
725 bld.SAMBA_PYTHON('python_drsuapi',
726         source='../../librpc/gen_ndr/py_drsuapi.c',
727         deps='RPC_NDR_DRSUAPI PYTALLOC pyparam_util pycredentials python_dcerpc',
728         realname='samba/dcerpc/drsuapi.so'
729         )
730
731
732 bld.SAMBA_PYTHON('python_dcerpc_security',
733         source='../../librpc/gen_ndr/py_security.c',
734         deps='PYTALLOC python_dcerpc_misc python_dcerpc NDR_SECURITY',
735         realname='samba/dcerpc/security.so'
736         )
737
738
739 bld.SAMBA_PYTHON('python_dcerpc_xattr',
740         source='../../librpc/gen_ndr/py_xattr.c',
741         deps='PYTALLOC python_dcerpc_misc python_dcerpc python_dcerpc_security NDR_XATTR RPC_NDR_XATTR',
742         realname='samba/dcerpc/xattr.so'
743         )
744
745 bld.SAMBA_SCRIPT('python_dcerpc_init',
746                  pattern='rpc/dcerpc.py',
747                  installdir='python/samba/dcerpc',
748                  installname='__init__.py')
749
750 bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')