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',
28 bld
.SAMBA_SUBSYSTEM('NDR_WINSIF',
29 source
='gen_ndr/ndr_winsif.c',
35 bld
.SAMBA_SUBSYSTEM('NDR_OPENDB',
36 source
='gen_ndr/ndr_opendb.c',
41 bld
.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
42 source
='gen_ndr/ndr_ntp_signd.c',
47 bld
.SAMBA_SUBSYSTEM('NDR_WINSREPL',
48 source
='gen_ndr/ndr_winsrepl.c',
50 public_deps
='ndr ndr_nbt'
54 # create a grouping library to consolidate our samba4 specific NDR code
55 bld
.SAMBA_LIBRARY('ndr-samba4',
57 deps
='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB ndr-table',
62 # a grouping library for RPC_NDR subsystems that may be used by more than one target
63 bld
.SAMBA_LIBRARY('dcerpc-samba4',
65 deps
='RPC_NDR_WINBIND',
71 bld
.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
73 bld
.SAMBA_SUBSYSTEM('ndr-table',
74 source
='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
75 public_deps
='''ndr-standard NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
76 NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
77 NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
78 NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
79 NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC ndr-krb5pac
80 NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS ndr_nbt NDR_WINSREPL
81 NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB
82 NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI
83 NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI
84 NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP
85 NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG''',
86 depends_on
='GEN_NDR_TABLES'
90 bld
.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
91 source
='gen_ndr/ndr_irpc_c.c',
92 public_deps
='dcerpc NDR_IRPC'
95 bld
.SAMBA_LIBRARY('dcerpc-samr',
97 pc_files
='dcerpc_samr.pc',
99 public_deps
='dcerpc ndr-standard RPC_NDR_SAMR',
100 public_headers
='../../librpc/gen_ndr/ndr_samr_c.h',
101 header_path
='gen_ndr'
105 bld
.SAMBA_LIBRARY('dcerpc-atsvc',
107 pc_files
='dcerpc_atsvc.pc',
109 public_deps
='dcerpc ndr-standard RPC_NDR_ATSVC',
110 public_headers
='../../librpc/gen_ndr/ndr_atsvc_c.h',
111 header_path
='gen_ndr'
115 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
116 source
='gen_ndr/ndr_winsif_c.c',
117 public_deps
='dcerpc NDR_WINSIF'
121 bld
.SAMBA_LIBRARY('dcerpc',
122 source
='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
123 rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_sock.c
124 rpc/dcerpc_connect.c rpc/dcerpc_secondary.c''',
125 pc_files
='dcerpc.pc',
126 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',
128 autoproto
='rpc/dcerpc_proto.h',
129 public_deps
='samba-credentials tevent talloc',
130 public_headers
='''rpc/dcerpc.h ../../librpc/gen_ndr/mgmt.h
131 ../../librpc/gen_ndr/ndr_mgmt.h ../../librpc/gen_ndr/ndr_mgmt_c.h
132 ../../librpc/gen_ndr/epmapper.h ../../librpc/gen_ndr/ndr_epmapper.h
133 ../../librpc/gen_ndr/ndr_epmapper_c.h''',
134 # It's very important to keep this form of construction
135 # it force the sambawaf extension to put everything that match the first element
136 # (*gen_ndr*) into the dir named by the second element (gen_ndr).
137 # If we just put header_path = 'gen_ndr' then all the public_headers will go
138 # in 'gen_ndr' and for dcerpc.h (at least) it will cause a problem as
139 # we have already a dcerpc.h installed by librpc/wscript_build
140 # and one will overright the other which is not what we expect.
141 header_path
=[ ('*gen_ndr*', 'gen_ndr') ],
145 bld
.SAMBA_SUBSYSTEM('pyrpc_util',
146 source
='rpc/pyrpc_util.c',
147 public_deps
='pytalloc-util pyparam_util dcerpc MESSAGING',
152 bld
.SAMBA_PYTHON('python_dcerpc',
153 source
='rpc/pyrpc.c',
154 public_deps
='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG pyrpc_util gensec',
155 realname
='samba/dcerpc/base.so'
158 bld
.SAMBA_PYTHON('python_srvsvc',
159 source
='../../librpc/gen_ndr/py_srvsvc.c',
160 deps
='RPC_NDR_SRVSVC pytalloc-util pyrpc_util',
161 realname
='samba/dcerpc/srvsvc.so'
164 bld
.SAMBA_PYTHON('python_echo',
165 source
='../../librpc/gen_ndr/py_echo.c',
166 deps
='RPC_NDR_ECHO pytalloc-util pyrpc_util',
167 realname
='samba/dcerpc/echo.so'
170 bld
.SAMBA_PYTHON('python_dns',
171 source
='../../librpc/gen_ndr/py_dns.c',
172 deps
='RPC_NDR_DNS pytalloc-util pyrpc_util',
173 realname
='samba/dcerpc/dns.so'
176 bld
.SAMBA_PYTHON('python_auth',
177 source
='../../librpc/gen_ndr/py_auth.c',
178 deps
='NDR_AUTH pytalloc-util pyrpc_util',
179 realname
='samba/dcerpc/auth.so'
182 bld
.SAMBA_PYTHON('python_krb5pac',
183 source
='../../librpc/gen_ndr/py_krb5pac.c',
184 deps
='ndr-krb5pac pytalloc-util pyrpc_util',
185 realname
='samba/dcerpc/krb5pac.so'
188 bld
.SAMBA_PYTHON('python_winreg',
189 source
='../../librpc/gen_ndr/py_winreg.c',
190 deps
='RPC_NDR_WINREG pytalloc-util pyrpc_util',
191 realname
='samba/dcerpc/winreg.so'
195 bld
.SAMBA_PYTHON('python_dcerpc_misc',
196 source
='../../librpc/gen_ndr/py_misc.c',
197 deps
='pytalloc-util pyrpc_util ndr-krb5pac',
198 realname
='samba/dcerpc/misc.so'
202 bld
.SAMBA_PYTHON('python_initshutdown',
203 source
='../../librpc/gen_ndr/py_initshutdown.c',
204 deps
='RPC_NDR_INITSHUTDOWN pytalloc-util pyrpc_util',
205 realname
='samba/dcerpc/initshutdown.so'
209 bld
.SAMBA_PYTHON('python_epmapper',
210 source
='../../librpc/gen_ndr/py_epmapper.c',
211 deps
='dcerpc pytalloc-util pyrpc_util',
212 realname
='samba/dcerpc/epmapper.so'
216 bld
.SAMBA_PYTHON('python_mgmt',
217 source
='../../librpc/gen_ndr/py_mgmt.c',
218 deps
='pytalloc-util dcerpc pyrpc_util',
219 realname
='samba/dcerpc/mgmt.so'
223 bld
.SAMBA_PYTHON('python_atsvc',
224 source
='../../librpc/gen_ndr/py_atsvc.c',
225 deps
='dcerpc-atsvc pytalloc-util pyrpc_util',
226 realname
='samba/dcerpc/atsvc.so'
230 bld
.SAMBA_PYTHON('python_dcerpc_nbt',
231 source
='../../librpc/gen_ndr/py_nbt.c',
232 deps
='ndr_nbt RPC_NDR_NBT pytalloc-util pyrpc_util',
233 realname
='samba/dcerpc/nbt.so'
237 bld
.SAMBA_PYTHON('python_samr',
238 source
='../../librpc/gen_ndr/py_samr.c',
239 deps
='dcerpc-samr pytalloc-util pyrpc_util',
240 realname
='samba/dcerpc/samr.so'
244 bld
.SAMBA_PYTHON('python_svcctl',
245 source
='../../librpc/gen_ndr/py_svcctl.c',
246 deps
='RPC_NDR_SVCCTL pytalloc-util pyrpc_util',
247 realname
='samba/dcerpc/svcctl.so'
251 bld
.SAMBA_PYTHON('python_lsa',
252 source
='../../librpc/gen_ndr/py_lsa.c',
253 deps
='RPC_NDR_LSA pytalloc-util pyrpc_util',
254 realname
='samba/dcerpc/lsa.so'
258 bld
.SAMBA_PYTHON('python_wkssvc',
259 source
='../../librpc/gen_ndr/py_wkssvc.c',
260 deps
='RPC_NDR_WKSSVC pytalloc-util pyrpc_util',
261 realname
='samba/dcerpc/wkssvc.so'
265 bld
.SAMBA_PYTHON('python_dfs',
266 source
='../../librpc/gen_ndr/py_dfs.c',
267 deps
='RPC_NDR_DFS pytalloc-util pyrpc_util',
268 realname
='samba/dcerpc/dfs.so'
271 bld
.SAMBA_PYTHON('python_dcerpc_dcerpc',
272 source
='../../librpc/gen_ndr/py_dcerpc.c',
273 deps
='NDR_DCERPC pytalloc-util pyrpc_util',
274 realname
='samba/dcerpc/dcerpc.so'
277 bld
.SAMBA_PYTHON('python_unixinfo',
278 source
='../../librpc/gen_ndr/py_unixinfo.c',
279 deps
='RPC_NDR_UNIXINFO pytalloc-util pyrpc_util',
280 realname
='samba/dcerpc/unixinfo.so'
284 bld
.SAMBA_PYTHON('python_irpc',
285 source
='gen_ndr/py_irpc.c',
286 deps
='RPC_NDR_IRPC pytalloc-util pyrpc_util',
287 realname
='samba/dcerpc/irpc.so'
290 bld
.SAMBA_PYTHON('python_server_id',
291 source
='../../librpc/gen_ndr/py_server_id.c',
292 deps
='RPC_NDR_SERVER_ID pytalloc-util pyrpc_util',
293 realname
='samba/dcerpc/server_id.so'
296 bld
.SAMBA_PYTHON('python_winbind',
297 source
='../../librpc/gen_ndr/py_winbind.c',
298 deps
='RPC_NDR_WINBIND pytalloc-util pyrpc_util python_netlogon',
299 realname
='samba/dcerpc/winbind.so'
302 bld
.SAMBA_PYTHON('python_idmap',
303 source
='../../librpc/gen_ndr/py_idmap.c',
304 deps
='NDR_IDMAP pytalloc-util pyrpc_util',
305 realname
='samba/dcerpc/idmap.so'
309 bld
.SAMBA_PYTHON('python_drsuapi',
310 source
='../../librpc/gen_ndr/py_drsuapi.c',
311 deps
='RPC_NDR_DRSUAPI pytalloc-util pyrpc_util',
312 realname
='samba/dcerpc/drsuapi.so'
315 bld
.SAMBA_PYTHON('python_dcerpc_security',
316 source
='../../librpc/gen_ndr/py_security.c',
317 deps
='pytalloc-util pyrpc_util NDR_SECURITY',
318 realname
='samba/dcerpc/security.so'
321 bld
.SAMBA_PYTHON('python_dcerpc_drsblobs',
322 source
='../../librpc/gen_ndr/py_drsblobs.c',
323 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
324 realname
='samba/dcerpc/drsblobs.so'
327 bld
.SAMBA_PYTHON('python_dcerpc_dnsp',
328 source
='../../librpc/gen_ndr/py_dnsp.c',
329 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DNSP',
330 realname
='samba/dcerpc/dnsp.so'
334 bld
.SAMBA_PYTHON('python_dcerpc_xattr',
335 source
='../../librpc/gen_ndr/py_xattr.c',
336 deps
='pytalloc-util pyrpc_util RPC_NDR_XATTR',
337 realname
='samba/dcerpc/xattr.so'
340 bld
.SAMBA_PYTHON('python_dcerpc_idmap',
341 source
='../../librpc/gen_ndr/py_idmap.c',
342 deps
='pytalloc-util pyrpc_util RPC_NDR_XATTR',
343 realname
='samba/dcerpc/idmap.so'
346 bld
.SAMBA_PYTHON('python_netlogon',
347 source
='../../librpc/gen_ndr/py_netlogon.c',
348 deps
='RPC_NDR_NETLOGON pytalloc-util pyrpc_util',
349 realname
='samba/dcerpc/netlogon.so'
352 bld
.SAMBA_PYTHON('python_dnsserver',
353 source
='../../librpc/gen_ndr/py_dnsserver.c',
354 deps
='RPC_NDR_DNSSERVER pytalloc-util pyrpc_util',
355 realname
='samba/dcerpc/dnsserver.so'
358 bld
.SAMBA_PYTHON('python_dcerpc_smb_acl',
359 source
='../../librpc/gen_ndr/py_smb_acl.c',
360 deps
='pytalloc-util pyrpc_util',
361 realname
='samba/dcerpc/smb_acl.so'
364 bld
.SAMBA_SCRIPT('python_dcerpc_init',
365 pattern
='rpc/dcerpc.py',
366 installdir
='python/samba/dcerpc',
367 installname
='__init__.py')
369 bld
.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname
='__init__.py')