s4-waf: add NDR_EVENTLOG.
[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 LIBSAMBA-HOSTCONFIG',
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 LIBSECURITY',
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_echo.c ../../librpc/ndr/ndr_netlogon.c ../../librpc/gen_ndr/ndr_netlogon.c ../../librpc/gen_ndr/ndr_dfs.c ../../librpc/gen_ndr/ndr_atsvc.c ../../librpc/gen_ndr/ndr_wkssvc.c ../../librpc/gen_ndr/ndr_srvsvc.c ../../librpc/ndr/ndr_svcctl.c ../../librpc/gen_ndr/ndr_svcctl.c ../../librpc/gen_ndr/ndr_winreg.c ../../librpc/gen_ndr/ndr_initshutdown.c ../../librpc/gen_ndr/ndr_ntsvcs.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_EVENTLOG',
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
106 bld.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
107
108 bld.SAMBA_SUBSYSTEM('NDR_TABLE',
109         source='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
110         public_deps='NDR_STANDARD NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT NDR_PROTECTED_STORAGE NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC NDR_KRB5PAC NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS NDR_NBT NDR_WINSREPL NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP NDR_NTPRINTING',
111         depends_on='GEN_NDR_TABLES'
112         )
113
114
115 bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
116         source='gen_ndr/ndr_irpc_c.c',
117         public_deps='dcerpc NDR_IRPC'
118         )
119
120 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
121         source='gen_ndr/ndr_winbind_c.c',
122         public_deps='dcerpc NDR_WINBIND'
123         )
124
125
126 bld.SAMBA_LIBRARY('dcerpc_samr',
127         source='../../librpc/gen_ndr/ndr_samr_c.c',
128         pc_files='dcerpc_samr.pc',
129         vnum='0.0.1',
130         public_deps='dcerpc NDR_STANDARD',
131         public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
132         header_path='gen_ndr'
133         )
134
135
136 bld.SAMBA_LIBRARY('dcerpc_atsvc',
137         source='../../librpc/gen_ndr/ndr_atsvc_c.c',
138         pc_files='dcerpc_atsvc.pc',
139         vnum='0.0.1',
140         public_deps='dcerpc NDR_STANDARD',
141         public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
142         header_path='gen_ndr'
143         )
144
145
146 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
147         source='gen_ndr/ndr_winsif_c.c',
148         public_deps='dcerpc NDR_WINSIF'
149         )
150
151
152 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
153         source='../../librpc/gen_ndr/ndr_dcerpc.c',
154         public_deps='LIBNDR',
155         public_headers='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
156         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
157         )
158
159 bld.SAMBA_LIBRARY('dcerpc',
160         source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
161         rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
162         rpc/dcerpc_connect.c rpc/dcerpc_secondary.c ../../librpc/rpc/binding.c
163         ../../librpc/rpc/dcerpc_error.c ../../librpc/rpc/dcerpc_util.c
164         ../../librpc/rpc/binding_handle.c''',
165         pc_files='dcerpc.pc',
166         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',
167         autoproto='rpc/dcerpc_proto.h',
168         public_deps='CREDENTIALS tevent talloc',
169         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',
170         header_path='gen_ndr',
171         vnum='0.0.1'
172         )
173
174 bld.SAMBA_SUBSYSTEM('pyrpc_util',
175         source='rpc/pyrpc_util.c',
176         public_deps='PYTALLOC pyparam_util pycredentials dcerpc',
177         needs_python=True,
178         )
179
180
181 bld.SAMBA_PYTHON('python_dcerpc',
182         source='rpc/pyrpc.c',
183         public_deps='LIBCLI_SMB LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG pyrpc_util',
184         realname='samba/dcerpc/base.so'
185         )
186
187
188 bld.SAMBA_PYTHON('python_echo',
189         source='../../librpc/gen_ndr/py_echo.c',
190         deps='RPC_NDR_ECHO PYTALLOC pyrpc_util',
191         realname='samba/dcerpc/echo.so'
192         )
193
194
195 bld.SAMBA_PYTHON('python_winreg',
196         source='../../librpc/gen_ndr/py_winreg.c',
197         deps='RPC_NDR_WINREG PYTALLOC pyrpc_util',
198         realname='samba/dcerpc/winreg.so'
199         )
200
201
202 bld.SAMBA_PYTHON('python_dcerpc_misc',
203         source='../../librpc/gen_ndr/py_misc.c',
204         deps='PYTALLOC pyrpc_util NDR_MISC NDR_KRB5PAC',
205         realname='samba/dcerpc/misc.so'
206         )
207
208
209 bld.SAMBA_PYTHON('python_initshutdown',
210         source='../../librpc/gen_ndr/py_initshutdown.c',
211         deps='RPC_NDR_INITSHUTDOWN PYTALLOC pyrpc_util',
212         realname='samba/dcerpc/initshutdown.so'
213         )
214
215
216 bld.SAMBA_PYTHON('python_epmapper',
217         source='../../librpc/gen_ndr/py_epmapper.c',
218         deps='dcerpc PYTALLOC pyrpc_util',
219         realname='samba/dcerpc/epmapper.so'
220         )
221
222
223 bld.SAMBA_PYTHON('python_mgmt',
224         source='../../librpc/gen_ndr/py_mgmt.c',
225         deps='PYTALLOC dcerpc pyrpc_util',
226         realname='samba/dcerpc/mgmt.so'
227         )
228
229
230 bld.SAMBA_PYTHON('python_atsvc',
231         source='../../librpc/gen_ndr/py_atsvc.c',
232         deps='dcerpc_atsvc PYTALLOC pyrpc_util',
233         realname='samba/dcerpc/atsvc.so'
234         )
235
236
237 bld.SAMBA_PYTHON('python_dcerpc_nbt',
238         source='../../librpc/gen_ndr/py_nbt.c',
239         deps='NDR_NBT RPC_NDR_NBT PYTALLOC pyrpc_util',
240         realname='samba/dcerpc/nbt.so'
241         )
242
243
244 bld.SAMBA_PYTHON('python_samr',
245         source='../../librpc/gen_ndr/py_samr.c',
246         deps='dcerpc_samr PYTALLOC pyrpc_util',
247         realname='samba/dcerpc/samr.so'
248         )
249
250
251 bld.SAMBA_PYTHON('python_svcctl',
252         source='../../librpc/gen_ndr/py_svcctl.c',
253         deps='RPC_NDR_SVCCTL PYTALLOC pyrpc_util',
254         realname='samba/dcerpc/svcctl.so'
255         )
256
257
258 bld.SAMBA_PYTHON('python_lsa',
259         source='../../librpc/gen_ndr/py_lsa.c',
260         deps='RPC_NDR_LSA PYTALLOC pyrpc_util',
261         realname='samba/dcerpc/lsa.so'
262         )
263
264
265 bld.SAMBA_PYTHON('python_wkssvc',
266         source='../../librpc/gen_ndr/py_wkssvc.c',
267         deps='RPC_NDR_WKSSVC PYTALLOC pyrpc_util',
268         realname='samba/dcerpc/wkssvc.so'
269         )
270
271
272 bld.SAMBA_PYTHON('python_dfs',
273         source='../../librpc/gen_ndr/py_dfs.c',
274         deps='RPC_NDR_DFS PYTALLOC pyrpc_util',
275         realname='samba/dcerpc/dfs.so'
276         )
277
278
279 bld.SAMBA_PYTHON('python_unixinfo',
280         source='../../librpc/gen_ndr/py_unixinfo.c',
281         deps='RPC_NDR_UNIXINFO PYTALLOC pyrpc_util',
282         realname='samba/dcerpc/unixinfo.so'
283         )
284
285
286 bld.SAMBA_PYTHON('python_irpc',
287         source='gen_ndr/py_irpc.c',
288         deps='RPC_NDR_IRPC PYTALLOC pyrpc_util',
289         realname='samba/dcerpc/irpc.so'
290         )
291
292 bld.SAMBA_PYTHON('python_winbind',
293         source='gen_ndr/py_winbind.c',
294         deps='RPC_NDR_WINBIND PYTALLOC pyrpc_util python_netlogon',
295         realname='samba/dcerpc/winbind.so'
296         )
297
298 bld.SAMBA_PYTHON('python_idmap',
299         source='../../librpc/gen_ndr/py_idmap.c',
300         deps='NDR_IDMAP PYTALLOC pyrpc_util',
301         realname='samba/dcerpc/idmap.so'
302         )
303
304
305 bld.SAMBA_PYTHON('python_drsuapi',
306         source='../../librpc/gen_ndr/py_drsuapi.c',
307         deps='RPC_NDR_DRSUAPI PYTALLOC pyrpc_util',
308         realname='samba/dcerpc/drsuapi.so'
309         )
310
311 bld.SAMBA_PYTHON('python_dcerpc_security',
312         source='../../librpc/gen_ndr/py_security.c',
313         deps='PYTALLOC pyrpc_util NDR_SECURITY',
314         realname='samba/dcerpc/security.so'
315         )
316
317 bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
318         source='../../librpc/gen_ndr/py_drsblobs.c',
319         deps='PYTALLOC pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
320         realname='samba/dcerpc/drsblobs.so'
321         )
322
323
324 bld.SAMBA_PYTHON('python_dcerpc_xattr',
325         source='../../librpc/gen_ndr/py_xattr.c',
326         deps='PYTALLOC pyrpc_util RPC_NDR_XATTR',
327         realname='samba/dcerpc/xattr.so'
328         )
329
330 bld.SAMBA_PYTHON('python_netlogon',
331         source='../../librpc/gen_ndr/py_netlogon.c',
332         deps='RPC_NDR_NETLOGON PYTALLOC pyrpc_util',
333         realname='samba/dcerpc/netlogon.so'
334         )
335
336 bld.SAMBA_SCRIPT('python_dcerpc_init',
337                  pattern='rpc/dcerpc.py',
338                  installdir='python/samba/dcerpc',
339                  installname='__init__.py')
340
341 bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')