abbda8cfe3f85a3246f334efad7e5638b230c6b4
[kai/samba.git] / librpc / wscript_build
1 #!/usr/bin/env python
2
3 bld.RECURSE('idl')
4 bld.RECURSE('../lib/compression')
5
6 bld.SAMBA_SUBSYSTEM('NDR_AUDIOSRV',
7         source='gen_ndr/ndr_audiosrv.c',
8         public_deps='ndr'
9         )
10
11 bld.SAMBA_SUBSYSTEM('NDR_AUTH',
12                     source='gen_ndr/ndr_auth.c',
13                     public_headers='gen_ndr/auth.h',
14                     header_path='gen_ndr',
15                     public_deps='ndr NDR_SECURITY ndr-krb5pac'
16                     )
17
18 bld.SAMBA_SUBSYSTEM('NDR_NAMED_PIPE_AUTH',
19         source='gen_ndr/ndr_named_pipe_auth.c',
20         public_deps='ndr NDR_AUTH'
21         )
22
23 bld.SAMBA_SUBSYSTEM('NDR_DNSSERVER',
24         source='gen_ndr/ndr_dnsserver.c',
25         public_deps='ndr'
26         )
27
28 bld.SAMBA_SUBSYSTEM('NDR_DNS',
29         source='gen_ndr/ndr_dns.c ndr/ndr_dns.c',
30         public_deps='ndr'
31         )
32
33 bld.SAMBA_SUBSYSTEM('NDR_DSBACKUP',
34         source='gen_ndr/ndr_dsbackup.c',
35         public_deps='ndr'
36         )
37
38 bld.SAMBA_SUBSYSTEM('NDR_DFS',
39         source='gen_ndr/ndr_dfs.c',
40         public_deps='ndr'
41         )
42
43 bld.SAMBA_SUBSYSTEM('NDR_WINREG',
44         source='gen_ndr/ndr_winreg.c',
45         public_deps='ndr NDR_SECURITY NDR_LSA'
46         )
47
48 bld.SAMBA_SUBSYSTEM('NDR_EFS',
49         source='gen_ndr/ndr_efs.c',
50         public_deps='ndr NDR_SECURITY'
51         )
52
53 bld.SAMBA_SUBSYSTEM('NDR_ROT',
54         source='gen_ndr/ndr_rot.c',
55         public_deps='ndr NDR_ORPC'
56         )
57
58 bld.SAMBA_SUBSYSTEM('NDR_FRSRPC',
59         source='ndr/ndr_frsrpc.c gen_ndr/ndr_frsrpc.c',
60         public_deps='ndr'
61         )
62
63 bld.SAMBA_SUBSYSTEM('NDR_FRSAPI',
64         source='gen_ndr/ndr_frsapi.c',
65         public_deps='ndr'
66         )
67
68 bld.SAMBA_SUBSYSTEM('NDR_FRSTRANS',
69         source='gen_ndr/ndr_frstrans.c',
70         public_deps='ndr'
71         )
72
73 bld.SAMBA_SUBSYSTEM('NDR_DFSBLOBS',
74         source='gen_ndr/ndr_dfsblobs.c',
75         public_deps='ndr'
76         )
77
78 bld.SAMBA_SUBSYSTEM('NDR_POLICYAGENT',
79         source='gen_ndr/ndr_policyagent.c',
80         public_deps='ndr'
81         )
82
83 bld.SAMBA_SUBSYSTEM('NDR_UNIXINFO',
84         source='gen_ndr/ndr_unixinfo.c',
85         public_deps='ndr NDR_SECURITY'
86         )
87
88 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS',
89         source='gen_ndr/ndr_spoolss.c',
90         public_deps='ndr NDR_SPOOLSS_BUF NDR_SECURITY'
91         )
92
93 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF',
94         source='ndr/ndr_spoolss_buf.c',
95         deps='talloc'
96         )
97
98 bld.SAMBA_SUBSYSTEM('NDR_EPMAPPER',
99         source='gen_ndr/ndr_epmapper.c',
100         public_deps='ndr'
101         )
102
103 bld.SAMBA_SUBSYSTEM('NDR_DBGIDL',
104         source='gen_ndr/ndr_dbgidl.c',
105         public_deps='ndr'
106         )
107
108 bld.SAMBA_SUBSYSTEM('NDR_DSSETUP',
109         source='gen_ndr/ndr_dssetup.c',
110         public_deps='ndr'
111         )
112
113 bld.SAMBA_SUBSYSTEM('NDR_MSGSVC',
114         source='gen_ndr/ndr_msgsvc.c',
115         public_deps='ndr'
116         )
117
118 bld.SAMBA_SUBSYSTEM('NDR_MGMT',
119         source='gen_ndr/ndr_mgmt.c',
120         public_deps='ndr'
121         )
122
123 bld.SAMBA_SUBSYSTEM('NDR_ORPC',
124         source='ndr/ndr_orpc.c gen_ndr/ndr_orpc.c',
125         public_deps='ndr'
126         )
127
128 bld.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
129         source='gen_ndr/ndr_oxidresolver.c',
130         public_deps='ndr NDR_ORPC'
131         )
132
133 bld.SAMBA_SUBSYSTEM('NDR_REMACT',
134         source='gen_ndr/ndr_remact.c',
135         public_deps='ndr NDR_ORPC'
136         )
137
138 bld.SAMBA_SUBSYSTEM('NDR_DCOM',
139         source='gen_ndr/ndr_dcom.c',
140         public_deps='ndr NDR_SECURITY NDR_ORPC'
141         )
142
143 bld.SAMBA_SUBSYSTEM('NDR_WMI',
144         source='ndr/ndr_wmi.c gen_ndr/ndr_wmi.c',
145         public_deps='ndr NDR_SECURITY NDR_DCOM'
146         )
147
148 bld.SAMBA_SUBSYSTEM('NDR_WZCSVC',
149         source='gen_ndr/ndr_wzcsvc.c',
150         public_deps='ndr'
151         )
152
153 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
154         source='gen_ndr/ndr_browser.c',
155         public_deps='ndr'
156         )
157
158 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
159         source='gen_ndr/ndr_w32time.c',
160         public_deps='ndr'
161         )
162
163 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
164         source='gen_ndr/ndr_scerpc.c',
165         public_deps='ndr'
166         )
167
168 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
169         source='gen_ndr/ndr_trkwks.c',
170         public_deps='ndr'
171         )
172
173 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
174         source='gen_ndr/ndr_keysvc.c',
175         public_deps='ndr'
176         )
177
178 bld.SAMBA_SUBSYSTEM('NDR_RAP',
179         source='gen_ndr/ndr_rap.c ndr/ndr_rap.c',
180         public_deps='ndr'
181         )
182
183 bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
184         source='gen_ndr/ndr_idmap.c',
185         public_deps='ndr ndr-standard'
186         )
187
188 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
189         source='ndr/ndr_ntlmssp.c gen_ndr/ndr_ntlmssp.c',
190         public_deps='ndr ndr-standard'
191         )
192
193 bld.SAMBA_SUBSYSTEM('NDR_DNSP',
194         source='gen_ndr/ndr_dnsp.c ndr/ndr_dnsp.c',
195         public_deps='ndr'
196         )
197
198 bld.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
199         source='gen_ndr/ndr_ntprinting.c ndr/ndr_ntprinting.c',
200         public_deps='ndr'
201         )
202
203 bld.SAMBA_SUBSYSTEM('NDR_SAMR',
204         source='gen_ndr/ndr_samr.c',
205         public_deps='ndr NDR_SECURITY NDR_LSA'
206         )
207
208 bld.SAMBA_SUBSYSTEM('NDR_LSA',
209         source='gen_ndr/ndr_lsa.c',
210         public_deps='ndr NDR_SECURITY'
211         )
212
213 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
214         source='gen_ndr/ndr_security.c ndr/ndr_sec_helper.c',
215         deps='ndr security',
216         public_headers='gen_ndr/security.h',
217         header_path='gen_ndr'
218         )
219
220 bld.SAMBA_SUBSYSTEM('NDR_SVCCTL',
221         source='gen_ndr/ndr_svcctl.c ndr/ndr_svcctl.c',
222         public_deps='ndr NDR_SECURITY'
223         )
224
225 bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
226         source='gen_ndr/ndr_srvsvc.c',
227         public_deps='ndr NDR_SECURITY NDR_SVCCTL'
228         )
229
230 bld.SAMBA_SUBSYSTEM('NDR_NETLOGON',
231         source='gen_ndr/ndr_netlogon.c ndr/ndr_netlogon.c',
232         public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR NDR_NBT'
233         )
234
235 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
236         source='gen_ndr/ndr_eventlog.c',
237         public_deps='ndr NDR_SECURITY NDR_LSA'
238         )
239
240 bld.SAMBA_SUBSYSTEM('NDR_NTSVCS',
241         source='gen_ndr/ndr_ntsvcs.c',
242         public_deps='ndr'
243         )
244
245 bld.SAMBA_SUBSYSTEM('NDR_WKSSVC',
246         source='gen_ndr/ndr_wkssvc.c',
247         public_deps='ndr NDR_SECURITY'
248         )
249
250 bld.SAMBA_SUBSYSTEM('NDR_ECHO',
251         source='gen_ndr/ndr_echo.c',
252         public_deps='ndr'
253         )
254
255 bld.SAMBA_SUBSYSTEM('NDR_INITSHUTDOWN',
256         source='gen_ndr/ndr_initshutdown.c',
257         public_deps='ndr NDR_LSA'
258         )
259
260 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
261         source='ndr/ndr_compression.c',
262         public_deps='errors ndr',
263         deps='z LZXPRESS'
264         )
265
266 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
267         source='gen_ndr/ndr_dcerpc.c',
268         public_deps='ndr',
269         public_headers='gen_ndr/ndr_dcerpc.h gen_ndr/dcerpc.h',
270         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
271         )
272
273 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
274         source='ndr/ndr_drsuapi.c gen_ndr/ndr_drsuapi.c',
275         public_deps='ndr NDR_COMPRESSION NDR_SECURITY ndr-standard ASN1_UTIL'
276         )
277
278 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
279         source='ndr/ndr_drsblobs.c gen_ndr/ndr_drsblobs.c',
280         public_deps='ndr NDR_DRSUAPI'
281         )
282
283 bld.SAMBA_LIBRARY('ndr-krb5pac',
284                     source='ndr/ndr_krb5pac.c gen_ndr/ndr_krb5pac.c',
285                     public_deps='ndr ndr-standard NDR_SECURITY',
286                     public_headers='gen_ndr/krb5pac.h gen_ndr/ndr_krb5pac.h',
287                     header_path='gen_ndr',
288                     pc_files='ndr_krb5pac.pc',
289                     vnum='0.0.1'
290                     )
291
292 bld.SAMBA_LIBRARY('ndr-standard',
293         source='gen_ndr/ndr_atsvc.c gen_ndr/ndr_eventlog6.c',
294         vnum='0.0.1',
295         pc_files='ndr_standard.pc',
296         deps='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
297         NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
298         NDR_ECHO security NDR_DNS''',
299         public_deps='ndr',
300         public_headers='gen_ndr/samr.h gen_ndr/ndr_samr.h gen_ndr/lsa.h gen_ndr/netlogon.h gen_ndr/atsvc.h gen_ndr/ndr_atsvc.h gen_ndr/ndr_svcctl.h gen_ndr/svcctl.h',
301         header_path='gen_ndr'
302         )
303
304 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
305         source='ndr/ndr_xattr.c gen_ndr/ndr_xattr.c',
306         public_deps='ndr NDR_SECURITY'
307         )
308
309 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
310         source='ndr/ndr_schannel.c gen_ndr/ndr_schannel.c',
311         public_deps='ndr NDR_NBT'
312         )
313
314 bld.SAMBA_SUBSYSTEM('NDR_NBT',
315         source='gen_ndr/ndr_nbt.c',
316         public_deps='ndr NDR_NBT_BUF NDR_SECURITY ndr-standard LIBCLI_NDR_NETLOGON',
317         public_headers='gen_ndr/nbt.h',
318         header_path='gen_ndr'
319         )
320
321 bld.SAMBA_SUBSYSTEM('NDR_BACKUPKEY',
322         source='ndr/ndr_backupkey.c gen_ndr/ndr_backupkey.c',
323         public_deps='ndr'
324         )
325
326 bld.SAMBA_SUBSYSTEM('NDR_PREG',
327         source='gen_ndr/ndr_preg.c ndr/ndr_preg.c',
328         public_deps='ndr'
329         )
330
331 bld.SAMBA_SUBSYSTEM('NDR_FILE_ID',
332         source='gen_ndr/ndr_file_id.c',
333         public_deps='ndr'
334         )
335
336 bld.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
337         source='gen_ndr/ndr_xattr_c.c',
338         public_deps='NDR_XATTR dcerpc'
339         )
340
341 bld.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
342         source='gen_ndr/ndr_rot_c.c',
343         public_deps='NDR_ROT dcerpc'
344         )
345
346 bld.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
347         source='gen_ndr/ndr_audiosrv_c.c',
348         public_deps='NDR_AUDIOSRV dcerpc'
349         )
350
351 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
352         source='gen_ndr/ndr_echo_c.c',
353         public_deps='dcerpc NDR_ECHO'
354         )
355
356 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
357         source='gen_ndr/ndr_dsbackup_c.c',
358         public_deps='dcerpc NDR_DSBACKUP'
359         )
360
361 bld.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
362         source='gen_ndr/ndr_efs_c.c',
363         public_deps='dcerpc NDR_EFS'
364         )
365
366 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
367         source='gen_ndr/ndr_lsa_c.c',
368         public_deps='dcerpc ndr-standard'
369         )
370
371 bld.SAMBA_SUBSYSTEM('RPC_NDR_SAMR',
372         source='gen_ndr/ndr_samr_c.c',
373         public_deps='dcerpc NDR_SAMR'
374         )
375
376 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
377         source='gen_ndr/ndr_dfs_c.c',
378         public_deps='dcerpc ndr-standard'
379         )
380
381 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
382         source='gen_ndr/ndr_frsapi_c.c',
383         public_deps='dcerpc NDR_FRSAPI'
384         )
385
386 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
387         source='gen_ndr/ndr_drsuapi_c.c',
388         public_deps='dcerpc NDR_DRSUAPI'
389         )
390
391 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSBLOBS',
392         source='gen_ndr/ndr_drsblobs_c.c',
393         public_deps='dcerpc NDR_DRSBLOBS'
394         )
395
396 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
397         source='gen_ndr/ndr_policyagent_c.c',
398         public_deps='dcerpc NDR_POLICYAGENT'
399         )
400
401 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
402         source='gen_ndr/ndr_unixinfo_c.c',
403         public_deps='dcerpc NDR_UNIXINFO'
404         )
405
406 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
407         source='gen_ndr/ndr_browser_c.c',
408         public_deps='dcerpc NDR_BROWSER'
409         )
410
411 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
412         source='gen_ndr/ndr_spoolss_c.c',
413         public_deps='dcerpc NDR_SPOOLSS'
414         )
415
416 bld.SAMBA_SUBSYSTEM('RPC_NDR_NBT',
417         source='gen_ndr/ndr_nbt_c.c',
418         public_deps='dcerpc NDR_NBT'
419         )
420
421 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
422         source='gen_ndr/ndr_wkssvc_c.c',
423         public_deps='dcerpc ndr-standard'
424         )
425
426 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
427         source='gen_ndr/ndr_srvsvc_c.c',
428         public_deps='dcerpc NDR_SRVSVC'
429         )
430
431 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
432         source='gen_ndr/ndr_svcctl_c.c',
433         public_deps='dcerpc ndr-standard',
434         public_headers='gen_ndr/ndr_svcctl_c.h',
435         header_path='gen_ndr'
436         )
437
438 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
439         source='gen_ndr/ndr_eventlog_c.c',
440         public_deps='dcerpc ndr-standard'
441         )
442
443 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
444         source='gen_ndr/ndr_epmapper_c.c',
445         public_deps='tevent NDR_EPMAPPER'
446         )
447
448 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
449         source='gen_ndr/ndr_dbgidl_c.c',
450         public_deps='dcerpc NDR_DBGIDL'
451         )
452
453 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
454         source='gen_ndr/ndr_dssetup_c.c',
455         public_deps='dcerpc NDR_DSSETUP'
456         )
457
458 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
459         source='gen_ndr/ndr_msgsvc_c.c',
460         public_deps='dcerpc NDR_MSGSVC'
461         )
462
463 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
464         source='gen_ndr/ndr_winreg_c.c',
465         public_deps='dcerpc ndr-standard'
466         )
467
468 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
469         source='gen_ndr/ndr_initshutdown_c.c',
470         public_deps='dcerpc ndr-standard'
471         )
472
473 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
474         source='gen_ndr/ndr_mgmt_c.c',
475         deps='tevent NDR_MGMT'
476         )
477
478 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
479         source='gen_ndr/ndr_oxidresolver_c.c',
480         public_deps='dcerpc NDR_OXIDRESOLVER'
481         )
482
483 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
484         source='gen_ndr/ndr_remact_c.c',
485         public_deps='dcerpc NDR_REMACT'
486         )
487
488 bld.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
489         source='gen_ndr/ndr_wzcsvc_c.c',
490         public_deps='dcerpc NDR_WZCSVC'
491         )
492
493 bld.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
494         source='gen_ndr/ndr_w32time_c.c',
495         public_deps='dcerpc NDR_W32TIME'
496         )
497
498 bld.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
499         source='gen_ndr/ndr_scerpc_c.c',
500         public_deps='dcerpc NDR_SCERPC'
501         )
502
503 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
504         source='gen_ndr/ndr_ntsvcs_c.c',
505         public_deps='dcerpc ndr-standard'
506         )
507
508 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
509         source='gen_ndr/ndr_netlogon_c.c',
510         public_deps='ndr-standard tevent'
511         )
512
513 bld.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
514         source='gen_ndr/ndr_trkwks_c.c',
515         public_deps='dcerpc NDR_TRKWKS'
516         )
517
518 bld.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
519         source='gen_ndr/ndr_keysvc_c.c',
520         public_deps='dcerpc NDR_KEYSVC'
521         )
522
523 bld.SAMBA_SUBSYSTEM('RPC_NDR_BACKUPKEY',
524         source='gen_ndr/ndr_backupkey_c.c',
525         public_deps='dcerpc NDR_BACKUPKEY'
526         )
527
528 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNSP',
529         source='gen_ndr/ndr_dnsp_c.c',
530         public_deps='dcerpc NDR_DNSP'
531         )
532
533 # a grouping library for NDR subsystems that may be used by more than one target
534 bld.SAMBA_LIBRARY('ndr-samba',
535         source=[],
536         deps='NDR_DRSBLOBS NDR_DRSUAPI NDR_IDMAP NDR_NTLMSSP NDR_SCHANNEL NDR_MGMT NDR_DNSP NDR_EPMAPPER NDR_XATTR NDR_UNIXINFO NDR_NAMED_PIPE_AUTH NDR_DCOM',
537         private_library=True,
538         grouping_library=True
539         )
540
541 # a grouping library for RPC_NDR subsystems that may be used by more than one target
542 bld.SAMBA_LIBRARY('dcerpc-samba',
543         source=[],
544         deps='RPC_NDR_DRSUAPI RPC_NDR_LSA RPC_NDR_WINREG',
545         private_library=True,
546         grouping_library=True
547         )
548
549 bld.SAMBA_LIBRARY('ndr',
550         source='ndr/ndr_string.c ndr/ndr_basic.c ndr/uuid.c ndr/ndr.c ndr/ndr_misc.c gen_ndr/ndr_misc.c',
551         pc_files='ndr.pc',
552         public_deps='errors talloc samba-util',
553         public_headers='gen_ndr/misc.h gen_ndr/ndr_misc.h ndr/libndr.h:ndr.h',
554         header_path= [ ( '*gen_ndr*', 'gen_ndr' ) ],
555         depends_on='PIDL_MISC',
556         vnum='0.0.1'
557         )