4 bld
.RECURSE('../lib/compression')
6 bld
.SAMBA_SUBSYSTEM('NDR_AUDIOSRV',
7 source
='gen_ndr/ndr_audiosrv.c',
11 bld
.SAMBA_SUBSYSTEM('NDR_AUTH',
12 source
='gen_ndr/ndr_auth.c ndr/ndr_auth.c',
13 public_headers
='gen_ndr/auth.h',
14 header_path
='gen_ndr',
15 public_deps
='ndr NDR_SECURITY ndr-krb5pac'
18 bld
.SAMBA_SUBSYSTEM('NDR_ATSVC',
19 source
='gen_ndr/ndr_atsvc.c',
23 bld
.SAMBA_SUBSYSTEM('NDR_NAMED_PIPE_AUTH',
24 source
='gen_ndr/ndr_named_pipe_auth.c',
25 public_deps
='ndr NDR_AUTH'
28 bld
.SAMBA_SUBSYSTEM('NDR_DNSSERVER',
29 source
='gen_ndr/ndr_dnsserver.c',
33 bld
.SAMBA_SUBSYSTEM('NDR_DNS',
34 source
='gen_ndr/ndr_dns.c ndr/ndr_dns.c',
38 bld
.SAMBA_SUBSYSTEM('NDR_DSBACKUP',
39 source
='gen_ndr/ndr_dsbackup.c',
43 bld
.SAMBA_SUBSYSTEM('NDR_DFS',
44 source
='gen_ndr/ndr_dfs.c',
48 bld
.SAMBA_SUBSYSTEM('NDR_WINREG',
49 source
='gen_ndr/ndr_winreg.c',
50 public_deps
='ndr NDR_SECURITY NDR_LSA'
53 bld
.SAMBA_SUBSYSTEM('NDR_EFS',
54 source
='gen_ndr/ndr_efs.c',
55 public_deps
='ndr NDR_SECURITY'
58 bld
.SAMBA_SUBSYSTEM('NDR_ROT',
59 source
='gen_ndr/ndr_rot.c',
60 public_deps
='ndr NDR_ORPC'
63 bld
.SAMBA_SUBSYSTEM('NDR_FRSRPC',
64 source
='ndr/ndr_frsrpc.c gen_ndr/ndr_frsrpc.c',
68 bld
.SAMBA_SUBSYSTEM('NDR_FRSAPI',
69 source
='gen_ndr/ndr_frsapi.c',
73 bld
.SAMBA_SUBSYSTEM('NDR_FRSTRANS',
74 source
='gen_ndr/ndr_frstrans.c',
78 bld
.SAMBA_SUBSYSTEM('NDR_DFSBLOBS',
79 source
='gen_ndr/ndr_dfsblobs.c',
83 bld
.SAMBA_SUBSYSTEM('NDR_POLICYAGENT',
84 source
='gen_ndr/ndr_policyagent.c',
88 bld
.SAMBA_SUBSYSTEM('NDR_UNIXINFO',
89 source
='gen_ndr/ndr_unixinfo.c',
90 public_deps
='ndr NDR_SECURITY'
93 bld
.SAMBA_SUBSYSTEM('NDR_SPOOLSS',
94 source
='gen_ndr/ndr_spoolss.c',
95 public_deps
='ndr NDR_SPOOLSS_BUF NDR_SECURITY'
98 bld
.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF',
99 source
='ndr/ndr_spoolss_buf.c',
103 bld
.SAMBA_SUBSYSTEM('NDR_PRINTCAP',
104 source
='gen_ndr/ndr_printcap.c',
108 bld
.SAMBA_SUBSYSTEM('NDR_EPMAPPER',
109 source
='gen_ndr/ndr_epmapper.c',
113 bld
.SAMBA_SUBSYSTEM('NDR_DBGIDL',
114 source
='gen_ndr/ndr_dbgidl.c',
118 bld
.SAMBA_SUBSYSTEM('NDR_DSSETUP',
119 source
='gen_ndr/ndr_dssetup.c',
123 bld
.SAMBA_SUBSYSTEM('NDR_MSGSVC',
124 source
='gen_ndr/ndr_msgsvc.c',
128 bld
.SAMBA_SUBSYSTEM('NDR_MGMT',
129 source
='gen_ndr/ndr_mgmt.c',
133 bld
.SAMBA_SUBSYSTEM('NDR_ORPC',
134 source
='ndr/ndr_orpc.c gen_ndr/ndr_orpc.c',
138 bld
.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
139 source
='gen_ndr/ndr_oxidresolver.c',
140 public_deps
='ndr NDR_ORPC'
143 bld
.SAMBA_SUBSYSTEM('NDR_REMACT',
144 source
='gen_ndr/ndr_remact.c',
145 public_deps
='ndr NDR_ORPC'
148 bld
.SAMBA_SUBSYSTEM('NDR_DCOM',
149 source
='gen_ndr/ndr_dcom.c',
150 public_deps
='ndr NDR_SECURITY NDR_ORPC'
153 bld
.SAMBA_SUBSYSTEM('NDR_WMI',
154 source
='ndr/ndr_wmi.c gen_ndr/ndr_wmi.c',
155 public_deps
='ndr NDR_SECURITY NDR_DCOM'
158 bld
.SAMBA_SUBSYSTEM('NDR_WZCSVC',
159 source
='gen_ndr/ndr_wzcsvc.c',
163 bld
.SAMBA_SUBSYSTEM('NDR_BROWSER',
164 source
='gen_ndr/ndr_browser.c',
168 bld
.SAMBA_SUBSYSTEM('NDR_W32TIME',
169 source
='gen_ndr/ndr_w32time.c',
173 bld
.SAMBA_SUBSYSTEM('NDR_SCERPC',
174 source
='gen_ndr/ndr_scerpc.c',
178 bld
.SAMBA_SUBSYSTEM('NDR_SERVER_ID',
179 source
='gen_ndr/ndr_server_id.c',
181 public_headers
='gen_ndr/server_id.h',
182 header_path
='gen_ndr'
185 bld
.SAMBA_SUBSYSTEM('NDR_TRKWKS',
186 source
='gen_ndr/ndr_trkwks.c',
190 bld
.SAMBA_SUBSYSTEM('NDR_KEYSVC',
191 source
='gen_ndr/ndr_keysvc.c',
195 bld
.SAMBA_SUBSYSTEM('NDR_RAP',
196 source
='gen_ndr/ndr_rap.c ndr/ndr_rap.c',
200 bld
.SAMBA_SUBSYSTEM('NDR_IDMAP',
201 source
='gen_ndr/ndr_idmap.c',
202 public_deps
='ndr ndr-standard'
205 bld
.SAMBA_SUBSYSTEM('NDR_NOTIFY',
206 source
='gen_ndr/ndr_notify.c',
207 public_deps
='ndr ndr-standard NDR_SERVER_ID NDR_FILE_ID'
210 bld
.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
211 source
='ndr/ndr_ntlmssp.c gen_ndr/ndr_ntlmssp.c',
212 public_deps
='ndr ndr-standard'
215 bld
.SAMBA_SUBSYSTEM('NDR_DNSP',
216 source
='gen_ndr/ndr_dnsp.c ndr/ndr_dnsp.c',
220 bld
.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
221 source
='gen_ndr/ndr_ntprinting.c ndr/ndr_ntprinting.c',
225 bld
.SAMBA_SUBSYSTEM('NDR_SAMR',
226 source
='gen_ndr/ndr_samr.c',
227 public_deps
='ndr NDR_SECURITY NDR_LSA'
230 bld
.SAMBA_SUBSYSTEM('NDR_LSA',
231 source
='gen_ndr/ndr_lsa.c',
232 public_deps
='ndr NDR_SECURITY'
235 bld
.SAMBA_SUBSYSTEM('NDR_SECURITY',
236 source
='gen_ndr/ndr_security.c ndr/ndr_sec_helper.c',
238 public_headers
='gen_ndr/security.h',
239 header_path
='gen_ndr'
242 bld
.SAMBA_SUBSYSTEM('NDR_SVCCTL',
243 source
='gen_ndr/ndr_svcctl.c ndr/ndr_svcctl.c',
244 public_deps
='ndr NDR_SECURITY'
247 bld
.SAMBA_SUBSYSTEM('NDR_SRVSVC',
248 source
='gen_ndr/ndr_srvsvc.c',
249 public_deps
='ndr NDR_SECURITY NDR_SVCCTL'
252 bld
.SAMBA_SUBSYSTEM('NDR_NETLOGON',
253 source
='gen_ndr/ndr_netlogon.c ndr/ndr_netlogon.c',
254 public_deps
='ndr NDR_SECURITY NDR_LSA NDR_SAMR NDR_NBT'
257 bld
.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
258 source
='gen_ndr/ndr_eventlog.c',
259 public_deps
='ndr NDR_SECURITY NDR_LSA'
262 bld
.SAMBA_SUBSYSTEM('NDR_NTSVCS',
263 source
='gen_ndr/ndr_ntsvcs.c',
267 bld
.SAMBA_SUBSYSTEM('NDR_WKSSVC',
268 source
='gen_ndr/ndr_wkssvc.c',
269 public_deps
='ndr NDR_SECURITY'
272 bld
.SAMBA_SUBSYSTEM('NDR_ECHO',
273 source
='gen_ndr/ndr_echo.c',
277 bld
.SAMBA_SUBSYSTEM('NDR_INITSHUTDOWN',
278 source
='gen_ndr/ndr_initshutdown.c',
279 public_deps
='ndr NDR_LSA'
282 bld
.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
283 source
='ndr/ndr_compression.c',
284 public_deps
='errors ndr',
288 bld
.SAMBA_SUBSYSTEM('NDR_DCERPC',
289 source
='gen_ndr/ndr_dcerpc.c',
291 public_headers
='gen_ndr/ndr_dcerpc.h gen_ndr/dcerpc.h',
292 header_path
= [ ('*gen_ndr*', 'gen_ndr') ],
295 bld
.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
296 source
='ndr/ndr_drsuapi.c gen_ndr/ndr_drsuapi.c',
297 public_deps
='ndr NDR_COMPRESSION NDR_SECURITY ndr-standard asn1util'
300 bld
.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
301 source
='ndr/ndr_drsblobs.c gen_ndr/ndr_drsblobs.c',
302 public_deps
='ndr NDR_DRSUAPI'
305 bld
.SAMBA_LIBRARY('ndr-krb5pac',
306 source
='ndr/ndr_krb5pac.c gen_ndr/ndr_krb5pac.c',
307 public_deps
='ndr ndr-standard NDR_SECURITY',
308 public_headers
='gen_ndr/krb5pac.h gen_ndr/ndr_krb5pac.h',
309 header_path
='gen_ndr',
310 pc_files
='ndr_krb5pac.pc',
314 bld
.SAMBA_LIBRARY('ndr-standard',
315 source
='gen_ndr/ndr_eventlog6.c',
317 pc_files
='ndr_standard.pc',
318 deps
='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
319 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
320 NDR_ECHO security NDR_DNS NDR_ATSVC NDR_SPOOLSS NDR_DSSETUP
321 NDR_SERVER_ID NDR_NOTIFY''',
323 public_headers
='gen_ndr/samr.h gen_ndr/ndr_samr.h gen_ndr/lsa.h gen_ndr/netlogon.h gen_ndr/atsvc.h gen_ndr/ndr_atsvc.h gen_ndr/ndr_svcctl.h gen_ndr/svcctl.h',
324 header_path
='gen_ndr'
327 bld
.SAMBA_SUBSYSTEM('NDR_XATTR',
328 source
='ndr/ndr_xattr.c gen_ndr/ndr_xattr.c',
329 public_deps
='ndr NDR_SECURITY'
332 bld
.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
333 source
='ndr/ndr_schannel.c gen_ndr/ndr_schannel.c',
334 public_deps
='ndr NDR_NBT'
337 bld
.SAMBA_SUBSYSTEM('NDR_NBT',
338 source
='gen_ndr/ndr_nbt.c',
339 public_deps
='ndr NDR_NBT_BUF NDR_SECURITY ndr-standard LIBCLI_NDR_NETLOGON',
340 public_headers
='gen_ndr/nbt.h',
341 header_path
='gen_ndr'
344 bld
.SAMBA_SUBSYSTEM('NDR_BACKUPKEY',
345 source
='ndr/ndr_backupkey.c gen_ndr/ndr_backupkey.c',
349 bld
.SAMBA_SUBSYSTEM('NDR_PREG',
350 source
='gen_ndr/ndr_preg.c ndr/ndr_preg.c',
354 bld
.SAMBA_SUBSYSTEM('NDR_FILE_ID',
355 source
='gen_ndr/ndr_file_id.c',
359 bld
.SAMBA_SUBSYSTEM('RPC_NDR_XATTR',
360 source
='gen_ndr/ndr_xattr_c.c',
361 public_deps
='NDR_XATTR rpccommon'
364 bld
.SAMBA_SUBSYSTEM('RPC_NDR_ROT',
365 source
='gen_ndr/ndr_rot_c.c',
366 public_deps
='NDR_ROT rpccommon'
369 bld
.SAMBA_SUBSYSTEM('RPC_NDR_ATSVC',
370 source
='gen_ndr/ndr_atsvc_c.c',
371 public_deps
='rpccommon NDR_ATSVC'
374 bld
.SAMBA_SUBSYSTEM('RPC_NDR_AUDIOSRV',
375 source
='gen_ndr/ndr_audiosrv_c.c',
376 public_deps
='NDR_AUDIOSRV rpccommon'
379 bld
.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
380 source
='gen_ndr/ndr_echo_c.c',
381 public_deps
='rpccommon NDR_ECHO'
384 bld
.SAMBA_SUBSYSTEM('RPC_NDR_DSBACKUP',
385 source
='gen_ndr/ndr_dsbackup_c.c',
386 public_deps
='rpccommon NDR_DSBACKUP'
389 bld
.SAMBA_SUBSYSTEM('RPC_NDR_EFS',
390 source
='gen_ndr/ndr_efs_c.c',
391 public_deps
='rpccommon NDR_EFS'
394 bld
.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
395 source
='gen_ndr/ndr_lsa_c.c',
396 public_deps
='rpccommon ndr-standard'
399 bld
.SAMBA_SUBSYSTEM('RPC_NDR_SAMR',
400 source
='gen_ndr/ndr_samr_c.c',
401 public_deps
='rpccommon NDR_SAMR'
404 bld
.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
405 source
='gen_ndr/ndr_dfs_c.c',
406 public_deps
='rpccommon ndr-standard'
409 bld
.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
410 source
='gen_ndr/ndr_frsapi_c.c',
411 public_deps
='rpccommon NDR_FRSAPI'
414 bld
.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
415 source
='gen_ndr/ndr_drsuapi_c.c',
416 public_deps
='rpccommon NDR_DRSUAPI'
419 bld
.SAMBA_SUBSYSTEM('RPC_NDR_DRSBLOBS',
420 source
='gen_ndr/ndr_drsblobs_c.c',
421 public_deps
='rpccommon NDR_DRSBLOBS'
424 bld
.SAMBA_SUBSYSTEM('RPC_NDR_POLICYAGENT',
425 source
='gen_ndr/ndr_policyagent_c.c',
426 public_deps
='rpccommon NDR_POLICYAGENT'
429 bld
.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
430 source
='gen_ndr/ndr_unixinfo_c.c',
431 public_deps
='rpccommon NDR_UNIXINFO'
434 bld
.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
435 source
='gen_ndr/ndr_browser_c.c',
436 public_deps
='rpccommon NDR_BROWSER'
439 bld
.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
440 source
='gen_ndr/ndr_spoolss_c.c',
441 public_deps
='rpccommon NDR_SPOOLSS'
444 bld
.SAMBA_SUBSYSTEM('RPC_NDR_NBT',
445 source
='gen_ndr/ndr_nbt_c.c',
446 public_deps
='rpccommon NDR_NBT'
449 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
450 source
='gen_ndr/ndr_wkssvc_c.c',
451 public_deps
='rpccommon ndr-standard'
454 bld
.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
455 source
='gen_ndr/ndr_srvsvc_c.c',
456 public_deps
='rpccommon NDR_SRVSVC'
459 bld
.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
460 source
='gen_ndr/ndr_svcctl_c.c',
461 public_deps
='rpccommon ndr-standard',
462 public_headers
='gen_ndr/ndr_svcctl_c.h ndr/ndr_svcctl.h',
463 header_path
=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
466 bld
.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
467 source
='gen_ndr/ndr_eventlog_c.c',
468 public_deps
='rpccommon ndr-standard'
471 bld
.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
472 source
='gen_ndr/ndr_epmapper_c.c',
473 public_deps
='tevent NDR_EPMAPPER'
476 bld
.SAMBA_SUBSYSTEM('RPC_NDR_DBGIDL',
477 source
='gen_ndr/ndr_dbgidl_c.c',
478 public_deps
='rpccommon NDR_DBGIDL'
481 bld
.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
482 source
='gen_ndr/ndr_dssetup_c.c',
483 public_deps
='rpccommon NDR_DSSETUP'
486 bld
.SAMBA_SUBSYSTEM('RPC_NDR_MSGSVC',
487 source
='gen_ndr/ndr_msgsvc_c.c',
488 public_deps
='rpccommon NDR_MSGSVC'
491 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
492 source
='gen_ndr/ndr_winreg_c.c',
493 public_deps
='rpccommon ndr-standard'
496 bld
.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
497 source
='gen_ndr/ndr_initshutdown_c.c',
498 public_deps
='rpccommon ndr-standard'
501 bld
.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
502 source
='gen_ndr/ndr_mgmt_c.c',
503 deps
='tevent NDR_MGMT'
506 bld
.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
507 source
='gen_ndr/ndr_oxidresolver_c.c',
508 public_deps
='rpccommon NDR_OXIDRESOLVER'
511 bld
.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
512 source
='gen_ndr/ndr_remact_c.c',
513 public_deps
='rpccommon NDR_REMACT'
516 bld
.SAMBA_SUBSYSTEM('RPC_NDR_WZCSVC',
517 source
='gen_ndr/ndr_wzcsvc_c.c',
518 public_deps
='rpccommon NDR_WZCSVC'
521 bld
.SAMBA_SUBSYSTEM('RPC_NDR_W32TIME',
522 source
='gen_ndr/ndr_w32time_c.c',
523 public_deps
='rpccommon NDR_W32TIME'
526 bld
.SAMBA_SUBSYSTEM('RPC_NDR_SCERPC',
527 source
='gen_ndr/ndr_scerpc_c.c',
528 public_deps
='rpccommon NDR_SCERPC'
531 bld
.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
532 source
='gen_ndr/ndr_ntsvcs_c.c',
533 public_deps
='rpccommon ndr-standard'
536 bld
.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
537 source
='gen_ndr/ndr_netlogon_c.c',
538 public_deps
='ndr-standard tevent'
541 bld
.SAMBA_SUBSYSTEM('RPC_NDR_TRKWKS',
542 source
='gen_ndr/ndr_trkwks_c.c',
543 public_deps
='rpccommon NDR_TRKWKS'
546 bld
.SAMBA_SUBSYSTEM('RPC_NDR_KEYSVC',
547 source
='gen_ndr/ndr_keysvc_c.c',
548 public_deps
='rpccommon NDR_KEYSVC'
551 bld
.SAMBA_SUBSYSTEM('RPC_NDR_BACKUPKEY',
552 source
='gen_ndr/ndr_backupkey_c.c',
553 public_deps
='rpccommon NDR_BACKUPKEY'
556 bld
.SAMBA_SUBSYSTEM('RPC_NDR_DNSP',
557 source
='gen_ndr/ndr_dnsp_c.c',
558 public_deps
='rpccommon NDR_DNSP'
561 # a grouping library for NDR subsystems that may be used by more than one target
562 bld
.SAMBA_LIBRARY('ndr-samba',
564 deps
='NDR_DRSBLOBS NDR_DRSUAPI NDR_IDMAP NDR_NTLMSSP NDR_SCHANNEL NDR_MGMT NDR_DNSP NDR_EPMAPPER NDR_XATTR NDR_UNIXINFO NDR_NAMED_PIPE_AUTH NDR_DCOM',
565 private_library
=True,
566 grouping_library
=True
569 # a grouping library for RPC_NDR subsystems that may be used by more than one target
570 bld
.SAMBA_LIBRARY('dcerpc-samba',
572 deps
='''RPC_NDR_LSA RPC_NDR_SAMR RPC_NDR_NETLOGON RPC_NDR_EVENTLOG RPC_NDR_DFS
573 RPC_NDR_NTSVCS RPC_NDR_SVCCTL RPC_NDR_INITSHUTDOWN RPC_NDR_WKSSVC RPC_NDR_SRVSVC RPC_NDR_WINREG
574 RPC_NDR_ECHO RPC_NDR_EPMAPPER RPC_NDR_ATSVC RPC_NDR_SPOOLSS''',
575 public_deps
='ndr-standard',
576 private_library
=True,
577 grouping_library
=True
580 bld
.SAMBA_LIBRARY('ndr',
581 source
='ndr/ndr_string.c ndr/ndr_basic.c ndr/uuid.c ndr/ndr.c ndr/ndr_misc.c gen_ndr/ndr_misc.c ndr/util.c',
583 public_deps
='errors talloc samba-util',
584 public_headers
='gen_ndr/misc.h gen_ndr/ndr_misc.h ndr/libndr.h:ndr.h',
585 header_path
= [ ( '*gen_ndr*', 'gen_ndr' ) ],
586 depends_on
='PIDL_MISC',
590 bld
.SAMBA_LIBRARY('rpccommon',
591 source
='rpc/dcerpc_error.c rpc/binding.c rpc/dcerpc_util.c rpc/binding_handle.c',
592 deps
='ndr tevent NDR_DCERPC LIBTSOCKET UTIL_TEVENT',
593 private_library
=True)