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