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''',
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',
124 source
='../../librpc/gen_ndr/ndr_samr_c.c',
125 pc_files
='dcerpc_samr.pc',
127 public_deps
='dcerpc ndr-standard',
128 public_headers
='../../librpc/gen_ndr/ndr_samr_c.h',
129 header_path
='gen_ndr'
133 bld
.SAMBA_LIBRARY('dcerpc-atsvc',
134 source
='../../librpc/gen_ndr/ndr_atsvc_c.c',
135 pc_files
='dcerpc_atsvc.pc',
137 public_deps
='dcerpc ndr-standard',
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 ../../librpc/rpc/binding.c
153 ../../librpc/rpc/dcerpc_error.c ../../librpc/rpc/dcerpc_util.c
154 ../../librpc/rpc/binding_handle.c''',
155 pc_files
='dcerpc.pc',
156 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',
157 autoproto
='rpc/dcerpc_proto.h',
158 public_deps
='credentials tevent talloc',
159 public_headers
='rpc/dcerpc.h ../../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',
160 header_path
='gen_ndr',
164 bld
.SAMBA_SUBSYSTEM('pyrpc_util',
165 source
='rpc/pyrpc_util.c',
166 public_deps
='pytalloc-util pyparam_util dcerpc',
171 bld
.SAMBA_PYTHON('python_dcerpc',
172 source
='rpc/pyrpc.c',
173 public_deps
='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG pyrpc_util',
174 realname
='samba/dcerpc/base.so'
177 bld
.SAMBA_PYTHON('python_srvsvc',
178 source
='../../librpc/gen_ndr/py_srvsvc.c',
179 deps
='RPC_NDR_SRVSVC pytalloc-util pyrpc_util',
180 realname
='samba/dcerpc/srvsvc.so'
183 bld
.SAMBA_PYTHON('python_echo',
184 source
='../../librpc/gen_ndr/py_echo.c',
185 deps
='RPC_NDR_ECHO pytalloc-util pyrpc_util',
186 realname
='samba/dcerpc/echo.so'
190 bld
.SAMBA_PYTHON('python_winreg',
191 source
='../../librpc/gen_ndr/py_winreg.c',
192 deps
='RPC_NDR_WINREG pytalloc-util pyrpc_util',
193 realname
='samba/dcerpc/winreg.so'
197 bld
.SAMBA_PYTHON('python_dcerpc_misc',
198 source
='../../librpc/gen_ndr/py_misc.c',
199 deps
='pytalloc-util pyrpc_util ndr-krb5pac',
200 realname
='samba/dcerpc/misc.so'
204 bld
.SAMBA_PYTHON('python_initshutdown',
205 source
='../../librpc/gen_ndr/py_initshutdown.c',
206 deps
='RPC_NDR_INITSHUTDOWN pytalloc-util pyrpc_util',
207 realname
='samba/dcerpc/initshutdown.so'
211 bld
.SAMBA_PYTHON('python_epmapper',
212 source
='../../librpc/gen_ndr/py_epmapper.c',
213 deps
='dcerpc pytalloc-util pyrpc_util',
214 realname
='samba/dcerpc/epmapper.so'
218 bld
.SAMBA_PYTHON('python_mgmt',
219 source
='../../librpc/gen_ndr/py_mgmt.c',
220 deps
='pytalloc-util dcerpc pyrpc_util',
221 realname
='samba/dcerpc/mgmt.so'
225 bld
.SAMBA_PYTHON('python_atsvc',
226 source
='../../librpc/gen_ndr/py_atsvc.c',
227 deps
='dcerpc-atsvc pytalloc-util pyrpc_util',
228 realname
='samba/dcerpc/atsvc.so'
232 bld
.SAMBA_PYTHON('python_dcerpc_nbt',
233 source
='../../librpc/gen_ndr/py_nbt.c',
234 deps
='NDR_NBT RPC_NDR_NBT pytalloc-util pyrpc_util',
235 realname
='samba/dcerpc/nbt.so'
239 bld
.SAMBA_PYTHON('python_samr',
240 source
='../../librpc/gen_ndr/py_samr.c',
241 deps
='dcerpc-samr pytalloc-util pyrpc_util',
242 realname
='samba/dcerpc/samr.so'
246 bld
.SAMBA_PYTHON('python_svcctl',
247 source
='../../librpc/gen_ndr/py_svcctl.c',
248 deps
='RPC_NDR_SVCCTL pytalloc-util pyrpc_util',
249 realname
='samba/dcerpc/svcctl.so'
253 bld
.SAMBA_PYTHON('python_lsa',
254 source
='../../librpc/gen_ndr/py_lsa.c',
255 deps
='RPC_NDR_LSA pytalloc-util pyrpc_util',
256 realname
='samba/dcerpc/lsa.so'
260 bld
.SAMBA_PYTHON('python_wkssvc',
261 source
='../../librpc/gen_ndr/py_wkssvc.c',
262 deps
='RPC_NDR_WKSSVC pytalloc-util pyrpc_util',
263 realname
='samba/dcerpc/wkssvc.so'
267 bld
.SAMBA_PYTHON('python_dfs',
268 source
='../../librpc/gen_ndr/py_dfs.c',
269 deps
='RPC_NDR_DFS pytalloc-util pyrpc_util',
270 realname
='samba/dcerpc/dfs.so'
274 bld
.SAMBA_PYTHON('python_unixinfo',
275 source
='../../librpc/gen_ndr/py_unixinfo.c',
276 deps
='RPC_NDR_UNIXINFO pytalloc-util pyrpc_util',
277 realname
='samba/dcerpc/unixinfo.so'
281 bld
.SAMBA_PYTHON('python_irpc',
282 source
='gen_ndr/py_irpc.c',
283 deps
='RPC_NDR_IRPC pytalloc-util pyrpc_util',
284 realname
='samba/dcerpc/irpc.so'
287 bld
.SAMBA_PYTHON('python_winbind',
288 source
='gen_ndr/py_winbind.c',
289 deps
='RPC_NDR_WINBIND pytalloc-util pyrpc_util python_netlogon',
290 realname
='samba/dcerpc/winbind.so'
293 bld
.SAMBA_PYTHON('python_idmap',
294 source
='../../librpc/gen_ndr/py_idmap.c',
295 deps
='NDR_IDMAP pytalloc-util pyrpc_util',
296 realname
='samba/dcerpc/idmap.so'
300 bld
.SAMBA_PYTHON('python_drsuapi',
301 source
='../../librpc/gen_ndr/py_drsuapi.c',
302 deps
='RPC_NDR_DRSUAPI pytalloc-util pyrpc_util',
303 realname
='samba/dcerpc/drsuapi.so'
306 bld
.SAMBA_PYTHON('python_dcerpc_security',
307 source
='../../librpc/gen_ndr/py_security.c',
308 deps
='pytalloc-util pyrpc_util NDR_SECURITY',
309 realname
='samba/dcerpc/security.so'
312 bld
.SAMBA_PYTHON('python_dcerpc_drsblobs',
313 source
='../../librpc/gen_ndr/py_drsblobs.c',
314 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
315 realname
='samba/dcerpc/drsblobs.so'
318 bld
.SAMBA_PYTHON('python_dcerpc_dnsp',
319 source
='../../librpc/gen_ndr/py_dnsp.c',
320 deps
='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DNSP',
321 realname
='samba/dcerpc/dnsp.so'
325 bld
.SAMBA_PYTHON('python_dcerpc_xattr',
326 source
='../../librpc/gen_ndr/py_xattr.c',
327 deps
='pytalloc-util pyrpc_util RPC_NDR_XATTR',
328 realname
='samba/dcerpc/xattr.so'
331 bld
.SAMBA_PYTHON('python_netlogon',
332 source
='../../librpc/gen_ndr/py_netlogon.c',
333 deps
='RPC_NDR_NETLOGON pytalloc-util pyrpc_util',
334 realname
='samba/dcerpc/netlogon.so'
337 bld
.SAMBA_SCRIPT('python_dcerpc_init',
338 pattern
='rpc/dcerpc.py',
339 installdir
='python/samba/dcerpc',
340 installname
='__init__.py')
342 bld
.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname
='__init__.py')