waf: Stop automaticaly changing dashes to underscores in library names.
[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('ndr',
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='errors talloc samba-util CHARSET',
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='samba-hostconfig samba-util popt POPT_SAMBA ndr-table errors'
21         )
22
23
24
25 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
26         source='../../librpc/gen_ndr/ndr_security.c ../../librpc/ndr/ndr_sec_helper.c gen_ndr/ndr_server_id.c',
27         public_deps='ndr',
28         public_headers='../../librpc/gen_ndr/security.h gen_ndr/server_id.h',
29         header_path='gen_ndr'
30         )
31
32
33 bld.SAMBA_SUBSYSTEM('NDR_WINSTATION',
34         source='gen_ndr/ndr_winstation.c',
35         public_deps='ndr'
36         )
37
38
39 bld.SAMBA_SUBSYSTEM('NDR_IRPC',
40         source='gen_ndr/ndr_irpc.c',
41         public_deps='ndr NDR_SECURITY NDR_NBT'
42         )
43
44
45 bld.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
46         source='gen_ndr/ndr_sasl_helpers.c',
47         public_deps='ndr'
48         )
49
50
51
52 bld.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
53         source='gen_ndr/ndr_nfs4acl.c',
54         public_deps='ndr NDR_SECURITY'
55         )
56
57
58
59 bld.SAMBA_SUBSYSTEM('NDR_WINSIF',
60         source='gen_ndr/ndr_winsif.c',
61         public_deps='ndr'
62         )
63
64
65 bld.SAMBA_SUBSYSTEM('NDR_OPENDB',
66         source='gen_ndr/ndr_opendb.c',
67         public_deps='ndr'
68         )
69
70
71 bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
72         source='gen_ndr/ndr_s4_notify.c',
73         public_deps='ndr'
74         )
75
76
77 bld.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
78         source='gen_ndr/ndr_ntp_signd.c',
79         public_deps='ndr'
80         )
81
82
83 bld.SAMBA_SUBSYSTEM('NDR_WINSREPL',
84         source='gen_ndr/ndr_winsrepl.c',
85         public_deps='ndr NDR_NBT'
86         )
87
88
89 bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
90         source='gen_ndr/ndr_winbind.c',
91         public_deps='NDR_IDMAP ndr ndr-standard'
92         )
93
94
95 bld.SAMBA_LIBRARY('ndr-standard',
96         source='../../librpc/gen_ndr/ndr_atsvc.c ../../librpc/gen_ndr/ndr_eventlog6.c',
97         vnum='0.0.1',
98         pc_files='../../librpc/ndr_standard.pc',
99         deps='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
100         NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
101         NDR_ECHO security NDR_DNS''',
102         public_deps='ndr',
103         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',
104         header_path='gen_ndr'
105         )
106
107 # create a grouping library to consolidate our samba4 specific NDR code
108 bld.SAMBA_LIBRARY('ndr-samba4',
109         source=[],
110         deps='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB NDR_NOTIFY',
111         private_library=True,
112         grouping_library=True
113         )
114
115 # a grouping library for RPC_NDR subsystems that may be used by more than one target
116 bld.SAMBA_LIBRARY('dcerpc-samba4',
117         source=[],
118         deps='RPC_NDR_WINBIND',
119         private_library=True,
120         grouping_library=True
121         )
122
123
124 bld.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
125
126 bld.SAMBA_LIBRARY('ndr-table',
127         source='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
128         public_deps='''ndr-standard NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
129         NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
130         NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
131         NDR_PROTECTED_STORAGE NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
132         NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC NDR_KRB5PAC
133         NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS NDR_NBT NDR_WINSREPL
134         NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB
135         NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI
136         NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI
137         NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP
138         NDR_NTPRINTING NDR_DNS''',
139         private_library=True,
140         depends_on='GEN_NDR_TABLES'
141         )
142
143
144 bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
145         source='gen_ndr/ndr_irpc_c.c',
146         public_deps='dcerpc NDR_IRPC'
147         )
148
149 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
150         source='gen_ndr/ndr_winbind_c.c',
151         public_deps='dcerpc NDR_WINBIND'
152         )
153
154
155 bld.SAMBA_LIBRARY('dcerpc-samr',
156         source='../../librpc/gen_ndr/ndr_samr_c.c',
157         pc_files='dcerpc_samr.pc',
158         vnum='0.0.1',
159         public_deps='dcerpc ndr-standard',
160         public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
161         header_path='gen_ndr'
162         )
163
164 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNS',
165         source='../../librpc/gen_ndr/ndr_dns_c.c',
166         public_deps='dcerpc ndr-standard',
167         )
168
169
170 bld.SAMBA_LIBRARY('dcerpc-atsvc',
171         source='../../librpc/gen_ndr/ndr_atsvc_c.c',
172         pc_files='dcerpc_atsvc.pc',
173         vnum='0.0.1',
174         public_deps='dcerpc ndr-standard',
175         public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
176         header_path='gen_ndr'
177         )
178
179
180 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
181         source='gen_ndr/ndr_winsif_c.c',
182         public_deps='dcerpc NDR_WINSIF'
183         )
184
185
186 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
187         source='../../librpc/gen_ndr/ndr_dcerpc.c',
188         public_deps='ndr',
189         public_headers='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
190         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
191         )
192
193 bld.SAMBA_LIBRARY('dcerpc',
194         source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
195         rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
196         rpc/dcerpc_connect.c rpc/dcerpc_secondary.c ../../librpc/rpc/binding.c
197         ../../librpc/rpc/dcerpc_error.c ../../librpc/rpc/dcerpc_util.c
198         ../../librpc/rpc/binding_handle.c''',
199         pc_files='dcerpc.pc',
200         deps='samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 ndr NDR_DCERPC RPC_NDR_EPMAPPER NDR_SCHANNEL RPC_NDR_NETLOGON RPC_NDR_MGMT gensec LIBCLI_AUTH LIBCLI_RAW LP_RESOLVE UTIL_TEVENT',
201         autoproto='rpc/dcerpc_proto.h',
202         public_deps='CREDENTIALS tevent talloc',
203         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',
204         header_path='gen_ndr',
205         vnum='0.0.1'
206         )
207
208 bld.SAMBA_SUBSYSTEM('pyrpc_util',
209         source='rpc/pyrpc_util.c',
210         public_deps='PYTALLOC pyparam_util dcerpc',
211         pyext=True,
212         )
213
214
215 bld.SAMBA_PYTHON('python_dcerpc',
216         source='rpc/pyrpc.c',
217         public_deps='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG pyrpc_util',
218         realname='samba/dcerpc/base.so'
219         )
220
221
222 bld.SAMBA_PYTHON('python_echo',
223         source='../../librpc/gen_ndr/py_echo.c',
224         deps='RPC_NDR_ECHO PYTALLOC pyrpc_util',
225         realname='samba/dcerpc/echo.so'
226         )
227
228
229 bld.SAMBA_PYTHON('python_winreg',
230         source='../../librpc/gen_ndr/py_winreg.c',
231         deps='RPC_NDR_WINREG PYTALLOC pyrpc_util',
232         realname='samba/dcerpc/winreg.so'
233         )
234
235
236 bld.SAMBA_PYTHON('python_dcerpc_misc',
237         source='../../librpc/gen_ndr/py_misc.c',
238         deps='PYTALLOC pyrpc_util NDR_KRB5PAC',
239         realname='samba/dcerpc/misc.so'
240         )
241
242
243 bld.SAMBA_PYTHON('python_initshutdown',
244         source='../../librpc/gen_ndr/py_initshutdown.c',
245         deps='RPC_NDR_INITSHUTDOWN PYTALLOC pyrpc_util',
246         realname='samba/dcerpc/initshutdown.so'
247         )
248
249
250 bld.SAMBA_PYTHON('python_epmapper',
251         source='../../librpc/gen_ndr/py_epmapper.c',
252         deps='dcerpc PYTALLOC pyrpc_util',
253         realname='samba/dcerpc/epmapper.so'
254         )
255
256
257 bld.SAMBA_PYTHON('python_mgmt',
258         source='../../librpc/gen_ndr/py_mgmt.c',
259         deps='PYTALLOC dcerpc pyrpc_util',
260         realname='samba/dcerpc/mgmt.so'
261         )
262
263
264 bld.SAMBA_PYTHON('python_atsvc',
265         source='../../librpc/gen_ndr/py_atsvc.c',
266         deps='dcerpc-atsvc PYTALLOC pyrpc_util',
267         realname='samba/dcerpc/atsvc.so'
268         )
269
270
271 bld.SAMBA_PYTHON('python_dcerpc_nbt',
272         source='../../librpc/gen_ndr/py_nbt.c',
273         deps='NDR_NBT RPC_NDR_NBT PYTALLOC pyrpc_util',
274         realname='samba/dcerpc/nbt.so'
275         )
276
277
278 bld.SAMBA_PYTHON('python_samr',
279         source='../../librpc/gen_ndr/py_samr.c',
280         deps='dcerpc-samr PYTALLOC pyrpc_util',
281         realname='samba/dcerpc/samr.so'
282         )
283
284
285 bld.SAMBA_PYTHON('python_svcctl',
286         source='../../librpc/gen_ndr/py_svcctl.c',
287         deps='RPC_NDR_SVCCTL PYTALLOC pyrpc_util',
288         realname='samba/dcerpc/svcctl.so'
289         )
290
291
292 bld.SAMBA_PYTHON('python_lsa',
293         source='../../librpc/gen_ndr/py_lsa.c',
294         deps='RPC_NDR_LSA PYTALLOC pyrpc_util',
295         realname='samba/dcerpc/lsa.so'
296         )
297
298
299 bld.SAMBA_PYTHON('python_wkssvc',
300         source='../../librpc/gen_ndr/py_wkssvc.c',
301         deps='RPC_NDR_WKSSVC PYTALLOC pyrpc_util',
302         realname='samba/dcerpc/wkssvc.so'
303         )
304
305
306 bld.SAMBA_PYTHON('python_dfs',
307         source='../../librpc/gen_ndr/py_dfs.c',
308         deps='RPC_NDR_DFS PYTALLOC pyrpc_util',
309         realname='samba/dcerpc/dfs.so'
310         )
311
312
313 bld.SAMBA_PYTHON('python_unixinfo',
314         source='../../librpc/gen_ndr/py_unixinfo.c',
315         deps='RPC_NDR_UNIXINFO PYTALLOC pyrpc_util',
316         realname='samba/dcerpc/unixinfo.so'
317         )
318
319
320 bld.SAMBA_PYTHON('python_irpc',
321         source='gen_ndr/py_irpc.c',
322         deps='RPC_NDR_IRPC PYTALLOC pyrpc_util',
323         realname='samba/dcerpc/irpc.so'
324         )
325
326 bld.SAMBA_PYTHON('python_winbind',
327         source='gen_ndr/py_winbind.c',
328         deps='RPC_NDR_WINBIND PYTALLOC pyrpc_util python_netlogon',
329         realname='samba/dcerpc/winbind.so'
330         )
331
332 bld.SAMBA_PYTHON('python_idmap',
333         source='../../librpc/gen_ndr/py_idmap.c',
334         deps='NDR_IDMAP PYTALLOC pyrpc_util',
335         realname='samba/dcerpc/idmap.so'
336         )
337
338
339 bld.SAMBA_PYTHON('python_drsuapi',
340         source='../../librpc/gen_ndr/py_drsuapi.c',
341         deps='RPC_NDR_DRSUAPI PYTALLOC pyrpc_util',
342         realname='samba/dcerpc/drsuapi.so'
343         )
344
345 bld.SAMBA_PYTHON('python_dcerpc_security',
346         source='../../librpc/gen_ndr/py_security.c',
347         deps='PYTALLOC pyrpc_util NDR_SECURITY',
348         realname='samba/dcerpc/security.so'
349         )
350
351 bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
352         source='../../librpc/gen_ndr/py_drsblobs.c',
353         deps='PYTALLOC pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
354         realname='samba/dcerpc/drsblobs.so'
355         )
356
357
358 bld.SAMBA_PYTHON('python_dcerpc_xattr',
359         source='../../librpc/gen_ndr/py_xattr.c',
360         deps='PYTALLOC pyrpc_util RPC_NDR_XATTR',
361         realname='samba/dcerpc/xattr.so'
362         )
363
364 bld.SAMBA_PYTHON('python_dns',
365         source='../../librpc/gen_ndr/py_dns.c',
366         deps='PYTALLOC NDR_DNS pyrpc_util RPC_NDR_DNS',
367         realname='samba/dcerpc/dns.so'
368         )
369
370 bld.SAMBA_PYTHON('python_netlogon',
371         source='../../librpc/gen_ndr/py_netlogon.c',
372         deps='RPC_NDR_NETLOGON PYTALLOC pyrpc_util',
373         realname='samba/dcerpc/netlogon.so'
374         )
375
376 bld.SAMBA_SCRIPT('python_dcerpc_init',
377                  pattern='rpc/dcerpc.py',
378                  installdir='python/samba/dcerpc',
379                  installname='__init__.py')
380
381 bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')