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 # create a grouping library to consolidate our samba4 specific NDR code
52 bld
.SAMBA_LIBRARY('ndr-samba4',
54 deps
='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB ndr-table',
59 # a grouping library for RPC_NDR subsystems that may be used by more than one target
60 bld
.SAMBA_LIBRARY('dcerpc-samba4',
62 deps
='RPC_NDR_WINBIND',
68 bld
.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
70 bld
.SAMBA_SUBSYSTEM('ndr-table',
71 source
='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
72 public_deps
='''ndr-standard NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
73 NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
74 NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
75 NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
76 NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC ndr-krb5pac
77 NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS ndr_nbt NDR_WINSREPL
78 NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB
79 NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI
80 NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI
81 NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP
82 NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_BKUPBLOBS NDR_FSCC
83 NDR_FRSBLOBS NDR_CLUSAPI''',
84 depends_on
='GEN_NDR_TABLES'
88 bld
.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
89 source
='gen_ndr/ndr_irpc_c.c',
90 public_deps
='dcerpc NDR_IRPC'
93 bld
.SAMBA_LIBRARY('dcerpc-samr',
95 pc_files
='dcerpc_samr.pc',
97 public_deps
='dcerpc ndr-standard RPC_NDR_SAMR',
98 public_headers
='../../librpc/gen_ndr/ndr_samr_c.h',
103 bld
.SAMBA_LIBRARY('dcerpc-atsvc',
105 pc_files
='dcerpc_atsvc.pc',
107 public_deps
='dcerpc ndr-standard RPC_NDR_ATSVC',
108 public_headers
='../../librpc/gen_ndr/ndr_atsvc_c.h',
109 header_path
='gen_ndr'
113 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
114 source
='gen_ndr/ndr_winsif_c.c',
115 public_deps
='dcerpc NDR_WINSIF'
119 bld
.SAMBA_LIBRARY('dcerpc',
120 source
='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
121 rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_sock.c
122 rpc/dcerpc_roh_channel_in.c rpc/dcerpc_roh_channel_out.c rpc/dcerpc_roh.c
123 rpc/dcerpc_connect.c rpc/dcerpc_secondary.c''',
124 pc_files
='dcerpc.pc',
125 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 http',
126 autoproto
='rpc/dcerpc_proto.h',
127 public_deps
='samba-credentials tevent talloc',
128 public_headers
='''rpc/dcerpc.h ../../librpc/gen_ndr/mgmt.h
129 ../../librpc/gen_ndr/ndr_mgmt.h ../../librpc/gen_ndr/ndr_mgmt_c.h
130 ../../librpc/gen_ndr/epmapper.h ../../librpc/gen_ndr/ndr_epmapper.h
131 ../../librpc/gen_ndr/ndr_epmapper_c.h''',
132 # It's very important to keep this form of construction
133 # it force the sambawaf extension to put everything that match the first element
134 # (*gen_ndr*) into the dir named by the second element (gen_ndr).
135 # If we just put header_path = 'gen_ndr' then all the public_headers will go
136 # in 'gen_ndr' and for dcerpc.h (at least) it will cause a problem as
137 # we have already a dcerpc.h installed by librpc/wscript_build
138 # and one will overright the other which is not what we expect.
139 header_path
=[ ('*gen_ndr*', 'gen_ndr') ],
143 bld
.SAMBA_SUBSYSTEM('pyrpc_util',
144 source
='rpc/pyrpc_util.c',
145 public_deps
='pytalloc-util pyparam_util dcerpc MESSAGING',
150 bld
.SAMBA_PYTHON('python_dcerpc',
151 source
='rpc/pyrpc.c',
152 public_deps
='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG pyrpc_util gensec',
153 realname
='samba/dcerpc/base.so'
156 bld
.SAMBA_PYTHON('python_srvsvc',
157 source
='../../librpc/gen_ndr/py_srvsvc.c',
158 deps
='RPC_NDR_SRVSVC pytalloc-util pyrpc_util',
159 realname
='samba/dcerpc/srvsvc.so'
162 bld
.SAMBA_PYTHON('python_echo',
163 source
='../../librpc/gen_ndr/py_echo.c',
164 deps
='RPC_NDR_ECHO pytalloc-util pyrpc_util',
165 realname
='samba/dcerpc/echo.so'
168 bld
.SAMBA_PYTHON('python_dns',
169 source
='../../librpc/gen_ndr/py_dns.c',
170 deps
='RPC_NDR_DNS pytalloc-util pyrpc_util',
171 realname
='samba/dcerpc/dns.so'
174 bld
.SAMBA_PYTHON('python_auth',
175 source
='../../librpc/gen_ndr/py_auth.c',
176 deps
='NDR_AUTH pytalloc-util pyrpc_util',
177 realname
='samba/dcerpc/auth.so'
180 bld
.SAMBA_PYTHON('python_krb5pac',
181 source
='../../librpc/gen_ndr/py_krb5pac.c',
182 deps
='ndr-krb5pac pytalloc-util pyrpc_util',
183 realname
='samba/dcerpc/krb5pac.so'
186 bld
.SAMBA_PYTHON('python_winreg',
187 source
='../../librpc/gen_ndr/py_winreg.c',
188 deps
='RPC_NDR_WINREG pytalloc-util pyrpc_util',
189 realname
='samba/dcerpc/winreg.so'
193 bld
.SAMBA_PYTHON('python_dcerpc_misc',
194 source
='../../librpc/gen_ndr/py_misc.c',
195 deps
='pytalloc-util pyrpc_util ndr-krb5pac',
196 realname
='samba/dcerpc/misc.so'
200 bld
.SAMBA_PYTHON('python_initshutdown',
201 source
='../../librpc/gen_ndr/py_initshutdown.c',
202 deps
='RPC_NDR_INITSHUTDOWN pytalloc-util pyrpc_util',
203 realname
='samba/dcerpc/initshutdown.so'
207 bld
.SAMBA_PYTHON('python_epmapper',
208 source
='../../librpc/gen_ndr/py_epmapper.c',
209 deps
='dcerpc pytalloc-util pyrpc_util',
210 realname
='samba/dcerpc/epmapper.so'
214 bld
.SAMBA_PYTHON('python_mgmt',
215 source
='../../librpc/gen_ndr/py_mgmt.c',
216 deps
='pytalloc-util dcerpc pyrpc_util',
217 realname
='samba/dcerpc/mgmt.so'
221 bld
.SAMBA_PYTHON('python_atsvc',
222 source
='../../librpc/gen_ndr/py_atsvc.c',
223 deps
='dcerpc-atsvc pytalloc-util pyrpc_util',
224 realname
='samba/dcerpc/atsvc.so'
228 bld
.SAMBA_PYTHON('python_dcerpc_nbt',
229 source
='../../librpc/gen_ndr/py_nbt.c',
230 deps
='ndr_nbt RPC_NDR_NBT pytalloc-util pyrpc_util',
231 realname
='samba/dcerpc/nbt.so'
235 bld
.SAMBA_PYTHON('python_samr',
236 source
='../../librpc/gen_ndr/py_samr.c',
237 deps
='dcerpc-samr pytalloc-util pyrpc_util',
238 realname
='samba/dcerpc/samr.so'
242 bld
.SAMBA_PYTHON('python_svcctl',
243 source
='../../librpc/gen_ndr/py_svcctl.c',
244 deps
='RPC_NDR_SVCCTL pytalloc-util pyrpc_util',
245 realname
='samba/dcerpc/svcctl.so'
249 bld
.SAMBA_PYTHON('python_lsa',
250 source
='../../librpc/gen_ndr/py_lsa.c',
251 deps
='RPC_NDR_LSA pytalloc-util pyrpc_util',
252 realname
='samba/dcerpc/lsa.so'
256 bld
.SAMBA_PYTHON('python_wkssvc',
257 source
='../../librpc/gen_ndr/py_wkssvc.c',
258 deps
='RPC_NDR_WKSSVC pytalloc-util pyrpc_util',
259 realname
='samba/dcerpc/wkssvc.so'
263 bld
.SAMBA_PYTHON('python_dfs',
264 source
='../../librpc/gen_ndr/py_dfs.c',
265 deps
='RPC_NDR_DFS pytalloc-util pyrpc_util',
266 realname
='samba/dcerpc/dfs.so'
269 bld
.SAMBA_PYTHON('python_dcerpc_dcerpc',
270 source
='../../librpc/gen_ndr/py_dcerpc.c',
271 deps
='NDR_DCERPC pytalloc-util pyrpc_util',
272 realname
='samba/dcerpc/dcerpc.so'
275 bld
.SAMBA_PYTHON('python_unixinfo',
276 source
='../../librpc/gen_ndr/py_unixinfo.c',
277 deps
='RPC_NDR_UNIXINFO pytalloc-util pyrpc_util',
278 realname
='samba/dcerpc/unixinfo.so'
282 bld
.SAMBA_PYTHON('python_irpc',
283 source
='gen_ndr/py_irpc.c',
284 deps
='RPC_NDR_IRPC pytalloc-util pyrpc_util',
285 realname
='samba/dcerpc/irpc.so'
288 bld
.SAMBA_PYTHON('python_server_id',
289 source
='../../librpc/gen_ndr/py_server_id.c',
290 deps
='RPC_NDR_SERVER_ID pytalloc-util pyrpc_util',
291 realname
='samba/dcerpc/server_id.so'
294 bld
.SAMBA_PYTHON('python_winbind',
295 source
='../../librpc/gen_ndr/py_winbind.c',
296 deps
='RPC_NDR_WINBIND pytalloc-util pyrpc_util python_netlogon',
297 realname
='samba/dcerpc/winbind.so'
300 bld
.SAMBA_PYTHON('python_idmap',
301 source
='../../librpc/gen_ndr/py_idmap.c',
302 deps
='NDR_IDMAP pytalloc-util pyrpc_util',
303 realname
='samba/dcerpc/idmap.so'
307 bld
.SAMBA_PYTHON('python_drsuapi',
308 source
='../../librpc/gen_ndr/py_drsuapi.c',
309 deps
='RPC_NDR_DRSUAPI pytalloc-util pyrpc_util',
310 realname
='samba/dcerpc/drsuapi.so'
313 bld
.SAMBA_PYTHON('python_dcerpc_security',
314 source
='../../librpc/gen_ndr/py_security.c',
315 deps
='pytalloc-util pyrpc_util NDR_SECURITY',
316 realname
='samba/dcerpc/security.so'
319 bld
.SAMBA_PYTHON('python_dcerpc_drsblobs',
320 source
='../../librpc/gen_ndr/py_drsblobs.c',
321 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
322 realname
='samba/dcerpc/drsblobs.so'
325 bld
.SAMBA_PYTHON('python_dcerpc_dnsp',
326 source
='../../librpc/gen_ndr/py_dnsp.c',
327 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DNSP',
328 realname
='samba/dcerpc/dnsp.so'
332 bld
.SAMBA_PYTHON('python_dcerpc_xattr',
333 source
='../../librpc/gen_ndr/py_xattr.c',
334 deps
='pytalloc-util pyrpc_util RPC_NDR_XATTR',
335 realname
='samba/dcerpc/xattr.so'
338 bld
.SAMBA_PYTHON('python_dcerpc_idmap',
339 source
='../../librpc/gen_ndr/py_idmap.c',
340 deps
='pytalloc-util pyrpc_util RPC_NDR_XATTR',
341 realname
='samba/dcerpc/idmap.so'
344 bld
.SAMBA_PYTHON('python_netlogon',
345 source
='../../librpc/gen_ndr/py_netlogon.c',
346 deps
='RPC_NDR_NETLOGON pytalloc-util pyrpc_util',
347 realname
='samba/dcerpc/netlogon.so'
350 bld
.SAMBA_PYTHON('python_dnsserver',
351 source
='../../librpc/gen_ndr/py_dnsserver.c',
352 deps
='RPC_NDR_DNSSERVER pytalloc-util pyrpc_util',
353 realname
='samba/dcerpc/dnsserver.so'
356 bld
.SAMBA_PYTHON('python_dcerpc_smb_acl',
357 source
='../../librpc/gen_ndr/py_smb_acl.c',
358 deps
='pytalloc-util pyrpc_util',
359 realname
='samba/dcerpc/smb_acl.so'
362 bld
.SAMBA_SCRIPT('python_dcerpc_init',
363 pattern
='rpc/dcerpc.py',
364 installdir
='python/samba/dcerpc',
365 installname
='__init__.py')
367 bld
.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname
='__init__.py')