s4-waf: fix bin/python/samba/dcerpc/nbt.so.
[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='../../librpc/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         deps='LIBSAMBA-HOSTCONFIG LIBSAMBA-UTIL popt POPT_SAMBA NDR_TABLE LIBSAMBA-ERRORS'
21         )
22
23
24 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
25         source='../../librpc/ndr/ndr_compression.c',
26         public_deps='LIBSAMBA-ERRORS LIBNDR',
27         deps='ZLIB LZXPRESS'
28         )
29
30
31 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
32         source='../../librpc/gen_ndr/ndr_security.c ../../librpc/ndr/ndr_sec_helper.c gen_ndr/ndr_server_id.c',
33         public_deps='LIBNDR LIBSECURITY',
34         public_headers='../../librpc/gen_ndr/security.h gen_ndr/server_id.h',
35         header_path='gen_ndr'
36         )
37
38
39 bld.SAMBA_SUBSYSTEM('NDR_AUDIOSRV',
40         source='../../librpc/gen_ndr/ndr_audiosrv.c',
41         public_deps='LIBNDR'
42         )
43
44
45 bld.SAMBA_SUBSYSTEM('NDR_NAMED_PIPE_AUTH',
46         source='../../librpc/gen_ndr/ndr_named_pipe_auth.c',
47         public_deps='LIBNDR'
48         )
49
50
51 bld.SAMBA_SUBSYSTEM('NDR_DNSSERVER',
52         source='../../librpc/gen_ndr/ndr_dnsserver.c',
53         public_deps='LIBNDR'
54         )
55
56
57 bld.SAMBA_SUBSYSTEM('NDR_WINSTATION',
58         source='gen_ndr/ndr_winstation.c',
59         public_deps='LIBNDR'
60         )
61
62
63 bld.SAMBA_SUBSYSTEM('NDR_IRPC',
64         source='gen_ndr/ndr_irpc.c',
65         public_deps='LIBNDR NDR_SECURITY NDR_NBT'
66         )
67
68
69 bld.SAMBA_SUBSYSTEM('NDR_DCOM',
70         source='../../librpc/gen_ndr/ndr_dcom.c',
71         public_deps='LIBNDR NDR_SECURITY NDR_ORPC'
72         )
73
74
75 bld.SAMBA_SUBSYSTEM('NDR_WMI',
76         source='../../librpc/ndr/ndr_wmi.c ../../librpc/gen_ndr/ndr_wmi.c',
77         public_deps='LIBNDR NDR_SECURITY NDR_DCOM'
78         )
79
80
81 bld.SAMBA_SUBSYSTEM('NDR_DSBACKUP',
82         source='../../librpc/gen_ndr/ndr_dsbackup.c',
83         public_deps='LIBNDR'
84         )
85
86
87 bld.SAMBA_SUBSYSTEM('NDR_EFS',
88         source='../../librpc/gen_ndr/ndr_efs.c',
89         public_deps='LIBNDR NDR_SECURITY'
90         )
91
92
93 bld.SAMBA_SUBSYSTEM('NDR_ROT',
94         source='../../librpc/gen_ndr/ndr_rot.c',
95         public_deps='LIBNDR NDR_ORPC'
96         )
97
98
99 bld.SAMBA_SUBSYSTEM('NDR_FRSRPC',
100         source='../../librpc/ndr/ndr_frsrpc.c ../../librpc/gen_ndr/ndr_frsrpc.c',
101         public_deps='LIBNDR'
102         )
103
104
105 bld.SAMBA_SUBSYSTEM('NDR_FRSAPI',
106         source='../../librpc/gen_ndr/ndr_frsapi.c',
107         public_deps='LIBNDR'
108         )
109
110
111 bld.SAMBA_SUBSYSTEM('NDR_FRSTRANS',
112         source='../../librpc/gen_ndr/ndr_frstrans.c',
113         public_deps='LIBNDR'
114         )
115
116
117 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
118         source='../../librpc/ndr/ndr_drsuapi.c ../../librpc/gen_ndr/ndr_drsuapi.c',
119         public_deps='LIBNDR NDR_COMPRESSION NDR_SECURITY NDR_STANDARD ASN1_UTIL'
120         )
121
122
123 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
124         source='../../librpc/ndr/ndr_drsblobs.c ../../librpc/gen_ndr/ndr_drsblobs.c',
125         public_deps='LIBNDR NDR_DRSUAPI'
126         )
127
128
129 bld.SAMBA_SUBSYSTEM('NDR_DFSBLOBS',
130         source='../../librpc/gen_ndr/ndr_dfsblobs.c',
131         public_deps='LIBNDR'
132         )
133
134
135 bld.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
136         source='gen_ndr/ndr_sasl_helpers.c',
137         public_deps='LIBNDR'
138         )
139
140
141 bld.SAMBA_SUBSYSTEM('NDR_POLICYAGENT',
142         source='../../librpc/gen_ndr/ndr_policyagent.c',
143         public_deps='LIBNDR'
144         )
145
146
147 bld.SAMBA_SUBSYSTEM('NDR_UNIXINFO',
148         source='../../librpc/gen_ndr/ndr_unixinfo.c',
149         public_deps='LIBNDR NDR_SECURITY'
150         )
151
152
153 bld.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
154         source='gen_ndr/ndr_nfs4acl.c',
155         public_deps='LIBNDR NDR_SECURITY'
156         )
157
158
159 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS',
160         source='../../librpc/gen_ndr/ndr_spoolss.c',
161         public_deps='LIBNDR NDR_SPOOLSS_BUF NDR_SECURITY'
162         )
163
164
165 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF',
166         source='../../librpc/ndr/ndr_spoolss_buf.c',
167         deps='talloc'
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 bld.SAMBA_SUBSYSTEM('NDR_RAP',
267         source='../../librpc/gen_ndr/ndr_rap.c ../../librpc/ndr/ndr_rap.c',
268         public_deps='LIBNDR'
269         )
270
271
272 bld.SAMBA_SUBSYSTEM('NDR_KRB5PAC',
273         source='../../librpc/ndr/ndr_krb5pac.c ../../librpc/gen_ndr/ndr_krb5pac.c',
274         public_deps='LIBNDR NDR_STANDARD NDR_SECURITY'
275         )
276
277
278 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
279         source='../../librpc/ndr/ndr_xattr.c ../../librpc/gen_ndr/ndr_xattr.c',
280         public_deps='LIBNDR NDR_SECURITY'
281         )
282
283
284 bld.SAMBA_SUBSYSTEM('NDR_OPENDB',
285         source='gen_ndr/ndr_opendb.c',
286         public_deps='LIBNDR'
287         )
288
289
290 bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
291         source='gen_ndr/ndr_s4_notify.c',
292         public_deps='LIBNDR'
293         )
294
295
296 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
297         source='../../librpc/ndr/ndr_schannel.c ../../librpc/gen_ndr/ndr_schannel.c',
298         public_deps='LIBNDR NDR_NBT'
299         )
300
301
302 bld.SAMBA_SUBSYSTEM('NDR_NBT',
303         source='../../librpc/gen_ndr/ndr_nbt.c',
304         public_deps='LIBNDR NDR_NBT_BUF NDR_SECURITY NDR_STANDARD LIBCLI_NDR_NETLOGON',
305         public_headers='../../librpc/gen_ndr/nbt.h',
306         header_path='gen_ndr'
307         )
308
309
310 bld.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
311         source='gen_ndr/ndr_ntp_signd.c',
312         public_deps='LIBNDR'
313         )
314
315
316 bld.SAMBA_SUBSYSTEM('NDR_WINSREPL',
317         source='gen_ndr/ndr_winsrepl.c',
318         public_deps='LIBNDR NDR_NBT'
319         )
320
321
322 bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
323         source='../../librpc/gen_ndr/ndr_idmap.c',
324         public_deps='LIBNDR NDR_STANDARD'
325         )
326
327 bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
328         source='gen_ndr/ndr_winbind.c',
329         public_deps='NDR_IDMAP LIBNDR NDR_STANDARD'
330         )
331
332
333 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
334         source='../../librpc/ndr/ndr_ntlmssp.c ../../librpc/gen_ndr/ndr_ntlmssp.c',
335         public_deps='LIBNDR NDR_STANDARD'
336         )
337
338 bld.SAMBA_SUBSYSTEM('NDR_DNSP',
339         source='../../librpc/gen_ndr/ndr_dnsp.c ../../librpc/ndr/ndr_dnsp.c',
340         public_deps='LIBNDR'
341         )
342
343 bld.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
344         source='../../librpc/gen_ndr/ndr_ntprinting.c ../../librpc/ndr/ndr_ntprinting.c',
345         public_deps='LIBNDR'
346         )
347
348 bld.SAMBA_LIBRARY('NDR_STANDARD',
349         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',
350         vnum='0.0.1',
351         pc_files='../../librpc/ndr_standard.pc',
352         deps='NDR_SECURITY',
353         public_deps='LIBNDR',
354         public_headers='../../librpc/gen_ndr/samr.h ../../librpc/gen_ndr/ndr_samr.h ../../librpc/gen_ndr/lsa.h ../../librpc/gen_ndr/netlogon.h ../../librpc/gen_ndr/atsvc.h ../../librpc/gen_ndr/ndr_atsvc.h ../../librpc/gen_ndr/ndr_svcctl.h ../../librpc/gen_ndr/svcctl.h',
355         header_path='gen_ndr'
356         )
357
358
359 bld.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
360
361 bld.SAMBA_SUBSYSTEM('NDR_TABLE',
362         source='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
363         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 NDR_DNSP NDR_NTPRINTING',
364         depends_on='GEN_NDR_TABLES'
365         )
366
367
368 bld.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
369         source='../../librpc/gen_ndr/ndr_xattr_c.c',
370         public_deps='NDR_XATTR dcerpc'
371         )
372
373
374 bld.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
375         source='../../librpc/gen_ndr/ndr_rot_c.c',
376         public_deps='NDR_ROT dcerpc'
377         )
378
379
380 bld.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
381         source='../../librpc/gen_ndr/ndr_audiosrv_c.c',
382         public_deps='NDR_AUDIOSRV dcerpc'
383         )
384
385
386 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
387         source='../../librpc/gen_ndr/ndr_echo_c.c',
388         public_deps='dcerpc NDR_STANDARD'
389         )
390
391
392 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
393         source='../../librpc/gen_ndr/ndr_dsbackup_c.c',
394         public_deps='dcerpc NDR_DSBACKUP'
395         )
396
397
398 bld.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
399         source='../../librpc/gen_ndr/ndr_efs_c.c',
400         public_deps='dcerpc NDR_EFS'
401         )
402
403
404 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
405         source='../../librpc/gen_ndr/ndr_lsa_c.c',
406         public_deps='dcerpc NDR_STANDARD'
407         )
408
409
410 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
411         source='../../librpc/gen_ndr/ndr_dfs_c.c',
412         public_deps='dcerpc NDR_STANDARD'
413         )
414
415
416 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
417         source='../../librpc/gen_ndr/ndr_frsapi_c.c',
418         public_deps='dcerpc NDR_FRSAPI'
419         )
420
421
422 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
423         source='../../librpc/gen_ndr/ndr_drsuapi_c.c',
424         public_deps='dcerpc NDR_DRSUAPI'
425         )
426
427
428 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSBLOBS',
429         source='../../librpc/gen_ndr/ndr_drsblobs_c.c',
430         public_deps='dcerpc NDR_DRSBLOBS'
431         )
432
433
434 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
435         source='../../librpc/gen_ndr/ndr_policyagent_c.c',
436         public_deps='dcerpc NDR_POLICYAGENT'
437         )
438
439
440 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
441         source='../../librpc/gen_ndr/ndr_unixinfo_c.c',
442         public_deps='dcerpc NDR_UNIXINFO'
443         )
444
445
446 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
447         source='../../librpc/gen_ndr/ndr_browser_c.c',
448         public_deps='dcerpc NDR_BROWSER'
449         )
450
451
452 bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
453         source='gen_ndr/ndr_irpc_c.c',
454         public_deps='dcerpc NDR_IRPC'
455         )
456
457 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
458         source='gen_ndr/ndr_winbind_c.c',
459         public_deps='dcerpc NDR_WINBIND'
460         )
461
462
463 bld.SAMBA_LIBRARY('dcerpc_samr',
464         source='../../librpc/gen_ndr/ndr_samr_c.c',
465         pc_files='dcerpc_samr.pc',
466         vnum='0.0.1',
467         public_deps='dcerpc NDR_STANDARD',
468         public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
469         header_path='gen_ndr'
470         )
471
472
473 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
474         source='../../librpc/gen_ndr/ndr_spoolss_c.c',
475         public_deps='dcerpc NDR_SPOOLSS'
476         )
477
478 bld.SAMBA_SUBSYSTEM('RPC_NDR_NBT',
479         source='../../librpc/gen_ndr/ndr_nbt_c.c',
480         public_deps='dcerpc NDR_NBT'
481         )
482
483 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
484         source='../../librpc/gen_ndr/ndr_wkssvc_c.c',
485         public_deps='dcerpc NDR_STANDARD'
486         )
487
488
489 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
490         source='../../librpc/gen_ndr/ndr_srvsvc_c.c',
491         public_deps='dcerpc NDR_SRVSVC'
492         )
493
494
495 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
496         source='../../librpc/gen_ndr/ndr_svcctl_c.c',
497         public_deps='dcerpc NDR_STANDARD',
498         public_headers='../../librpc/gen_ndr/ndr_svcctl_c.h',
499         header_path='gen_ndr'
500         )
501
502
503 bld.SAMBA_LIBRARY('dcerpc_atsvc',
504         source='../../librpc/gen_ndr/ndr_atsvc_c.c',
505         pc_files='dcerpc_atsvc.pc',
506         vnum='0.0.1',
507         public_deps='dcerpc NDR_STANDARD',
508         public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
509         header_path='gen_ndr'
510         )
511
512
513 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
514         source='../../librpc/gen_ndr/ndr_eventlog_c.c',
515         public_deps='dcerpc NDR_STANDARD'
516         )
517
518
519 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
520         source='../../librpc/gen_ndr/ndr_epmapper_c.c',
521         public_deps='tevent NDR_EPMAPPER'
522         )
523
524
525 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
526         source='../../librpc/gen_ndr/ndr_dbgidl_c.c',
527         public_deps='dcerpc NDR_DBGIDL'
528         )
529
530
531 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
532         source='../../librpc/gen_ndr/ndr_dssetup_c.c',
533         public_deps='dcerpc NDR_DSSETUP'
534         )
535
536
537 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
538         source='../../librpc/gen_ndr/ndr_msgsvc_c.c',
539         public_deps='dcerpc NDR_MSGSVC'
540         )
541
542
543 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
544         source='gen_ndr/ndr_winsif_c.c',
545         public_deps='dcerpc NDR_WINSIF'
546         )
547
548
549 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
550         source='../../librpc/gen_ndr/ndr_winreg_c.c',
551         public_deps='dcerpc NDR_STANDARD'
552         )
553
554
555 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
556         source='../../librpc/gen_ndr/ndr_initshutdown_c.c',
557         public_deps='dcerpc NDR_STANDARD'
558         )
559
560
561 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
562         source='../../librpc/gen_ndr/ndr_mgmt_c.c',
563         deps='tevent NDR_MGMT'
564         )
565
566
567 bld.SAMBA_SUBSYSTEM('RPC_NDR_PROTECTED_STORAGE',
568         source='../../librpc/gen_ndr/ndr_protected_storage_c.c',
569         public_deps='dcerpc NDR_PROTECTED_STORAGE'
570         )
571
572
573 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
574         source='../../librpc/gen_ndr/ndr_oxidresolver_c.c',
575         public_deps='dcerpc NDR_OXIDRESOLVER'
576         )
577
578
579 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
580         source='../../librpc/gen_ndr/ndr_remact_c.c',
581         public_deps='dcerpc NDR_REMACT'
582         )
583
584
585 bld.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
586         source='../../librpc/gen_ndr/ndr_wzcsvc_c.c',
587         public_deps='dcerpc NDR_WZCSVC'
588         )
589
590
591 bld.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
592         source='../../librpc/gen_ndr/ndr_w32time_c.c',
593         public_deps='dcerpc NDR_W32TIME'
594         )
595
596
597 bld.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
598         source='../../librpc/gen_ndr/ndr_scerpc_c.c',
599         public_deps='dcerpc NDR_SCERPC'
600         )
601
602
603 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
604         source='../../librpc/gen_ndr/ndr_ntsvcs_c.c',
605         public_deps='dcerpc NDR_STANDARD'
606         )
607
608
609 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
610         source='../../librpc/gen_ndr/ndr_netlogon_c.c',
611         public_deps='NDR_STANDARD'
612         )
613
614
615 bld.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
616         source='../../librpc/gen_ndr/ndr_trkwks_c.c',
617         public_deps='dcerpc NDR_TRKWKS'
618         )
619
620
621 bld.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
622         source='../../librpc/gen_ndr/ndr_keysvc_c.c',
623         public_deps='dcerpc NDR_KEYSVC'
624         )
625
626
627 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
628         source='../../librpc/gen_ndr/ndr_dcerpc.c',
629         public_deps='LIBNDR',
630         public_headers='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
631         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
632         )
633
634 bld.SAMBA_LIBRARY('dcerpc',
635         source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
636         rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
637         rpc/dcerpc_connect.c rpc/dcerpc_secondary.c ../../librpc/rpc/binding.c
638         ../../librpc/rpc/dcerpc_error.c ../../librpc/rpc/dcerpc_util.c
639         ../../librpc/rpc/binding_handle.c''',
640         pc_files='dcerpc.pc',
641         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',
642         autoproto='rpc/dcerpc_proto.h',
643         public_deps='CREDENTIALS tevent talloc',
644         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',
645         header_path='gen_ndr',
646         vnum='0.0.1'
647         )
648
649 bld.SAMBA_SUBSYSTEM('pyrpc_util',
650         source='rpc/pyrpc_util.c',
651         public_deps='PYTALLOC pyparam_util pycredentials dcerpc',
652         needs_python=True,
653         )
654
655
656 bld.SAMBA_PYTHON('python_dcerpc',
657         source='rpc/pyrpc.c',
658         public_deps='LIBCLI_SMB LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG pyrpc_util',
659         realname='samba/dcerpc/base.so'
660         )
661
662
663 bld.SAMBA_PYTHON('python_echo',
664         source='../../librpc/gen_ndr/py_echo.c',
665         deps='RPC_NDR_ECHO PYTALLOC pyrpc_util',
666         realname='samba/dcerpc/echo.so'
667         )
668
669
670 bld.SAMBA_PYTHON('python_winreg',
671         source='../../librpc/gen_ndr/py_winreg.c',
672         deps='RPC_NDR_WINREG PYTALLOC pyrpc_util',
673         realname='samba/dcerpc/winreg.so'
674         )
675
676
677 bld.SAMBA_PYTHON('python_dcerpc_misc',
678         source='../../librpc/gen_ndr/py_misc.c',
679         deps='PYTALLOC pyrpc_util NDR_MISC NDR_KRB5PAC',
680         realname='samba/dcerpc/misc.so'
681         )
682
683
684 bld.SAMBA_PYTHON('python_initshutdown',
685         source='../../librpc/gen_ndr/py_initshutdown.c',
686         deps='RPC_NDR_INITSHUTDOWN PYTALLOC pyrpc_util',
687         realname='samba/dcerpc/initshutdown.so'
688         )
689
690
691 bld.SAMBA_PYTHON('python_epmapper',
692         source='../../librpc/gen_ndr/py_epmapper.c',
693         deps='dcerpc PYTALLOC pyrpc_util',
694         realname='samba/dcerpc/epmapper.so'
695         )
696
697
698 bld.SAMBA_PYTHON('python_mgmt',
699         source='../../librpc/gen_ndr/py_mgmt.c',
700         deps='PYTALLOC dcerpc pyrpc_util',
701         realname='samba/dcerpc/mgmt.so'
702         )
703
704
705 bld.SAMBA_PYTHON('python_atsvc',
706         source='../../librpc/gen_ndr/py_atsvc.c',
707         deps='dcerpc_atsvc PYTALLOC pyrpc_util',
708         realname='samba/dcerpc/atsvc.so'
709         )
710
711
712 bld.SAMBA_PYTHON('python_dcerpc_nbt',
713         source='../../librpc/gen_ndr/py_nbt.c',
714         deps='NDR_NBT RPC_NDR_NBT PYTALLOC pyrpc_util',
715         realname='samba/dcerpc/nbt.so'
716         )
717
718
719 bld.SAMBA_PYTHON('python_samr',
720         source='../../librpc/gen_ndr/py_samr.c',
721         deps='dcerpc_samr PYTALLOC pyrpc_util',
722         realname='samba/dcerpc/samr.so'
723         )
724
725
726 bld.SAMBA_PYTHON('python_svcctl',
727         source='../../librpc/gen_ndr/py_svcctl.c',
728         deps='RPC_NDR_SVCCTL PYTALLOC pyrpc_util',
729         realname='samba/dcerpc/svcctl.so'
730         )
731
732
733 bld.SAMBA_PYTHON('python_lsa',
734         source='../../librpc/gen_ndr/py_lsa.c',
735         deps='RPC_NDR_LSA PYTALLOC pyrpc_util',
736         realname='samba/dcerpc/lsa.so'
737         )
738
739
740 bld.SAMBA_PYTHON('python_wkssvc',
741         source='../../librpc/gen_ndr/py_wkssvc.c',
742         deps='RPC_NDR_WKSSVC PYTALLOC pyrpc_util',
743         realname='samba/dcerpc/wkssvc.so'
744         )
745
746
747 bld.SAMBA_PYTHON('python_dfs',
748         source='../../librpc/gen_ndr/py_dfs.c',
749         deps='RPC_NDR_DFS PYTALLOC pyrpc_util',
750         realname='samba/dcerpc/dfs.so'
751         )
752
753
754 bld.SAMBA_PYTHON('python_unixinfo',
755         source='../../librpc/gen_ndr/py_unixinfo.c',
756         deps='RPC_NDR_UNIXINFO PYTALLOC pyrpc_util',
757         realname='samba/dcerpc/unixinfo.so'
758         )
759
760
761 bld.SAMBA_PYTHON('python_irpc',
762         source='gen_ndr/py_irpc.c',
763         deps='RPC_NDR_IRPC PYTALLOC pyrpc_util',
764         realname='samba/dcerpc/irpc.so'
765         )
766
767
768 bld.SAMBA_PYTHON('python_drsuapi',
769         source='../../librpc/gen_ndr/py_drsuapi.c',
770         deps='RPC_NDR_DRSUAPI PYTALLOC pyrpc_util',
771         realname='samba/dcerpc/drsuapi.so'
772         )
773
774 bld.SAMBA_PYTHON('python_dcerpc_security',
775         source='../../librpc/gen_ndr/py_security.c',
776         deps='PYTALLOC pyrpc_util NDR_SECURITY',
777         realname='samba/dcerpc/security.so'
778         )
779
780 bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
781         source='../../librpc/gen_ndr/py_drsblobs.c',
782         deps='PYTALLOC pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
783         realname='samba/dcerpc/drsblobs.so'
784         )
785
786
787 bld.SAMBA_PYTHON('python_dcerpc_xattr',
788         source='../../librpc/gen_ndr/py_xattr.c',
789         deps='PYTALLOC pyrpc_util RPC_NDR_XATTR',
790         realname='samba/dcerpc/xattr.so'
791         )
792
793 bld.SAMBA_PYTHON('python_netlogon',
794         source='../../librpc/gen_ndr/py_netlogon.c',
795         deps='RPC_NDR_NETLOGON PYTALLOC pyrpc_util',
796         realname='samba/dcerpc/netlogon.so'
797         )
798
799 bld.SAMBA_SCRIPT('python_dcerpc_init',
800                  pattern='rpc/dcerpc.py',
801                  installdir='python/samba/dcerpc',
802                  installname='__init__.py')
803
804 bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')