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