waf: RPC_NDR_WINBIND is samba4 specific
[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 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',
127         private_library=True,
128         depends_on='GEN_NDR_TABLES'
129         )
130
131
132 bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
133         source='gen_ndr/ndr_irpc_c.c',
134         public_deps='dcerpc NDR_IRPC'
135         )
136
137 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
138         source='gen_ndr/ndr_winbind_c.c',
139         public_deps='dcerpc NDR_WINBIND'
140         )
141
142
143 bld.SAMBA_LIBRARY('dcerpc_samr',
144         source='../../librpc/gen_ndr/ndr_samr_c.c',
145         pc_files='dcerpc_samr.pc',
146         vnum='0.0.1',
147         public_deps='dcerpc NDR_STANDARD',
148         public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
149         header_path='gen_ndr'
150         )
151
152
153 bld.SAMBA_LIBRARY('dcerpc_atsvc',
154         source='../../librpc/gen_ndr/ndr_atsvc_c.c',
155         pc_files='dcerpc_atsvc.pc',
156         vnum='0.0.1',
157         public_deps='dcerpc NDR_STANDARD',
158         public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
159         header_path='gen_ndr'
160         )
161
162
163 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
164         source='gen_ndr/ndr_winsif_c.c',
165         public_deps='dcerpc NDR_WINSIF'
166         )
167
168
169 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
170         source='../../librpc/gen_ndr/ndr_dcerpc.c',
171         public_deps='LIBNDR',
172         public_headers='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
173         header_path= [ ('*gen_ndr*', 'gen_ndr') ],
174         )
175
176 bld.SAMBA_LIBRARY('dcerpc',
177         source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
178         rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
179         rpc/dcerpc_connect.c rpc/dcerpc_secondary.c ../../librpc/rpc/binding.c
180         ../../librpc/rpc/dcerpc_error.c ../../librpc/rpc/dcerpc_util.c
181         ../../librpc/rpc/binding_handle.c''',
182         pc_files='dcerpc.pc',
183         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',
184         autoproto='rpc/dcerpc_proto.h',
185         public_deps='CREDENTIALS tevent talloc',
186         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',
187         header_path='gen_ndr',
188         vnum='0.0.1'
189         )
190
191 bld.SAMBA_SUBSYSTEM('pyrpc_util',
192                     source='rpc/pyrpc_util.c',
193                     public_deps='PYTALLOC pyparam_util dcerpc',
194                     pyext=True,
195                     )
196
197
198 bld.SAMBA_PYTHON('python_dcerpc',
199         source='rpc/pyrpc.c',
200         public_deps='LIBCLI_SMB LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG pyrpc_util',
201         realname='samba/dcerpc/base.so'
202         )
203
204
205 bld.SAMBA_PYTHON('python_echo',
206         source='../../librpc/gen_ndr/py_echo.c',
207         deps='RPC_NDR_ECHO PYTALLOC pyrpc_util',
208         realname='samba/dcerpc/echo.so'
209         )
210
211
212 bld.SAMBA_PYTHON('python_winreg',
213         source='../../librpc/gen_ndr/py_winreg.c',
214         deps='RPC_NDR_WINREG PYTALLOC pyrpc_util',
215         realname='samba/dcerpc/winreg.so'
216         )
217
218
219 bld.SAMBA_PYTHON('python_dcerpc_misc',
220         source='../../librpc/gen_ndr/py_misc.c',
221         deps='PYTALLOC pyrpc_util NDR_KRB5PAC',
222         realname='samba/dcerpc/misc.so'
223         )
224
225
226 bld.SAMBA_PYTHON('python_initshutdown',
227         source='../../librpc/gen_ndr/py_initshutdown.c',
228         deps='RPC_NDR_INITSHUTDOWN PYTALLOC pyrpc_util',
229         realname='samba/dcerpc/initshutdown.so'
230         )
231
232
233 bld.SAMBA_PYTHON('python_epmapper',
234         source='../../librpc/gen_ndr/py_epmapper.c',
235         deps='dcerpc PYTALLOC pyrpc_util',
236         realname='samba/dcerpc/epmapper.so'
237         )
238
239
240 bld.SAMBA_PYTHON('python_mgmt',
241         source='../../librpc/gen_ndr/py_mgmt.c',
242         deps='PYTALLOC dcerpc pyrpc_util',
243         realname='samba/dcerpc/mgmt.so'
244         )
245
246
247 bld.SAMBA_PYTHON('python_atsvc',
248         source='../../librpc/gen_ndr/py_atsvc.c',
249         deps='dcerpc_atsvc PYTALLOC pyrpc_util',
250         realname='samba/dcerpc/atsvc.so'
251         )
252
253
254 bld.SAMBA_PYTHON('python_dcerpc_nbt',
255         source='../../librpc/gen_ndr/py_nbt.c',
256         deps='NDR_NBT RPC_NDR_NBT PYTALLOC pyrpc_util',
257         realname='samba/dcerpc/nbt.so'
258         )
259
260
261 bld.SAMBA_PYTHON('python_samr',
262         source='../../librpc/gen_ndr/py_samr.c',
263         deps='dcerpc_samr PYTALLOC pyrpc_util',
264         realname='samba/dcerpc/samr.so'
265         )
266
267
268 bld.SAMBA_PYTHON('python_svcctl',
269         source='../../librpc/gen_ndr/py_svcctl.c',
270         deps='RPC_NDR_SVCCTL PYTALLOC pyrpc_util',
271         realname='samba/dcerpc/svcctl.so'
272         )
273
274
275 bld.SAMBA_PYTHON('python_lsa',
276         source='../../librpc/gen_ndr/py_lsa.c',
277         deps='RPC_NDR_LSA PYTALLOC pyrpc_util',
278         realname='samba/dcerpc/lsa.so'
279         )
280
281
282 bld.SAMBA_PYTHON('python_wkssvc',
283         source='../../librpc/gen_ndr/py_wkssvc.c',
284         deps='RPC_NDR_WKSSVC PYTALLOC pyrpc_util',
285         realname='samba/dcerpc/wkssvc.so'
286         )
287
288
289 bld.SAMBA_PYTHON('python_dfs',
290         source='../../librpc/gen_ndr/py_dfs.c',
291         deps='RPC_NDR_DFS PYTALLOC pyrpc_util',
292         realname='samba/dcerpc/dfs.so'
293         )
294
295
296 bld.SAMBA_PYTHON('python_unixinfo',
297         source='../../librpc/gen_ndr/py_unixinfo.c',
298         deps='RPC_NDR_UNIXINFO PYTALLOC pyrpc_util',
299         realname='samba/dcerpc/unixinfo.so'
300         )
301
302
303 bld.SAMBA_PYTHON('python_irpc',
304         source='gen_ndr/py_irpc.c',
305         deps='RPC_NDR_IRPC PYTALLOC pyrpc_util',
306         realname='samba/dcerpc/irpc.so'
307         )
308
309 bld.SAMBA_PYTHON('python_winbind',
310         source='gen_ndr/py_winbind.c',
311         deps='RPC_NDR_WINBIND PYTALLOC pyrpc_util python_netlogon',
312         realname='samba/dcerpc/winbind.so'
313         )
314
315 bld.SAMBA_PYTHON('python_idmap',
316         source='../../librpc/gen_ndr/py_idmap.c',
317         deps='NDR_IDMAP PYTALLOC pyrpc_util',
318         realname='samba/dcerpc/idmap.so'
319         )
320
321
322 bld.SAMBA_PYTHON('python_drsuapi',
323         source='../../librpc/gen_ndr/py_drsuapi.c',
324         deps='RPC_NDR_DRSUAPI PYTALLOC pyrpc_util',
325         realname='samba/dcerpc/drsuapi.so'
326         )
327
328 bld.SAMBA_PYTHON('python_dcerpc_security',
329         source='../../librpc/gen_ndr/py_security.c',
330         deps='PYTALLOC pyrpc_util NDR_SECURITY',
331         realname='samba/dcerpc/security.so'
332         )
333
334 bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
335         source='../../librpc/gen_ndr/py_drsblobs.c',
336         deps='PYTALLOC pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
337         realname='samba/dcerpc/drsblobs.so'
338         )
339
340
341 bld.SAMBA_PYTHON('python_dcerpc_xattr',
342         source='../../librpc/gen_ndr/py_xattr.c',
343         deps='PYTALLOC pyrpc_util RPC_NDR_XATTR',
344         realname='samba/dcerpc/xattr.so'
345         )
346
347 bld.SAMBA_PYTHON('python_netlogon',
348         source='../../librpc/gen_ndr/py_netlogon.c',
349         deps='RPC_NDR_NETLOGON PYTALLOC pyrpc_util',
350         realname='samba/dcerpc/netlogon.so'
351         )
352
353 bld.SAMBA_SCRIPT('python_dcerpc_init',
354                  pattern='rpc/dcerpc.py',
355                  installdir='python/samba/dcerpc',
356                  installname='__init__.py')
357
358 bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')