3 bld
.RECURSE('../../librpc/idl')
6 bld
.SAMBA_LIBRARY('LIBNDR',
7 source
='../../librpc/ndr/ndr_string.c ../../librpc/ndr/ndr_basic.c ../../librpc/ndr/uuid.c ../../librpc/ndr/ndr.c ../../librpc/ndr/ndr_misc.c ../../librpc/gen_ndr/ndr_misc.c',
8 pc_files
='../../librpc/ndr.pc',
9 public_deps
='libsamba-errors talloc libsamba-util CHARSET',
10 public_headers
='../../librpc/gen_ndr/misc.h ../../librpc/gen_ndr/ndr_misc.h ../../librpc/ndr/libndr.h:ndr.h',
11 header_path
= [ ( '*gen_ndr*', 'gen_ndr' ) ],
12 depends_on
='PIDL_MISC',
17 bld
.SAMBA_BINARY('ndrdump',
18 source
='../../librpc/tools/ndrdump.c',
19 manpages
='../../librpc/tools/ndrdump.1',
20 deps
='libsamba-hostconfig libsamba-util popt POPT_SAMBA ndr_table libsamba-errors'
25 bld
.SAMBA_SUBSYSTEM('NDR_SECURITY',
26 source
='../../librpc/gen_ndr/ndr_security.c ../../librpc/ndr/ndr_sec_helper.c gen_ndr/ndr_server_id.c',
28 public_headers
='../../librpc/gen_ndr/security.h gen_ndr/server_id.h',
33 bld
.SAMBA_SUBSYSTEM('NDR_WINSTATION',
34 source
='gen_ndr/ndr_winstation.c',
39 bld
.SAMBA_SUBSYSTEM('NDR_IRPC',
40 source
='gen_ndr/ndr_irpc.c',
41 public_deps
='LIBNDR NDR_SECURITY NDR_NBT'
45 bld
.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
46 source
='gen_ndr/ndr_sasl_helpers.c',
52 bld
.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
53 source
='gen_ndr/ndr_nfs4acl.c',
54 public_deps
='LIBNDR NDR_SECURITY'
59 bld
.SAMBA_SUBSYSTEM('NDR_WINSIF',
60 source
='gen_ndr/ndr_winsif.c',
65 bld
.SAMBA_SUBSYSTEM('NDR_OPENDB',
66 source
='gen_ndr/ndr_opendb.c',
71 bld
.SAMBA_SUBSYSTEM('NDR_NOTIFY',
72 source
='gen_ndr/ndr_s4_notify.c',
77 bld
.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
78 source
='gen_ndr/ndr_ntp_signd.c',
83 bld
.SAMBA_SUBSYSTEM('NDR_WINSREPL',
84 source
='gen_ndr/ndr_winsrepl.c',
85 public_deps
='LIBNDR NDR_NBT'
89 bld
.SAMBA_SUBSYSTEM('NDR_WINBIND',
90 source
='gen_ndr/ndr_winbind.c',
91 public_deps
='NDR_IDMAP LIBNDR NDR_STANDARD'
95 bld
.SAMBA_LIBRARY('NDR_STANDARD',
96 source
='../../librpc/gen_ndr/ndr_atsvc.c ../../librpc/gen_ndr/ndr_eventlog6.c',
98 pc_files
='../../librpc/ndr_standard.pc',
99 deps
='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
100 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
101 NDR_ECHO libsecurity NDR_DNS''',
102 public_deps
='LIBNDR',
103 public_headers
='../../librpc/gen_ndr/samr.h ../../librpc/gen_ndr/ndr_samr.h ../../librpc/gen_ndr/lsa.h ../../librpc/gen_ndr/netlogon.h ../../librpc/gen_ndr/atsvc.h ../../librpc/gen_ndr/ndr_atsvc.h ../../librpc/gen_ndr/ndr_svcctl.h ../../librpc/gen_ndr/svcctl.h',
104 header_path
='gen_ndr'
107 # create a grouping library to consolidate our samba4 specific NDR code
108 bld
.SAMBA_LIBRARY('ndr_samba4',
110 deps
='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB NDR_NOTIFY',
111 private_library
=True,
112 grouping_library
=True
115 # a grouping library for RPC_NDR subsystems that may be used by more than one target
116 bld
.SAMBA_LIBRARY('rpc_ndr_samba4',
118 deps
='RPC_NDR_WINBIND',
119 private_library
=True,
120 grouping_library
=True
124 bld
.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
126 bld
.SAMBA_LIBRARY('ndr_table',
127 source
='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
128 public_deps
='''NDR_STANDARD NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
129 NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
130 NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
131 NDR_PROTECTED_STORAGE NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
132 NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC NDR_KRB5PAC
133 NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS NDR_NBT NDR_WINSREPL
134 NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB
135 NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI
136 NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI
137 NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP
138 NDR_NTPRINTING NDR_DNS''',
139 private_library
=True,
140 depends_on
='GEN_NDR_TABLES'
144 bld
.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
145 source
='gen_ndr/ndr_irpc_c.c',
146 public_deps
='dcerpc NDR_IRPC'
149 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
150 source
='gen_ndr/ndr_winbind_c.c',
151 public_deps
='dcerpc NDR_WINBIND'
155 bld
.SAMBA_LIBRARY('dcerpc_samr',
156 source
='../../librpc/gen_ndr/ndr_samr_c.c',
157 pc_files
='dcerpc_samr.pc',
159 public_deps
='dcerpc NDR_STANDARD',
160 public_headers
='../../librpc/gen_ndr/ndr_samr_c.h',
161 header_path
='gen_ndr'
164 bld
.SAMBA_LIBRARY('dcerpc_atsvc',
165 source
='../../librpc/gen_ndr/ndr_atsvc_c.c',
166 pc_files
='dcerpc_atsvc.pc',
168 public_deps
='dcerpc NDR_STANDARD',
169 public_headers
='../../librpc/gen_ndr/ndr_atsvc_c.h',
170 header_path
='gen_ndr'
174 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
175 source
='gen_ndr/ndr_winsif_c.c',
176 public_deps
='dcerpc NDR_WINSIF'
180 bld
.SAMBA_SUBSYSTEM('NDR_DCERPC',
181 source
='../../librpc/gen_ndr/ndr_dcerpc.c',
182 public_deps
='LIBNDR',
183 public_headers
='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
184 header_path
= [ ('*gen_ndr*', 'gen_ndr') ],
187 bld
.SAMBA_LIBRARY('dcerpc',
188 source
='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
189 rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
190 rpc/dcerpc_connect.c rpc/dcerpc_secondary.c ../../librpc/rpc/binding.c
191 ../../librpc/rpc/dcerpc_error.c ../../librpc/rpc/dcerpc_util.c
192 ../../librpc/rpc/binding_handle.c''',
193 pc_files
='dcerpc.pc',
194 deps
='samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 LIBNDR NDR_DCERPC RPC_NDR_EPMAPPER NDR_SCHANNEL RPC_NDR_NETLOGON RPC_NDR_MGMT gensec LIBCLI_AUTH LIBCLI_RAW LP_RESOLVE UTIL_TEVENT',
195 autoproto
='rpc/dcerpc_proto.h',
196 public_deps
='CREDENTIALS tevent talloc',
197 public_headers
='../../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',
198 header_path
='gen_ndr',
202 bld
.SAMBA_SUBSYSTEM('pyrpc_util',
203 source
='rpc/pyrpc_util.c',
204 public_deps
='PYTALLOC pyparam_util dcerpc',
209 bld
.SAMBA_PYTHON('python_dcerpc',
210 source
='rpc/pyrpc.c',
211 public_deps
='LIBCLI_SMB libsamba-util libsamba-hostconfig dcerpc_samr RPC_NDR_LSA DYNCONFIG pyrpc_util',
212 realname
='samba/dcerpc/base.so'
216 bld
.SAMBA_PYTHON('python_echo',
217 source
='../../librpc/gen_ndr/py_echo.c',
218 deps
='RPC_NDR_ECHO PYTALLOC pyrpc_util',
219 realname
='samba/dcerpc/echo.so'
223 bld
.SAMBA_PYTHON('python_winreg',
224 source
='../../librpc/gen_ndr/py_winreg.c',
225 deps
='RPC_NDR_WINREG PYTALLOC pyrpc_util',
226 realname
='samba/dcerpc/winreg.so'
230 bld
.SAMBA_PYTHON('python_dcerpc_misc',
231 source
='../../librpc/gen_ndr/py_misc.c',
232 deps
='PYTALLOC pyrpc_util NDR_KRB5PAC',
233 realname
='samba/dcerpc/misc.so'
237 bld
.SAMBA_PYTHON('python_initshutdown',
238 source
='../../librpc/gen_ndr/py_initshutdown.c',
239 deps
='RPC_NDR_INITSHUTDOWN PYTALLOC pyrpc_util',
240 realname
='samba/dcerpc/initshutdown.so'
244 bld
.SAMBA_PYTHON('python_epmapper',
245 source
='../../librpc/gen_ndr/py_epmapper.c',
246 deps
='dcerpc PYTALLOC pyrpc_util',
247 realname
='samba/dcerpc/epmapper.so'
251 bld
.SAMBA_PYTHON('python_mgmt',
252 source
='../../librpc/gen_ndr/py_mgmt.c',
253 deps
='PYTALLOC dcerpc pyrpc_util',
254 realname
='samba/dcerpc/mgmt.so'
258 bld
.SAMBA_PYTHON('python_atsvc',
259 source
='../../librpc/gen_ndr/py_atsvc.c',
260 deps
='dcerpc_atsvc PYTALLOC pyrpc_util',
261 realname
='samba/dcerpc/atsvc.so'
265 bld
.SAMBA_PYTHON('python_dcerpc_nbt',
266 source
='../../librpc/gen_ndr/py_nbt.c',
267 deps
='NDR_NBT RPC_NDR_NBT PYTALLOC pyrpc_util',
268 realname
='samba/dcerpc/nbt.so'
272 bld
.SAMBA_PYTHON('python_samr',
273 source
='../../librpc/gen_ndr/py_samr.c',
274 deps
='dcerpc_samr PYTALLOC pyrpc_util',
275 realname
='samba/dcerpc/samr.so'
279 bld
.SAMBA_PYTHON('python_svcctl',
280 source
='../../librpc/gen_ndr/py_svcctl.c',
281 deps
='RPC_NDR_SVCCTL PYTALLOC pyrpc_util',
282 realname
='samba/dcerpc/svcctl.so'
286 bld
.SAMBA_PYTHON('python_lsa',
287 source
='../../librpc/gen_ndr/py_lsa.c',
288 deps
='RPC_NDR_LSA PYTALLOC pyrpc_util',
289 realname
='samba/dcerpc/lsa.so'
293 bld
.SAMBA_PYTHON('python_wkssvc',
294 source
='../../librpc/gen_ndr/py_wkssvc.c',
295 deps
='RPC_NDR_WKSSVC PYTALLOC pyrpc_util',
296 realname
='samba/dcerpc/wkssvc.so'
300 bld
.SAMBA_PYTHON('python_dfs',
301 source
='../../librpc/gen_ndr/py_dfs.c',
302 deps
='RPC_NDR_DFS PYTALLOC pyrpc_util',
303 realname
='samba/dcerpc/dfs.so'
307 bld
.SAMBA_PYTHON('python_unixinfo',
308 source
='../../librpc/gen_ndr/py_unixinfo.c',
309 deps
='RPC_NDR_UNIXINFO PYTALLOC pyrpc_util',
310 realname
='samba/dcerpc/unixinfo.so'
314 bld
.SAMBA_PYTHON('python_irpc',
315 source
='gen_ndr/py_irpc.c',
316 deps
='RPC_NDR_IRPC PYTALLOC pyrpc_util',
317 realname
='samba/dcerpc/irpc.so'
320 bld
.SAMBA_PYTHON('python_winbind',
321 source
='gen_ndr/py_winbind.c',
322 deps
='RPC_NDR_WINBIND PYTALLOC pyrpc_util python_netlogon',
323 realname
='samba/dcerpc/winbind.so'
326 bld
.SAMBA_PYTHON('python_idmap',
327 source
='../../librpc/gen_ndr/py_idmap.c',
328 deps
='NDR_IDMAP PYTALLOC pyrpc_util',
329 realname
='samba/dcerpc/idmap.so'
333 bld
.SAMBA_PYTHON('python_drsuapi',
334 source
='../../librpc/gen_ndr/py_drsuapi.c',
335 deps
='RPC_NDR_DRSUAPI PYTALLOC pyrpc_util',
336 realname
='samba/dcerpc/drsuapi.so'
339 bld
.SAMBA_PYTHON('python_dcerpc_security',
340 source
='../../librpc/gen_ndr/py_security.c',
341 deps
='PYTALLOC pyrpc_util NDR_SECURITY',
342 realname
='samba/dcerpc/security.so'
345 bld
.SAMBA_PYTHON('python_dcerpc_drsblobs',
346 source
='../../librpc/gen_ndr/py_drsblobs.c',
347 deps
='PYTALLOC pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
348 realname
='samba/dcerpc/drsblobs.so'
352 bld
.SAMBA_PYTHON('python_dcerpc_xattr',
353 source
='../../librpc/gen_ndr/py_xattr.c',
354 deps
='PYTALLOC pyrpc_util RPC_NDR_XATTR',
355 realname
='samba/dcerpc/xattr.so'
358 bld
.SAMBA_PYTHON('python_netlogon',
359 source
='../../librpc/gen_ndr/py_netlogon.c',
360 deps
='RPC_NDR_NETLOGON PYTALLOC pyrpc_util',
361 realname
='samba/dcerpc/netlogon.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('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname
='__init__.py')