tevent: Flow: add tevent_thread_call_depth_set_callback()
[samba4-gss.git] / librpc / wscript_build
blobcd1988033d2953c8512511ac3ead3d8d484650ee
1 #!/usr/bin/env python
3 bld.RECURSE('idl')
4 bld.RECURSE('../lib/compression')
6 bld.SAMBA_SUBSYSTEM('NDR_AUDIOSRV',
7 source='gen_ndr/ndr_audiosrv.c',
8 public_deps='ndr'
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',
20 public_deps='ndr'
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 ndr/ndr_dnsserver.c',
30 public_deps='ndr NDR_DNSP'
33 bld.SAMBA_SUBSYSTEM('NDR_DNS',
34 source='gen_ndr/ndr_dns.c ndr/ndr_dns.c ndr/ndr_dns_utils.c',
35 public_deps='ndr NDR_DNSP'
38 bld.SAMBA_SUBSYSTEM('NDR_DSBACKUP',
39 source='gen_ndr/ndr_dsbackup.c',
40 public_deps='ndr'
43 bld.SAMBA_SUBSYSTEM('NDR_DFS',
44 source='gen_ndr/ndr_dfs.c',
45 public_deps='ndr'
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',
65 public_deps='ndr NDR_FSCC'
68 bld.SAMBA_SUBSYSTEM('NDR_FRSAPI',
69 source='gen_ndr/ndr_frsapi.c',
70 public_deps='ndr'
73 bld.SAMBA_SUBSYSTEM('NDR_FRSTRANS',
74 source='gen_ndr/ndr_frstrans.c',
75 public_deps='ndr'
78 bld.SAMBA_SUBSYSTEM('NDR_DFSBLOBS',
79 source='gen_ndr/ndr_dfsblobs.c',
80 public_deps='ndr'
83 bld.SAMBA_SUBSYSTEM('NDR_BKUPBLOBS',
84 source='ndr/ndr_bkupblobs.c gen_ndr/ndr_bkupblobs.c',
85 public_deps='ndr NDR_SECURITY NDR_FSCC'
88 bld.SAMBA_SUBSYSTEM('NDR_FSCC',
89 source='gen_ndr/ndr_fscc.c',
90 public_deps='ndr'
93 bld.SAMBA_SUBSYSTEM('NDR_POLICYAGENT',
94 source='gen_ndr/ndr_policyagent.c',
95 public_deps='ndr'
98 bld.SAMBA_SUBSYSTEM('NDR_UNIXINFO',
99 source='gen_ndr/ndr_unixinfo.c',
100 public_deps='ndr NDR_SECURITY'
103 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS',
104 source='gen_ndr/ndr_spoolss.c',
105 public_deps='ndr NDR_SPOOLSS_BUF NDR_SECURITY'
108 bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF',
109 source='ndr/ndr_spoolss_buf.c',
110 deps='talloc'
113 bld.SAMBA_SUBSYSTEM('NDR_WINSPOOL',
114 source='gen_ndr/ndr_winspool.c',
115 public_deps='ndr NDR_SPOOLSS'
118 bld.SAMBA_SUBSYSTEM('NDR_PRINTCAP',
119 source='gen_ndr/ndr_printcap.c',
120 public_deps='ndr'
123 bld.SAMBA_SUBSYSTEM('NDR_EPMAPPER',
124 source='gen_ndr/ndr_epmapper.c',
125 public_deps='ndr'
128 bld.SAMBA_SUBSYSTEM('NDR_DBGIDL',
129 source='gen_ndr/ndr_dbgidl.c',
130 public_deps='ndr'
133 bld.SAMBA_SUBSYSTEM('NDR_DSSETUP',
134 source='gen_ndr/ndr_dssetup.c',
135 public_deps='ndr'
138 bld.SAMBA_SUBSYSTEM('NDR_MSGSVC',
139 source='gen_ndr/ndr_msgsvc.c',
140 public_deps='ndr'
143 bld.SAMBA_SUBSYSTEM('NDR_MGMT',
144 source='gen_ndr/ndr_mgmt.c',
145 public_deps='ndr'
148 bld.SAMBA_SUBSYSTEM('NDR_ORPC',
149 source='ndr/ndr_orpc.c gen_ndr/ndr_orpc.c',
150 public_deps='ndr'
153 bld.SAMBA_SUBSYSTEM('NDR_OXIDRESOLVER',
154 source='gen_ndr/ndr_oxidresolver.c',
155 public_deps='ndr NDR_ORPC'
158 bld.SAMBA_SUBSYSTEM('NDR_REMACT',
159 source='gen_ndr/ndr_remact.c',
160 public_deps='ndr NDR_ORPC'
163 bld.SAMBA_SUBSYSTEM('NDR_DCOM',
164 source='gen_ndr/ndr_dcom.c',
165 public_deps='ndr NDR_SECURITY NDR_ORPC'
168 bld.SAMBA_SUBSYSTEM('NDR_WMI',
169 source='ndr/ndr_wmi.c gen_ndr/ndr_wmi.c',
170 public_deps='ndr NDR_SECURITY NDR_DCOM'
173 bld.SAMBA_SUBSYSTEM('NDR_WZCSVC',
174 source='gen_ndr/ndr_wzcsvc.c',
175 public_deps='ndr'
178 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
179 source='gen_ndr/ndr_browser.c',
180 public_deps='ndr NDR_SRVSVC'
183 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
184 source='gen_ndr/ndr_w32time.c',
185 public_deps='ndr'
188 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
189 source='gen_ndr/ndr_scerpc.c',
190 public_deps='ndr'
193 bld.SAMBA_SUBSYSTEM('NDR_SERVER_ID',
194 source='gen_ndr/ndr_server_id.c',
195 deps='ndr',
196 public_headers='gen_ndr/server_id.h',
197 header_path='gen_ndr'
200 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
201 source='gen_ndr/ndr_trkwks.c',
202 public_deps='ndr'
205 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
206 source='gen_ndr/ndr_keysvc.c',
207 public_deps='ndr'
210 bld.SAMBA_SUBSYSTEM('NDR_RAP',
211 source='gen_ndr/ndr_rap.c ndr/ndr_rap.c',
212 public_deps='ndr'
215 bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
216 source='gen_ndr/ndr_idmap.c',
217 public_deps='ndr ndr-standard'
220 bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
221 source='gen_ndr/ndr_notify.c',
222 public_deps='ndr ndr-standard NDR_SERVER_ID NDR_FILE_ID'
225 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
226 source='ndr/ndr_ntlmssp.c gen_ndr/ndr_ntlmssp.c',
227 public_deps='ndr ndr-standard'
230 bld.SAMBA_SUBSYSTEM('NDR_NEGOEX',
231 source='ndr/ndr_negoex.c gen_ndr/ndr_negoex.c',
232 public_deps='ndr'
235 bld.SAMBA_SUBSYSTEM('NDR_DNSP',
236 source='gen_ndr/ndr_dnsp.c ndr/ndr_dnsp.c',
237 public_deps='ndr'
240 bld.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
241 source='gen_ndr/ndr_nfs4acl.c',
242 public_deps='ndr NDR_SECURITY'
245 bld.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
246 source='gen_ndr/ndr_ntprinting.c ndr/ndr_ntprinting.c',
247 public_deps='ndr'
250 bld.SAMBA_SUBSYSTEM('NDR_SAMR',
251 source='gen_ndr/ndr_samr.c',
252 public_deps='ndr NDR_SECURITY NDR_LSA'
255 bld.SAMBA_SUBSYSTEM('NDR_LSA',
256 source='gen_ndr/ndr_lsa.c',
257 public_deps='ndr NDR_SECURITY'
260 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
261 source='gen_ndr/ndr_security.c ndr/ndr_sec_helper.c',
262 deps='ndr samba-security',
263 public_headers='gen_ndr/security.h',
264 header_path='gen_ndr'
267 bld.SAMBA_SUBSYSTEM('NDR_SMB_ACL',
268 source='gen_ndr/ndr_smb_acl.c',
269 deps='ndr',
272 bld.SAMBA_SUBSYSTEM('NDR_SVCCTL',
273 source='gen_ndr/ndr_svcctl.c ndr/ndr_svcctl.c',
274 public_deps='ndr NDR_SECURITY'
277 bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
278 source='gen_ndr/ndr_srvsvc.c',
279 public_deps='ndr NDR_SECURITY NDR_SVCCTL'
282 bld.SAMBA_SUBSYSTEM('NDR_NETLOGON',
283 source='gen_ndr/ndr_netlogon.c ndr/ndr_netlogon.c',
284 public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR ndr_nbt'
287 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
288 source='gen_ndr/ndr_eventlog.c',
289 public_deps='ndr NDR_SECURITY NDR_LSA'
292 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG6',
293 source='gen_ndr/ndr_eventlog6.c',
294 public_deps='ndr'
297 bld.SAMBA_SUBSYSTEM('NDR_NTSVCS',
298 source='gen_ndr/ndr_ntsvcs.c',
299 public_deps='ndr'
302 bld.SAMBA_SUBSYSTEM('NDR_WKSSVC',
303 source='gen_ndr/ndr_wkssvc.c',
304 public_deps='ndr NDR_SECURITY NDR_SRVSVC NDR_LSA'
307 bld.SAMBA_SUBSYSTEM('NDR_ECHO',
308 source='gen_ndr/ndr_echo.c',
309 public_deps='ndr'
312 bld.SAMBA_SUBSYSTEM('NDR_INITSHUTDOWN',
313 source='gen_ndr/ndr_initshutdown.c',
314 public_deps='ndr NDR_LSA'
317 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
318 source='ndr/ndr_compression.c',
319 public_deps='samba-errors ndr',
320 deps='z LZXPRESS'
323 bld.SAMBA_SUBSYSTEM('NDR_FSRVP',
324 source='gen_ndr/ndr_fsrvp.c',
325 public_deps='ndr'
328 bld.SAMBA_SUBSYSTEM('NDR_WITNESS',
329 source='gen_ndr/ndr_witness.c ndr/ndr_witness.c',
330 public_deps='ndr'
333 bld.SAMBA_SUBSYSTEM('NDR_CLUSAPI',
334 source='gen_ndr/ndr_clusapi.c',
335 public_deps='ndr NDR_WINREG'
338 bld.SAMBA_SUBSYSTEM('NDR_MDSSVC',
339 source='gen_ndr/ndr_mdssvc.c',
340 public_deps='ndr'
343 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
344 source='gen_ndr/ndr_dcerpc.c ndr/ndr_dcerpc.c',
345 public_deps='ndr',
346 public_headers='gen_ndr/ndr_dcerpc.h gen_ndr/dcerpc.h ndr/ndr_dcerpc.h',
347 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
350 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
351 source='ndr/ndr_drsuapi.c gen_ndr/ndr_drsuapi.c',
352 public_deps='ndr NDR_COMPRESSION NDR_SECURITY ndr-standard asn1util',
353 public_headers='gen_ndr/ndr_drsuapi.h gen_ndr/drsuapi.h ndr/ndr_drsuapi.h',
354 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
357 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
358 source='ndr/ndr_drsblobs.c gen_ndr/ndr_drsblobs.c',
359 public_deps='ndr NDR_DRSUAPI',
360 public_headers='gen_ndr/ndr_drsblobs.h gen_ndr/drsblobs.h ndr/ndr_drsblobs.h',
361 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
364 bld.SAMBA_SUBSYSTEM('NDR_ODJ',
365 source='gen_ndr/ndr_ODJ.c ndr/ndr_ODJ.c',
366 public_deps='NDR_LSA NDR_NETLOGON NDR_SECURITY',
367 deps='ndr')
369 bld.SAMBA_SUBSYSTEM('NDR_KRB5PAC',
370 source='',
371 deps='ndr-krb5pac')
373 bld.SAMBA_LIBRARY('ndr-krb5pac',
374 source='ndr/ndr_krb5pac.c gen_ndr/ndr_krb5pac.c',
375 public_deps='ndr ndr-standard NDR_SECURITY NDR_CLAIMS',
376 public_headers='gen_ndr/krb5pac.h gen_ndr/ndr_krb5pac.h ndr/ndr_krb5pac.h',
377 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')],
378 pc_files='ndr_krb5pac.pc',
379 vnum='0.0.1'
382 bld.SAMBA_SUBSYSTEM('NDR_KRB5CCACHE',
383 source='gen_ndr/ndr_krb5ccache.c',
384 deps='ndr NDR_SECURITY ndr-standard asn1util'
387 bld.SAMBA_SUBSYSTEM('NDR_CLAIMS',
388 source='gen_ndr/ndr_claims.c ndr/ndr_claims.c',
389 deps='ndr NDR_COMPRESSION LZXPRESS')
391 bld.SAMBA_LIBRARY('ndr-standard',
392 source='',
393 vnum='0.0.1',
394 pc_files='ndr_standard.pc',
395 deps='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON
396 NDR_EVENTLOG NDR_EVENTLOG6 NDR_DFS
397 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
398 NDR_ECHO security NDR_DNS NDR_DNSP NDR_ATSVC NDR_SPOOLSS NDR_DSSETUP
399 NDR_SERVER_ID NDR_NOTIFY''',
400 public_deps='ndr',
401 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 gen_ndr/claims.h',
402 header_path='gen_ndr'
405 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
406 source='ndr/ndr_xattr.c gen_ndr/ndr_xattr.c',
407 public_deps='ndr NDR_SECURITY'
410 bld.SAMBA_SUBSYSTEM('NDR_SMB2_LEASE_STRUCT',
411 source='gen_ndr/ndr_smb2_lease_struct.c',
412 public_deps='ndr',
413 public_headers='gen_ndr/smb2_lease_struct.h'
416 bld.SAMBA_SUBSYSTEM('NDR_QUOTA',
417 source='gen_ndr/ndr_quota.c',
418 public_deps='ndr',
421 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
422 source='ndr/ndr_schannel.c gen_ndr/ndr_schannel.c',
423 public_deps='ndr ndr_nbt'
426 bld.SAMBA_SUBSYSTEM('NDR_NBT',
427 source='',
428 deps='ndr_nbt')
430 bld.SAMBA_LIBRARY('ndr_nbt',
431 source='gen_ndr/ndr_nbt.c ndr/ndr_nbt.c',
432 public_deps='ndr NDR_NBT_BUF NDR_SECURITY NDR_DNS',
433 public_headers='gen_ndr/nbt.h gen_ndr/ndr_nbt.h ndr/ndr_nbt.h',
434 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')],
435 pc_files='ndr_nbt.pc',
436 vnum='0.0.1'
439 bld.SAMBA_SUBSYSTEM('NDR_BACKUPKEY',
440 source='ndr/ndr_backupkey.c gen_ndr/ndr_backupkey.c',
441 public_deps='ndr NDR_SECURITY'
444 bld.SAMBA_SUBSYSTEM('NDR_PREG',
445 source='gen_ndr/ndr_preg.c ndr/ndr_preg.c',
446 public_deps='ndr'
449 bld.SAMBA_SUBSYSTEM('NDR_CAB',
450 source='''
451 gen_ndr/ndr_cab.c
452 ndr/ndr_cab.c
453 ''',
454 public_deps='ndr NDR_COMPRESSION')
456 bld.SAMBA_SUBSYSTEM('NDR_FILE_ID',
457 source='gen_ndr/ndr_file_id.c',
458 public_deps='ndr'
461 bld.SAMBA_SUBSYSTEM('NDR_MESSAGING',
462 source='gen_ndr/ndr_messaging.c',
463 public_deps='ndr NDR_SERVER_ID'
466 bld.SAMBA_SUBSYSTEM('NDR_WINSTATION',
467 source='gen_ndr/ndr_winstation.c',
468 public_deps='ndr'
471 bld.SAMBA_SUBSYSTEM('RPC_NDR_ATSVC',
472 source='gen_ndr/ndr_atsvc_c.c',
473 public_deps='dcerpc-binding NDR_ATSVC'
476 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
477 source='gen_ndr/ndr_echo_c.c',
478 public_deps='dcerpc-binding NDR_ECHO'
481 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
482 source='gen_ndr/ndr_lsa_c.c',
483 public_deps='dcerpc-binding ndr-standard'
486 bld.SAMBA_SUBSYSTEM('RPC_NDR_SAMR',
487 source='gen_ndr/ndr_samr_c.c',
488 public_deps='dcerpc-binding NDR_SAMR'
491 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
492 source='gen_ndr/ndr_dfs_c.c',
493 public_deps='dcerpc-binding ndr-standard'
496 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
497 source='gen_ndr/ndr_frsapi_c.c',
498 public_deps='dcerpc-binding NDR_FRSAPI'
501 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
502 source='gen_ndr/ndr_drsuapi_c.c',
503 public_deps='dcerpc-binding NDR_DRSUAPI'
506 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
507 source='gen_ndr/ndr_unixinfo_c.c',
508 public_deps='dcerpc-binding NDR_UNIXINFO'
511 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
512 source='gen_ndr/ndr_browser_c.c',
513 public_deps='dcerpc-binding NDR_BROWSER'
516 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
517 source='gen_ndr/ndr_spoolss_c.c',
518 public_deps='dcerpc-binding NDR_SPOOLSS'
521 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSPOOL',
522 source='gen_ndr/ndr_winspool_c.c',
523 public_deps='dcerpc-binding NDR_WINSPOOL'
526 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
527 source='gen_ndr/ndr_wkssvc_c.c',
528 public_deps='dcerpc-binding ndr-standard'
531 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
532 source='gen_ndr/ndr_srvsvc_c.c',
533 public_deps='dcerpc-binding NDR_SRVSVC'
536 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
537 source='gen_ndr/ndr_svcctl_c.c',
538 public_deps='dcerpc-binding ndr-standard',
539 public_headers='gen_ndr/ndr_svcctl_c.h ndr/ndr_svcctl.h',
540 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
543 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
544 source='gen_ndr/ndr_eventlog_c.c',
545 public_deps='dcerpc-binding ndr-standard'
548 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
549 source='gen_ndr/ndr_epmapper_c.c',
550 public_deps='tevent NDR_EPMAPPER'
553 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
554 source='gen_ndr/ndr_dssetup_c.c',
555 public_deps='dcerpc-binding NDR_DSSETUP'
558 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
559 source='gen_ndr/ndr_winreg_c.c',
560 public_deps='dcerpc-binding ndr-standard'
563 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
564 source='gen_ndr/ndr_initshutdown_c.c',
565 public_deps='dcerpc-binding ndr-standard'
568 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
569 source='gen_ndr/ndr_mgmt_c.c',
570 deps='tevent NDR_MGMT'
573 bld.SAMBA_SUBSYSTEM('RPC_NDR_OXIDRESOLVER',
574 source='gen_ndr/ndr_oxidresolver_c.c',
575 public_deps='dcerpc-binding NDR_OXIDRESOLVER'
578 bld.SAMBA_SUBSYSTEM('RPC_NDR_REMACT',
579 source='gen_ndr/ndr_remact_c.c',
580 public_deps='dcerpc-binding NDR_REMACT'
583 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
584 source='gen_ndr/ndr_ntsvcs_c.c',
585 public_deps='dcerpc-binding ndr-standard'
588 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
589 source='gen_ndr/ndr_netlogon_c.c',
590 public_deps='ndr-standard tevent'
593 bld.SAMBA_SUBSYSTEM('RPC_NDR_BACKUPKEY',
594 source='gen_ndr/ndr_backupkey_c.c',
595 public_deps='dcerpc-binding NDR_BACKUPKEY'
598 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNSSERVER',
599 source='gen_ndr/ndr_dnsserver_c.c',
600 public_deps='dcerpc-binding ndr-standard'
603 bld.SAMBA_SUBSYSTEM('NDR_IOCTL',
604 source='gen_ndr/ndr_ioctl.c ndr/ndr_ioctl.c',
605 public_deps='ndr'
608 bld.SAMBA_SUBSYSTEM('RPC_NDR_FSRVP',
609 source='gen_ndr/ndr_fsrvp_c.c',
610 public_deps='dcerpc-binding NDR_FSRVP'
613 bld.SAMBA_SUBSYSTEM('RPC_NDR_WITNESS',
614 source='gen_ndr/ndr_witness_c.c',
615 public_deps='dcerpc-binding NDR_WITNESS'
618 bld.SAMBA_SUBSYSTEM('RPC_NDR_CLUSAPI',
619 source='gen_ndr/ndr_clusapi_c.c',
620 public_deps='dcerpc-binding NDR_CLUSAPI'
623 bld.SAMBA_SUBSYSTEM('RPC_NDR_MDSSVC',
624 source='gen_ndr/ndr_mdssvc_c.c',
625 public_deps='dcerpc-binding NDR_MDSSVC'
628 # a grouping library for NDR subsystems that may be used by more than one target
629 bld.SAMBA_LIBRARY('ndr-samba',
630 source=[],
631 deps='''NDR_DRSBLOBS NDR_DRSUAPI NDR_IDMAP NDR_NTLMSSP NDR_NEGOEX NDR_SCHANNEL NDR_MGMT
632 NDR_DNSSERVER NDR_EPMAPPER NDR_XATTR NDR_UNIXINFO NDR_NAMED_PIPE_AUTH NDR_DCOM
633 NDR_NTPRINTING NDR_FSRVP NDR_WITNESS NDR_MDSSVC NDR_OPEN_FILES NDR_SMBXSRV
634 NDR_KRB5CCACHE''',
635 private_library=True,
636 grouping_library=True
639 # a grouping library for RPC_NDR subsystems that may be used by more than one target
640 bld.SAMBA_LIBRARY('dcerpc-samba',
641 source='',
642 deps='''RPC_NDR_LSA RPC_NDR_SAMR RPC_NDR_NETLOGON RPC_NDR_EVENTLOG
643 RPC_NDR_DFS RPC_NDR_NTSVCS RPC_NDR_SVCCTL RPC_NDR_INITSHUTDOWN
644 RPC_NDR_WKSSVC RPC_NDR_SRVSVC RPC_NDR_WINREG RPC_NDR_ECHO RPC_NDR_EPMAPPER
645 RPC_NDR_ATSVC RPC_NDR_SPOOLSS RPC_NDR_DNSSERVER''',
646 public_deps='ndr-standard',
647 private_library=True,
648 grouping_library=True
651 bld.SAMBA_SUBSYSTEM('NDR_MISC',
652 source='',
653 deps='ndr')
655 bld.SAMBA_LIBRARY('ndr',
656 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',
657 pc_files='ndr.pc',
658 public_deps='samba-errors talloc samba-util util_str_hex',
659 public_headers='gen_ndr/misc.h gen_ndr/ndr_misc.h ndr/libndr.h:ndr.h',
660 header_path= [('*gen_ndr*', 'gen_ndr')],
661 vnum='3.0.0',
662 abi_directory='ABI',
663 abi_match='!ndr_table_* ndr_* GUID_* _ndr_pull_error* _ndr_push_error*',
666 bld.SAMBA_LIBRARY('dcerpc-binding',
667 source='''
668 rpc/dcerpc_error.c
669 rpc/binding.c
670 rpc/dcerpc_util.c
671 rpc/binding_handle.c
672 ''',
673 deps='ndr tevent NDR_DCERPC LIBTSOCKET tevent-util',
674 pc_files=[],
675 public_headers='rpc/rpc_common.h',
676 vnum='0.0.1')
678 bld.SAMBA_LIBRARY('dcerpc-pkt-auth',
679 private_library=True,
680 source='''
681 rpc/dcerpc_pkt_auth.c
682 ''',
683 deps='dcerpc-binding gensec')
685 bld.SAMBA_SUBSYSTEM('DCERPC_SERVER_NETLOGON',
686 source='''
687 rpc/server/netlogon/schannel_util.c
688 ''',
689 deps='''
690 talloc
691 util_str_escape
692 samba-hostconfig
693 NDR_NETLOGON
694 dcerpc-server-core
695 ''')
697 bld.SAMBA_LIBRARY('dcerpc-server-core',
698 source='''
699 rpc/dcesrv_core.c
700 rpc/dcesrv_auth.c
701 rpc/dcesrv_mgmt.c
702 rpc/dcesrv_reply.c
703 rpc/dcesrv_handles.c
704 ''',
705 deps='''
707 dcerpc-binding
708 samba-util-core
709 gnutls
710 GNUTLS_HELPERS
711 dcerpc-pkt-auth
712 ''',
713 pc_files=[],
714 public_headers='rpc/dcesrv_core.h',
715 autoproto='rpc/dcesrv_core_proto.h',
716 vnum='0.0.1')
718 bld.SAMBA_SUBSYSTEM('DCERPC_HELPER',
719 source='rpc/dcerpc_helper.c',
720 public_deps='''
721 samba-hostconfig
722 samba-security
723 gnutls
724 GNUTLS_HELPERS
725 ''')
727 bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
728 source='gen_ndr/ndr_winbind.c',
729 public_deps='ndr NDR_LSA'
732 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
733 source='gen_ndr/ndr_winbind_c.c',
734 public_deps='dcerpc NDR_WINBIND'
737 bld.SAMBA_SUBSYSTEM('NDR_FSRVP_STATE',
738 source='gen_ndr/ndr_fsrvp_state.c',
739 public_deps='ndr'
742 # Cmocka tests
745 bld.SAMBA_BINARY('test_ndr_macros',
746 source='tests/test_ndr_macros.c',
747 deps='''
748 cmocka
750 ''',
751 for_selftest=True)
753 bld.SAMBA_BINARY('test_ndr_string',
754 source='tests/test_ndr_string.c',
755 deps='''
756 cmocka
757 talloc
759 ''',
760 for_selftest=True)
762 bld.SAMBA_BINARY('test_ndr',
763 source='tests/test_ndr.c',
764 deps='''
765 cmocka
767 ''',
768 for_selftest=True)
770 bld.SAMBA_BINARY('test_ndr_dns_nbt',
771 source='tests/test_ndr_dns_nbt.c',
772 deps='''
773 cmocka
775 ndr_nbt
776 ''',
777 for_selftest=True)