3 bld
.RECURSE('../../librpc/idl')
4 bld
.RECURSE('../../librpc/tools')
7 bld
.SAMBA_SUBSYSTEM('NDR_SERVER_ID4',
8 source
='gen_ndr/ndr_server_id4.c',
10 public_headers
='gen_ndr/server_id4.h',
15 bld
.SAMBA_SUBSYSTEM('NDR_WINSTATION',
16 source
='gen_ndr/ndr_winstation.c',
21 bld
.SAMBA_SUBSYSTEM('NDR_IRPC',
22 source
='gen_ndr/ndr_irpc.c',
23 public_deps
='ndr NDR_SECURITY NDR_NBT'
27 bld
.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
28 source
='gen_ndr/ndr_sasl_helpers.c',
34 bld
.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
35 source
='gen_ndr/ndr_nfs4acl.c',
36 public_deps
='ndr NDR_SECURITY'
41 bld
.SAMBA_SUBSYSTEM('NDR_WINSIF',
42 source
='gen_ndr/ndr_winsif.c',
47 bld
.SAMBA_SUBSYSTEM('NDR_OPENDB',
48 source
='gen_ndr/ndr_opendb.c',
53 bld
.SAMBA_SUBSYSTEM('NDR_NOTIFY',
54 source
='gen_ndr/ndr_s4_notify.c',
55 public_deps
='ndr NDR_SERVER_ID4'
59 bld
.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
60 source
='gen_ndr/ndr_ntp_signd.c',
65 bld
.SAMBA_SUBSYSTEM('NDR_WINSREPL',
66 source
='gen_ndr/ndr_winsrepl.c',
67 public_deps
='ndr NDR_NBT'
71 bld
.SAMBA_SUBSYSTEM('NDR_WINBIND',
72 source
='gen_ndr/ndr_winbind.c',
73 public_deps
='NDR_IDMAP ndr ndr-standard'
76 # create a grouping library to consolidate our samba4 specific NDR code
77 bld
.SAMBA_LIBRARY('ndr-samba4',
79 deps
='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB NDR_NOTIFY ndr-table',
84 # a grouping library for RPC_NDR subsystems that may be used by more than one target
85 bld
.SAMBA_LIBRARY('dcerpc-samba4',
87 deps
='RPC_NDR_WINBIND',
93 bld
.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
95 bld
.SAMBA_SUBSYSTEM('ndr-table',
96 source
='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
97 public_deps
='''ndr-standard NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
98 NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
99 NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
100 NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
101 NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC ndr-krb5pac
102 NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS NDR_NBT NDR_WINSREPL
103 NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB
104 NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI
105 NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI
106 NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP
107 NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_WBINT''',
108 depends_on
='GEN_NDR_TABLES'
112 bld
.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
113 source
='gen_ndr/ndr_irpc_c.c',
114 public_deps
='dcerpc NDR_IRPC'
117 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
118 source
='gen_ndr/ndr_winbind_c.c',
119 public_deps
='dcerpc NDR_WINBIND'
123 bld
.SAMBA_LIBRARY('dcerpc-samr',
125 pc_files
='dcerpc_samr.pc',
127 public_deps
='dcerpc ndr-standard RPC_NDR_SAMR',
128 public_headers
='../../librpc/gen_ndr/ndr_samr_c.h',
129 header_path
='gen_ndr'
133 bld
.SAMBA_LIBRARY('dcerpc-atsvc',
135 pc_files
='dcerpc_atsvc.pc',
137 public_deps
='dcerpc ndr-standard RPC_NDR_ATSVC',
138 public_headers
='../../librpc/gen_ndr/ndr_atsvc_c.h',
139 header_path
='gen_ndr'
143 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
144 source
='gen_ndr/ndr_winsif_c.c',
145 public_deps
='dcerpc NDR_WINSIF'
149 bld
.SAMBA_LIBRARY('dcerpc',
150 source
='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
151 rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
152 rpc/dcerpc_connect.c rpc/dcerpc_secondary.c''',
153 pc_files
='dcerpc.pc',
154 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 LIBCLI_RAW LP_RESOLVE UTIL_TEVENT rpccommon',
155 autoproto
='rpc/dcerpc_proto.h',
156 public_deps
='credentials tevent talloc',
157 public_headers
='''rpc/dcerpc.h ../../librpc/gen_ndr/mgmt.h
158 ../../librpc/gen_ndr/ndr_mgmt.h ../../librpc/gen_ndr/ndr_mgmt_c.h
159 ../../librpc/gen_ndr/epmapper.h ../../librpc/gen_ndr/ndr_epmapper.h
160 ../../librpc/gen_ndr/ndr_epmapper_c.h ../../librpc/rpc/rpc_common.h''',
161 # It's very important to keep this form of construction
162 # it force the sambawaf extension to put everything that match the first element
163 # (*gen_ndr*) into the dir named by the second element (gen_ndr).
164 # If we just put header_path = 'gen_ndr' then all the public_headers will go
165 # in 'gen_ndr' and for dcerpc.h (at least) it will cause a problem as
166 # we have already a dcerpc.h installed by librpc/wscript_build
167 # and one will overright the other which is not what we expect.
168 header_path
=[ ('*gen_ndr*', 'gen_ndr') ],
172 bld
.SAMBA_SUBSYSTEM('pyrpc_util',
173 source
='rpc/pyrpc_util.c',
174 public_deps
='pytalloc-util pyparam_util dcerpc',
179 bld
.SAMBA_PYTHON('python_dcerpc',
180 source
='rpc/pyrpc.c',
181 public_deps
='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG pyrpc_util',
182 realname
='samba/dcerpc/base.so'
185 bld
.SAMBA_PYTHON('python_srvsvc',
186 source
='../../librpc/gen_ndr/py_srvsvc.c',
187 deps
='RPC_NDR_SRVSVC pytalloc-util pyrpc_util',
188 realname
='samba/dcerpc/srvsvc.so'
191 bld
.SAMBA_PYTHON('python_echo',
192 source
='../../librpc/gen_ndr/py_echo.c',
193 deps
='RPC_NDR_ECHO pytalloc-util pyrpc_util',
194 realname
='samba/dcerpc/echo.so'
197 bld
.SAMBA_PYTHON('python_auth',
198 source
='../../librpc/gen_ndr/py_auth.c',
199 deps
='NDR_AUTH pytalloc-util pyrpc_util',
200 realname
='samba/dcerpc/auth.so'
203 bld
.SAMBA_PYTHON('python_krb5pac',
204 source
='../../librpc/gen_ndr/py_krb5pac.c',
205 deps
='ndr-krb5pac pytalloc-util pyrpc_util',
206 realname
='samba/dcerpc/krb5pac.so'
209 bld
.SAMBA_PYTHON('python_winreg',
210 source
='../../librpc/gen_ndr/py_winreg.c',
211 deps
='RPC_NDR_WINREG pytalloc-util pyrpc_util',
212 realname
='samba/dcerpc/winreg.so'
216 bld
.SAMBA_PYTHON('python_dcerpc_misc',
217 source
='../../librpc/gen_ndr/py_misc.c',
218 deps
='pytalloc-util pyrpc_util ndr-krb5pac',
219 realname
='samba/dcerpc/misc.so'
223 bld
.SAMBA_PYTHON('python_initshutdown',
224 source
='../../librpc/gen_ndr/py_initshutdown.c',
225 deps
='RPC_NDR_INITSHUTDOWN pytalloc-util pyrpc_util',
226 realname
='samba/dcerpc/initshutdown.so'
230 bld
.SAMBA_PYTHON('python_epmapper',
231 source
='../../librpc/gen_ndr/py_epmapper.c',
232 deps
='dcerpc pytalloc-util pyrpc_util',
233 realname
='samba/dcerpc/epmapper.so'
237 bld
.SAMBA_PYTHON('python_mgmt',
238 source
='../../librpc/gen_ndr/py_mgmt.c',
239 deps
='pytalloc-util dcerpc pyrpc_util',
240 realname
='samba/dcerpc/mgmt.so'
244 bld
.SAMBA_PYTHON('python_atsvc',
245 source
='../../librpc/gen_ndr/py_atsvc.c',
246 deps
='dcerpc-atsvc pytalloc-util pyrpc_util',
247 realname
='samba/dcerpc/atsvc.so'
251 bld
.SAMBA_PYTHON('python_dcerpc_nbt',
252 source
='../../librpc/gen_ndr/py_nbt.c',
253 deps
='NDR_NBT RPC_NDR_NBT pytalloc-util pyrpc_util',
254 realname
='samba/dcerpc/nbt.so'
258 bld
.SAMBA_PYTHON('python_samr',
259 source
='../../librpc/gen_ndr/py_samr.c',
260 deps
='dcerpc-samr pytalloc-util pyrpc_util',
261 realname
='samba/dcerpc/samr.so'
265 bld
.SAMBA_PYTHON('python_svcctl',
266 source
='../../librpc/gen_ndr/py_svcctl.c',
267 deps
='RPC_NDR_SVCCTL pytalloc-util pyrpc_util',
268 realname
='samba/dcerpc/svcctl.so'
272 bld
.SAMBA_PYTHON('python_lsa',
273 source
='../../librpc/gen_ndr/py_lsa.c',
274 deps
='RPC_NDR_LSA pytalloc-util pyrpc_util',
275 realname
='samba/dcerpc/lsa.so'
279 bld
.SAMBA_PYTHON('python_wkssvc',
280 source
='../../librpc/gen_ndr/py_wkssvc.c',
281 deps
='RPC_NDR_WKSSVC pytalloc-util pyrpc_util',
282 realname
='samba/dcerpc/wkssvc.so'
286 bld
.SAMBA_PYTHON('python_dfs',
287 source
='../../librpc/gen_ndr/py_dfs.c',
288 deps
='RPC_NDR_DFS pytalloc-util pyrpc_util',
289 realname
='samba/dcerpc/dfs.so'
293 bld
.SAMBA_PYTHON('python_unixinfo',
294 source
='../../librpc/gen_ndr/py_unixinfo.c',
295 deps
='RPC_NDR_UNIXINFO pytalloc-util pyrpc_util',
296 realname
='samba/dcerpc/unixinfo.so'
300 bld
.SAMBA_PYTHON('python_irpc',
301 source
='gen_ndr/py_irpc.c',
302 deps
='RPC_NDR_IRPC pytalloc-util pyrpc_util',
303 realname
='samba/dcerpc/irpc.so'
306 bld
.SAMBA_PYTHON('python_winbind',
307 source
='gen_ndr/py_winbind.c',
308 deps
='RPC_NDR_WINBIND pytalloc-util pyrpc_util python_netlogon',
309 realname
='samba/dcerpc/winbind.so'
312 bld
.SAMBA_PYTHON('python_idmap',
313 source
='../../librpc/gen_ndr/py_idmap.c',
314 deps
='NDR_IDMAP pytalloc-util pyrpc_util',
315 realname
='samba/dcerpc/idmap.so'
319 bld
.SAMBA_PYTHON('python_drsuapi',
320 source
='../../librpc/gen_ndr/py_drsuapi.c',
321 deps
='RPC_NDR_DRSUAPI pytalloc-util pyrpc_util',
322 realname
='samba/dcerpc/drsuapi.so'
325 bld
.SAMBA_PYTHON('python_dcerpc_security',
326 source
='../../librpc/gen_ndr/py_security.c',
327 deps
='pytalloc-util pyrpc_util NDR_SECURITY',
328 realname
='samba/dcerpc/security.so'
331 bld
.SAMBA_PYTHON('python_dcerpc_drsblobs',
332 source
='../../librpc/gen_ndr/py_drsblobs.c',
333 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
334 realname
='samba/dcerpc/drsblobs.so'
337 bld
.SAMBA_PYTHON('python_dcerpc_dnsp',
338 source
='../../librpc/gen_ndr/py_dnsp.c',
339 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DNSP',
340 realname
='samba/dcerpc/dnsp.so'
344 bld
.SAMBA_PYTHON('python_dcerpc_xattr',
345 source
='../../librpc/gen_ndr/py_xattr.c',
346 deps
='pytalloc-util pyrpc_util RPC_NDR_XATTR',
347 realname
='samba/dcerpc/xattr.so'
350 bld
.SAMBA_PYTHON('python_netlogon',
351 source
='../../librpc/gen_ndr/py_netlogon.c',
352 deps
='RPC_NDR_NETLOGON pytalloc-util pyrpc_util',
353 realname
='samba/dcerpc/netlogon.so'
356 bld
.SAMBA_SCRIPT('python_dcerpc_init',
357 pattern
='rpc/dcerpc.py',
358 installdir
='python/samba/dcerpc',
359 installname
='__init__.py')
361 bld
.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname
='__init__.py')