build: a more portable way of finding waf in makefiles
[sfrench/samba-autobuild/.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_PROTECTED_STORAGE',
116         source='../librpc/gen_ndr/ndr_protected_storage.c',
117         public_deps='ndr'
118         )
119
120 bld.SAMBA_SUBSYSTEM('NDR_ORPC',
121         source='../librpc/ndr/ndr_orpc.c ../librpc/gen_ndr/ndr_orpc.c',
122         public_deps='ndr'
123         )
124
125 bld.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
126         source='../librpc/gen_ndr/ndr_oxidresolver.c',
127         public_deps='ndr NDR_ORPC'
128         )
129
130 bld.SAMBA_SUBSYSTEM('NDR_REMACT',
131         source='../librpc/gen_ndr/ndr_remact.c',
132         public_deps='ndr NDR_ORPC'
133         )
134
135 bld.SAMBA_SUBSYSTEM('NDR_DCOM',
136         source='../librpc/gen_ndr/ndr_dcom.c',
137         public_deps='ndr NDR_SECURITY NDR_ORPC'
138         )
139
140 bld.SAMBA_SUBSYSTEM('NDR_WMI',
141         source='../librpc/ndr/ndr_wmi.c ../librpc/gen_ndr/ndr_wmi.c',
142         public_deps='ndr NDR_SECURITY NDR_DCOM'
143         )
144
145 bld.SAMBA_SUBSYSTEM('NDR_WZCSVC',
146         source='../librpc/gen_ndr/ndr_wzcsvc.c',
147         public_deps='ndr'
148         )
149
150 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
151         source='../librpc/gen_ndr/ndr_browser.c',
152         public_deps='ndr'
153         )
154
155 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
156         source='../librpc/gen_ndr/ndr_w32time.c',
157         public_deps='ndr'
158         )
159
160 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
161         source='../librpc/gen_ndr/ndr_scerpc.c',
162         public_deps='ndr'
163         )
164
165 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
166         source='../librpc/gen_ndr/ndr_trkwks.c',
167         public_deps='ndr'
168         )
169
170 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
171         source='../librpc/gen_ndr/ndr_keysvc.c',
172         public_deps='ndr'
173         )
174
175 bld.SAMBA_SUBSYSTEM('NDR_RAP',
176         source='../librpc/gen_ndr/ndr_rap.c ../librpc/ndr/ndr_rap.c',
177         public_deps='ndr'
178         )
179
180 bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
181         source='../librpc/gen_ndr/ndr_idmap.c',
182         public_deps='ndr ndr-standard'
183         )
184
185 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
186         source='../librpc/ndr/ndr_ntlmssp.c ../librpc/gen_ndr/ndr_ntlmssp.c',
187         public_deps='ndr ndr-standard'
188         )
189
190 bld.SAMBA_SUBSYSTEM('NDR_DNSP',
191         source='../librpc/gen_ndr/ndr_dnsp.c ../librpc/ndr/ndr_dnsp.c',
192         public_deps='ndr'
193         )
194
195 bld.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
196         source='../librpc/gen_ndr/ndr_ntprinting.c ../librpc/ndr/ndr_ntprinting.c',
197         public_deps='ndr'
198         )
199
200 bld.SAMBA_SUBSYSTEM('NDR_SAMR',
201         source='../librpc/gen_ndr/ndr_samr.c',
202         public_deps='ndr NDR_SECURITY NDR_LSA'
203         )
204
205 bld.SAMBA_SUBSYSTEM('NDR_LSA',
206         source='../librpc/gen_ndr/ndr_lsa.c',
207         public_deps='ndr NDR_SECURITY'
208         )
209
210 bld.SAMBA_SUBSYSTEM('NDR_SVCCTL',
211         source='../librpc/gen_ndr/ndr_svcctl.c ../librpc/ndr/ndr_svcctl.c',
212         public_deps='ndr NDR_SECURITY'
213         )
214
215 bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
216         source='../librpc/gen_ndr/ndr_srvsvc.c',
217         public_deps='ndr NDR_SECURITY NDR_SVCCTL'
218         )
219
220 bld.SAMBA_SUBSYSTEM('NDR_NETLOGON',
221         source='../librpc/gen_ndr/ndr_netlogon.c ../librpc/ndr/ndr_netlogon.c',
222         public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR NDR_NBT'
223         )
224
225 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
226         source='../librpc/gen_ndr/ndr_eventlog.c',
227         public_deps='ndr NDR_SECURITY NDR_LSA'
228         )
229
230 bld.SAMBA_SUBSYSTEM('NDR_NTSVCS',
231         source='../librpc/gen_ndr/ndr_ntsvcs.c',
232         public_deps='ndr'
233         )
234
235 bld.SAMBA_SUBSYSTEM('NDR_WKSSVC',
236         source='../librpc/gen_ndr/ndr_wkssvc.c',
237         public_deps='ndr NDR_SECURITY'
238         )
239
240 bld.SAMBA_SUBSYSTEM('NDR_ECHO',
241         source='../librpc/gen_ndr/ndr_echo.c',
242         public_deps='ndr'
243         )
244
245 bld.SAMBA_SUBSYSTEM('NDR_INITSHUTDOWN',
246         source='../librpc/gen_ndr/ndr_initshutdown.c',
247         public_deps='ndr NDR_LSA'
248         )
249
250 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
251         source='../librpc/ndr/ndr_compression.c',
252         public_deps='errors ndr',
253         deps='z LZXPRESS'
254         )
255
256 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
257         source='../librpc/ndr/ndr_drsuapi.c ../librpc/gen_ndr/ndr_drsuapi.c',
258         public_deps='ndr NDR_COMPRESSION NDR_SECURITY ndr-standard ASN1_UTIL'
259         )
260
261 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
262         source='../librpc/ndr/ndr_drsblobs.c ../librpc/gen_ndr/ndr_drsblobs.c',
263         public_deps='ndr NDR_DRSUAPI'
264         )
265
266 bld.SAMBA_SUBSYSTEM('NDR_KRB5PAC',
267         source='../librpc/ndr/ndr_krb5pac.c ../librpc/gen_ndr/ndr_krb5pac.c',
268         public_deps='ndr ndr-standard NDR_SECURITY'
269         )
270
271
272 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
273         source='../librpc/ndr/ndr_xattr.c ../librpc/gen_ndr/ndr_xattr.c',
274         public_deps='ndr NDR_SECURITY'
275         )
276
277 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
278         source='../librpc/ndr/ndr_schannel.c ../librpc/gen_ndr/ndr_schannel.c',
279         public_deps='ndr NDR_NBT'
280         )
281
282 bld.SAMBA_SUBSYSTEM('NDR_NBT',
283         source='../librpc/gen_ndr/ndr_nbt.c',
284         public_deps='ndr NDR_NBT_BUF NDR_SECURITY ndr-standard LIBCLI_NDR_NETLOGON',
285         public_headers='../librpc/gen_ndr/nbt.h',
286         header_path='gen_ndr'
287         )
288
289 bld.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
290         source='../librpc/gen_ndr/ndr_xattr_c.c',
291         public_deps='NDR_XATTR dcerpc'
292         )
293
294 bld.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
295         source='../librpc/gen_ndr/ndr_rot_c.c',
296         public_deps='NDR_ROT dcerpc'
297         )
298
299 bld.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
300         source='../librpc/gen_ndr/ndr_audiosrv_c.c',
301         public_deps='NDR_AUDIOSRV dcerpc'
302         )
303
304 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
305         source='../librpc/gen_ndr/ndr_echo_c.c',
306         public_deps='dcerpc NDR_ECHO'
307         )
308
309 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
310         source='../librpc/gen_ndr/ndr_dsbackup_c.c',
311         public_deps='dcerpc NDR_DSBACKUP'
312         )
313
314 bld.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
315         source='../librpc/gen_ndr/ndr_efs_c.c',
316         public_deps='dcerpc NDR_EFS'
317         )
318
319 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
320         source='../librpc/gen_ndr/ndr_lsa_c.c',
321         public_deps='dcerpc ndr-standard'
322         )
323
324 bld.SAMBA_SUBSYSTEM('RPC_NDR_SAMR',
325         source='../librpc/gen_ndr/ndr_samr_c.c',
326         public_deps='dcerpc NDR_SAMR'
327         )
328
329 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
330         source='../librpc/gen_ndr/ndr_dfs_c.c',
331         public_deps='dcerpc ndr-standard'
332         )
333
334 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
335         source='../librpc/gen_ndr/ndr_frsapi_c.c',
336         public_deps='dcerpc NDR_FRSAPI'
337         )
338
339 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
340         source='../librpc/gen_ndr/ndr_drsuapi_c.c',
341         public_deps='dcerpc NDR_DRSUAPI'
342         )
343
344 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSBLOBS',
345         source='../librpc/gen_ndr/ndr_drsblobs_c.c',
346         public_deps='dcerpc NDR_DRSBLOBS'
347         )
348
349 bld.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
350         source='../librpc/gen_ndr/ndr_policyagent_c.c',
351         public_deps='dcerpc NDR_POLICYAGENT'
352         )
353
354 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
355         source='../librpc/gen_ndr/ndr_unixinfo_c.c',
356         public_deps='dcerpc NDR_UNIXINFO'
357         )
358
359 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
360         source='../librpc/gen_ndr/ndr_browser_c.c',
361         public_deps='dcerpc NDR_BROWSER'
362         )
363
364 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
365         source='../librpc/gen_ndr/ndr_spoolss_c.c',
366         public_deps='dcerpc NDR_SPOOLSS'
367         )
368
369 bld.SAMBA_SUBSYSTEM('RPC_NDR_NBT',
370         source='../librpc/gen_ndr/ndr_nbt_c.c',
371         public_deps='dcerpc NDR_NBT'
372         )
373
374 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
375         source='../librpc/gen_ndr/ndr_wkssvc_c.c',
376         public_deps='dcerpc ndr-standard'
377         )
378
379 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
380         source='../librpc/gen_ndr/ndr_srvsvc_c.c',
381         public_deps='dcerpc NDR_SRVSVC'
382         )
383
384 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
385         source='../librpc/gen_ndr/ndr_svcctl_c.c',
386         public_deps='dcerpc ndr-standard',
387         public_headers='../librpc/gen_ndr/ndr_svcctl_c.h',
388         header_path='gen_ndr'
389         )
390
391 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
392         source='../librpc/gen_ndr/ndr_eventlog_c.c',
393         public_deps='dcerpc ndr-standard'
394         )
395
396 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
397         source='../librpc/gen_ndr/ndr_epmapper_c.c',
398         public_deps='tevent NDR_EPMAPPER'
399         )
400
401 bld.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
402         source='../librpc/gen_ndr/ndr_dbgidl_c.c',
403         public_deps='dcerpc NDR_DBGIDL'
404         )
405
406 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
407         source='../librpc/gen_ndr/ndr_dssetup_c.c',
408         public_deps='dcerpc NDR_DSSETUP'
409         )
410
411 bld.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
412         source='../librpc/gen_ndr/ndr_msgsvc_c.c',
413         public_deps='dcerpc NDR_MSGSVC'
414         )
415
416 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
417         source='../librpc/gen_ndr/ndr_winreg_c.c',
418         public_deps='dcerpc ndr-standard'
419         )
420
421 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
422         source='../librpc/gen_ndr/ndr_initshutdown_c.c',
423         public_deps='dcerpc ndr-standard'
424         )
425
426 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
427         source='../librpc/gen_ndr/ndr_mgmt_c.c',
428         deps='tevent NDR_MGMT'
429         )
430
431 bld.SAMBA_SUBSYSTEM('RPC_NDR_PROTECTED_STORAGE',
432         source='../librpc/gen_ndr/ndr_protected_storage_c.c',
433         public_deps='dcerpc NDR_PROTECTED_STORAGE'
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 # a grouping library for NDR subsystems that may be used by more than one target
482 bld.SAMBA_LIBRARY('ndr-samba',
483         source=[],
484         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',
485         private_library=True,
486         grouping_library=True
487         )
488
489 # a grouping library for RPC_NDR subsystems that may be used by more than one target
490 bld.SAMBA_LIBRARY('dcerpc-samba',
491         source=[],
492         deps='RPC_NDR_DRSUAPI RPC_NDR_LSA RPC_NDR_WINREG',
493         private_library=True,
494         grouping_library=True
495         )