3 bld
.RECURSE('../../librpc/idl')
4 bld
.RECURSE('../../librpc/tools')
8 bld
.SAMBA_SUBSYSTEM('NDR_WINSTATION',
9 source
='gen_ndr/ndr_winstation.c',
14 bld
.SAMBA_SUBSYSTEM('NDR_IRPC',
15 source
='gen_ndr/ndr_irpc.c',
16 public_deps
='ndr NDR_SECURITY ndr_nbt'
20 bld
.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
21 source
='gen_ndr/ndr_sasl_helpers.c',
27 bld
.SAMBA_SUBSYSTEM('NDR_WINSIF',
28 source
='gen_ndr/ndr_winsif.c',
33 bld
.SAMBA_SUBSYSTEM('NDR_OPENDB',
34 source
='gen_ndr/ndr_opendb.c',
39 bld
.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
40 source
='gen_ndr/ndr_ntp_signd.c',
45 bld
.SAMBA_SUBSYSTEM('NDR_WINSREPL',
46 source
='gen_ndr/ndr_winsrepl.c',
47 public_deps
='ndr ndr_nbt'
51 bld
.SAMBA_SUBSYSTEM('NDR_WINBIND',
52 source
='gen_ndr/ndr_winbind.c',
53 public_deps
='NDR_IDMAP ndr ndr-standard'
56 # create a grouping library to consolidate our samba4 specific NDR code
57 bld
.SAMBA_LIBRARY('ndr-samba4',
59 deps
='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB ndr-table',
64 # a grouping library for RPC_NDR subsystems that may be used by more than one target
65 bld
.SAMBA_LIBRARY('dcerpc-samba4',
67 deps
='RPC_NDR_WINBIND',
73 bld
.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
75 bld
.SAMBA_SUBSYSTEM('ndr-table',
76 source
='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
77 public_deps
='''ndr-standard NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
78 NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
79 NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
80 NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
81 NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC ndr-krb5pac
82 NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS ndr_nbt NDR_WINSREPL
83 NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB
84 NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI
85 NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI
86 NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP
87 NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_WBINT''',
88 depends_on
='GEN_NDR_TABLES'
92 bld
.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
93 source
='gen_ndr/ndr_irpc_c.c',
94 public_deps
='dcerpc NDR_IRPC'
97 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
98 source
='gen_ndr/ndr_winbind_c.c',
99 public_deps
='dcerpc NDR_WINBIND'
103 bld
.SAMBA_LIBRARY('dcerpc-samr',
105 pc_files
='dcerpc_samr.pc',
107 public_deps
='dcerpc ndr-standard RPC_NDR_SAMR',
108 public_headers
='../../librpc/gen_ndr/ndr_samr_c.h',
109 header_path
='gen_ndr'
113 bld
.SAMBA_LIBRARY('dcerpc-atsvc',
115 pc_files
='dcerpc_atsvc.pc',
117 public_deps
='dcerpc ndr-standard RPC_NDR_ATSVC',
118 public_headers
='../../librpc/gen_ndr/ndr_atsvc_c.h',
119 header_path
='gen_ndr'
123 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
124 source
='gen_ndr/ndr_winsif_c.c',
125 public_deps
='dcerpc NDR_WINSIF'
129 bld
.SAMBA_LIBRARY('dcerpc',
130 source
='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
131 rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
132 rpc/dcerpc_connect.c rpc/dcerpc_secondary.c''',
133 pc_files
='dcerpc.pc',
134 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 smbclient-raw LP_RESOLVE tevent-util dcerpc-binding param_options',
135 autoproto
='rpc/dcerpc_proto.h',
136 public_deps
='samba-credentials tevent talloc',
137 public_headers
='''rpc/dcerpc.h ../../librpc/gen_ndr/mgmt.h
138 ../../librpc/gen_ndr/ndr_mgmt.h ../../librpc/gen_ndr/ndr_mgmt_c.h
139 ../../librpc/gen_ndr/epmapper.h ../../librpc/gen_ndr/ndr_epmapper.h
140 ../../librpc/gen_ndr/ndr_epmapper_c.h''',
141 # It's very important to keep this form of construction
142 # it force the sambawaf extension to put everything that match the first element
143 # (*gen_ndr*) into the dir named by the second element (gen_ndr).
144 # If we just put header_path = 'gen_ndr' then all the public_headers will go
145 # in 'gen_ndr' and for dcerpc.h (at least) it will cause a problem as
146 # we have already a dcerpc.h installed by librpc/wscript_build
147 # and one will overright the other which is not what we expect.
148 header_path
=[ ('*gen_ndr*', 'gen_ndr') ],
152 bld
.SAMBA_SUBSYSTEM('pyrpc_util',
153 source
='rpc/pyrpc_util.c',
154 public_deps
='pytalloc-util pyparam_util dcerpc MESSAGING',
159 bld
.SAMBA_PYTHON('python_dcerpc',
160 source
='rpc/pyrpc.c',
161 public_deps
='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG pyrpc_util gensec',
162 realname
='samba/dcerpc/base.so'
165 bld
.SAMBA_PYTHON('python_srvsvc',
166 source
='../../librpc/gen_ndr/py_srvsvc.c',
167 deps
='RPC_NDR_SRVSVC pytalloc-util pyrpc_util',
168 realname
='samba/dcerpc/srvsvc.so'
171 bld
.SAMBA_PYTHON('python_echo',
172 source
='../../librpc/gen_ndr/py_echo.c',
173 deps
='RPC_NDR_ECHO pytalloc-util pyrpc_util',
174 realname
='samba/dcerpc/echo.so'
177 bld
.SAMBA_PYTHON('python_dns',
178 source
='../../librpc/gen_ndr/py_dns.c',
179 deps
='RPC_NDR_DNS pytalloc-util pyrpc_util',
180 realname
='samba/dcerpc/dns.so'
183 bld
.SAMBA_PYTHON('python_auth',
184 source
='../../librpc/gen_ndr/py_auth.c',
185 deps
='NDR_AUTH pytalloc-util pyrpc_util',
186 realname
='samba/dcerpc/auth.so'
189 bld
.SAMBA_PYTHON('python_krb5pac',
190 source
='../../librpc/gen_ndr/py_krb5pac.c',
191 deps
='ndr-krb5pac pytalloc-util pyrpc_util',
192 realname
='samba/dcerpc/krb5pac.so'
195 bld
.SAMBA_PYTHON('python_winreg',
196 source
='../../librpc/gen_ndr/py_winreg.c',
197 deps
='RPC_NDR_WINREG pytalloc-util pyrpc_util',
198 realname
='samba/dcerpc/winreg.so'
202 bld
.SAMBA_PYTHON('python_dcerpc_misc',
203 source
='../../librpc/gen_ndr/py_misc.c',
204 deps
='pytalloc-util pyrpc_util ndr-krb5pac',
205 realname
='samba/dcerpc/misc.so'
209 bld
.SAMBA_PYTHON('python_initshutdown',
210 source
='../../librpc/gen_ndr/py_initshutdown.c',
211 deps
='RPC_NDR_INITSHUTDOWN pytalloc-util pyrpc_util',
212 realname
='samba/dcerpc/initshutdown.so'
216 bld
.SAMBA_PYTHON('python_epmapper',
217 source
='../../librpc/gen_ndr/py_epmapper.c',
218 deps
='dcerpc pytalloc-util pyrpc_util',
219 realname
='samba/dcerpc/epmapper.so'
223 bld
.SAMBA_PYTHON('python_mgmt',
224 source
='../../librpc/gen_ndr/py_mgmt.c',
225 deps
='pytalloc-util dcerpc pyrpc_util',
226 realname
='samba/dcerpc/mgmt.so'
230 bld
.SAMBA_PYTHON('python_atsvc',
231 source
='../../librpc/gen_ndr/py_atsvc.c',
232 deps
='dcerpc-atsvc pytalloc-util pyrpc_util',
233 realname
='samba/dcerpc/atsvc.so'
237 bld
.SAMBA_PYTHON('python_dcerpc_nbt',
238 source
='../../librpc/gen_ndr/py_nbt.c',
239 deps
='ndr_nbt RPC_NDR_NBT pytalloc-util pyrpc_util',
240 realname
='samba/dcerpc/nbt.so'
244 bld
.SAMBA_PYTHON('python_samr',
245 source
='../../librpc/gen_ndr/py_samr.c',
246 deps
='dcerpc-samr pytalloc-util pyrpc_util',
247 realname
='samba/dcerpc/samr.so'
251 bld
.SAMBA_PYTHON('python_svcctl',
252 source
='../../librpc/gen_ndr/py_svcctl.c',
253 deps
='RPC_NDR_SVCCTL pytalloc-util pyrpc_util',
254 realname
='samba/dcerpc/svcctl.so'
258 bld
.SAMBA_PYTHON('python_lsa',
259 source
='../../librpc/gen_ndr/py_lsa.c',
260 deps
='RPC_NDR_LSA pytalloc-util pyrpc_util',
261 realname
='samba/dcerpc/lsa.so'
265 bld
.SAMBA_PYTHON('python_wkssvc',
266 source
='../../librpc/gen_ndr/py_wkssvc.c',
267 deps
='RPC_NDR_WKSSVC pytalloc-util pyrpc_util',
268 realname
='samba/dcerpc/wkssvc.so'
272 bld
.SAMBA_PYTHON('python_dfs',
273 source
='../../librpc/gen_ndr/py_dfs.c',
274 deps
='RPC_NDR_DFS pytalloc-util pyrpc_util',
275 realname
='samba/dcerpc/dfs.so'
279 bld
.SAMBA_PYTHON('python_unixinfo',
280 source
='../../librpc/gen_ndr/py_unixinfo.c',
281 deps
='RPC_NDR_UNIXINFO pytalloc-util pyrpc_util',
282 realname
='samba/dcerpc/unixinfo.so'
286 bld
.SAMBA_PYTHON('python_irpc',
287 source
='gen_ndr/py_irpc.c',
288 deps
='RPC_NDR_IRPC pytalloc-util pyrpc_util',
289 realname
='samba/dcerpc/irpc.so'
292 bld
.SAMBA_PYTHON('python_server_id',
293 source
='../../librpc/gen_ndr/py_server_id.c',
294 deps
='RPC_NDR_SERVER_ID pytalloc-util pyrpc_util',
295 realname
='samba/dcerpc/server_id.so'
298 bld
.SAMBA_PYTHON('python_winbind',
299 source
='gen_ndr/py_winbind.c',
300 deps
='RPC_NDR_WINBIND pytalloc-util pyrpc_util python_netlogon',
301 realname
='samba/dcerpc/winbind.so'
304 bld
.SAMBA_PYTHON('python_idmap',
305 source
='../../librpc/gen_ndr/py_idmap.c',
306 deps
='NDR_IDMAP pytalloc-util pyrpc_util',
307 realname
='samba/dcerpc/idmap.so'
311 bld
.SAMBA_PYTHON('python_drsuapi',
312 source
='../../librpc/gen_ndr/py_drsuapi.c',
313 deps
='RPC_NDR_DRSUAPI pytalloc-util pyrpc_util',
314 realname
='samba/dcerpc/drsuapi.so'
317 bld
.SAMBA_PYTHON('python_dcerpc_security',
318 source
='../../librpc/gen_ndr/py_security.c',
319 deps
='pytalloc-util pyrpc_util NDR_SECURITY',
320 realname
='samba/dcerpc/security.so'
323 bld
.SAMBA_PYTHON('python_dcerpc_drsblobs',
324 source
='../../librpc/gen_ndr/py_drsblobs.c',
325 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
326 realname
='samba/dcerpc/drsblobs.so'
329 bld
.SAMBA_PYTHON('python_dcerpc_dnsp',
330 source
='../../librpc/gen_ndr/py_dnsp.c',
331 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DNSP',
332 realname
='samba/dcerpc/dnsp.so'
336 bld
.SAMBA_PYTHON('python_dcerpc_xattr',
337 source
='../../librpc/gen_ndr/py_xattr.c',
338 deps
='pytalloc-util pyrpc_util RPC_NDR_XATTR',
339 realname
='samba/dcerpc/xattr.so'
342 bld
.SAMBA_PYTHON('python_dcerpc_idmap',
343 source
='../../librpc/gen_ndr/py_idmap.c',
344 deps
='pytalloc-util pyrpc_util RPC_NDR_XATTR',
345 realname
='samba/dcerpc/idmap.so'
348 bld
.SAMBA_PYTHON('python_netlogon',
349 source
='../../librpc/gen_ndr/py_netlogon.c',
350 deps
='RPC_NDR_NETLOGON pytalloc-util pyrpc_util',
351 realname
='samba/dcerpc/netlogon.so'
354 bld
.SAMBA_PYTHON('python_dnsserver',
355 source
='../../librpc/gen_ndr/py_dnsserver.c',
356 deps
='RPC_NDR_DNSSERVER pytalloc-util pyrpc_util',
357 realname
='samba/dcerpc/dnsserver.so'
360 bld
.SAMBA_PYTHON('python_dcerpc_smb_acl',
361 source
='../../librpc/gen_ndr/py_smb_acl.c',
362 deps
='pytalloc-util pyrpc_util',
363 realname
='samba/dcerpc/smb_acl.so'
366 bld
.SAMBA_SCRIPT('python_dcerpc_init',
367 pattern
='rpc/dcerpc.py',
368 installdir
='python/samba/dcerpc',
369 installname
='__init__.py')
371 bld
.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname
='__init__.py')