WHATSNEW.txt: document "veto files" and "hide files"
[samba4-gss.git] / librpc / wscript_build
blobb1765863d9c1cd366a2506c1c4f153e8712ba8f6
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_WZCSVC',
154 source='gen_ndr/ndr_wzcsvc.c',
155 public_deps='ndr'
158 bld.SAMBA_SUBSYSTEM('NDR_BROWSER',
159 source='gen_ndr/ndr_browser.c',
160 public_deps='ndr NDR_SRVSVC'
163 bld.SAMBA_SUBSYSTEM('NDR_W32TIME',
164 source='gen_ndr/ndr_w32time.c',
165 public_deps='ndr'
168 bld.SAMBA_SUBSYSTEM('NDR_SCERPC',
169 source='gen_ndr/ndr_scerpc.c',
170 public_deps='ndr'
173 bld.SAMBA_SUBSYSTEM('NDR_SERVER_ID',
174 source='gen_ndr/ndr_server_id.c',
175 deps='ndr',
176 public_headers='gen_ndr/server_id.h',
177 header_path='gen_ndr'
180 bld.SAMBA_SUBSYSTEM('NDR_TRKWKS',
181 source='gen_ndr/ndr_trkwks.c',
182 public_deps='ndr'
185 bld.SAMBA_SUBSYSTEM('NDR_KEYSVC',
186 source='gen_ndr/ndr_keysvc.c',
187 public_deps='ndr'
190 bld.SAMBA_SUBSYSTEM('NDR_RAP',
191 source='gen_ndr/ndr_rap.c ndr/ndr_rap.c',
192 public_deps='ndr'
195 bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
196 source='gen_ndr/ndr_idmap.c',
197 public_deps='ndr ndr-standard'
200 bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
201 source='gen_ndr/ndr_notify.c',
202 public_deps='ndr ndr-standard NDR_SERVER_ID NDR_FILE_ID'
205 bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
206 source='ndr/ndr_ntlmssp.c gen_ndr/ndr_ntlmssp.c',
207 public_deps='ndr ndr-standard'
210 bld.SAMBA_SUBSYSTEM('NDR_NEGOEX',
211 source='ndr/ndr_negoex.c gen_ndr/ndr_negoex.c',
212 public_deps='ndr'
215 bld.SAMBA_SUBSYSTEM('NDR_DNSP',
216 source='gen_ndr/ndr_dnsp.c ndr/ndr_dnsp.c',
217 public_deps='ndr'
220 bld.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
221 source='gen_ndr/ndr_nfs4acl.c',
222 public_deps='ndr NDR_SECURITY'
225 bld.SAMBA_SUBSYSTEM('NDR_NTPRINTING',
226 source='gen_ndr/ndr_ntprinting.c ndr/ndr_ntprinting.c',
227 public_deps='ndr'
230 bld.SAMBA_SUBSYSTEM('NDR_SAMR',
231 source='gen_ndr/ndr_samr.c',
232 public_deps='ndr NDR_SECURITY NDR_LSA'
235 bld.SAMBA_SUBSYSTEM('NDR_LSA',
236 source='gen_ndr/ndr_lsa.c',
237 public_deps='ndr NDR_SECURITY'
240 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
241 source='gen_ndr/ndr_security.c ndr/ndr_sec_helper.c',
242 deps='ndr samba-security',
243 public_headers='gen_ndr/security.h',
244 header_path='gen_ndr'
247 bld.SAMBA_SUBSYSTEM('NDR_SMB_ACL',
248 source='gen_ndr/ndr_smb_acl.c',
249 deps='ndr',
252 bld.SAMBA_SUBSYSTEM('NDR_SVCCTL',
253 source='gen_ndr/ndr_svcctl.c ndr/ndr_svcctl.c',
254 public_deps='ndr NDR_SECURITY'
257 bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
258 source='gen_ndr/ndr_srvsvc.c',
259 public_deps='ndr NDR_SECURITY NDR_SVCCTL'
262 bld.SAMBA_SUBSYSTEM('NDR_NETLOGON',
263 source='gen_ndr/ndr_netlogon.c ndr/ndr_netlogon.c',
264 public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR ndr_nbt'
267 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
268 source='gen_ndr/ndr_eventlog.c',
269 public_deps='ndr NDR_SECURITY NDR_LSA'
272 bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG6',
273 source='gen_ndr/ndr_eventlog6.c',
274 public_deps='ndr'
277 bld.SAMBA_SUBSYSTEM('NDR_NTSVCS',
278 source='gen_ndr/ndr_ntsvcs.c',
279 public_deps='ndr'
282 bld.SAMBA_SUBSYSTEM('NDR_WKSSVC',
283 source='gen_ndr/ndr_wkssvc.c',
284 public_deps='ndr NDR_SECURITY NDR_SRVSVC NDR_LSA'
287 bld.SAMBA_SUBSYSTEM('NDR_ECHO',
288 source='gen_ndr/ndr_echo.c',
289 public_deps='ndr'
292 bld.SAMBA_SUBSYSTEM('NDR_INITSHUTDOWN',
293 source='gen_ndr/ndr_initshutdown.c',
294 public_deps='ndr NDR_LSA'
297 bld.SAMBA_SUBSYSTEM('NDR_COMPRESSION',
298 source='ndr/ndr_compression.c',
299 public_deps='samba-errors ndr',
300 deps='z LZXPRESS'
303 bld.SAMBA_SUBSYSTEM('NDR_FSRVP',
304 source='gen_ndr/ndr_fsrvp.c',
305 public_deps='ndr'
308 bld.SAMBA_GENERATOR('gen_wsp_props',
309 source='../source4/scripting/bin/gen_wsp_props.py wsp/allprops-from-ms-wsp-spec.csv wsp/extra-props.csv',
310 target='wsp/wsp_props_gen.c',
311 group='build_source',
312 rule='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${SRC[2].abspath(env)}'
315 bld.SAMBA_SUBSYSTEM('NDR_WSP',
316 source='gen_ndr/ndr_wsp.c wsp/wsp_helper.c wsp/wsp_props_gen.c',
317 public_deps='ndr gen_wsp_props'
320 bld.SAMBA_SUBSYSTEM('NDR_WSP_DATA',
321 source='gen_ndr/ndr_wsp_data.c',
322 public_deps='ndr'
325 bld.SAMBA_SUBSYSTEM('WSP_UTIL',
326 source='wsp/wsp_util.c wsp/wsp_props_gen.c',
327 public_deps='ndr gen_wsp_props'
330 bld.SAMBA_SUBSYSTEM('NDR_WITNESS',
331 source='gen_ndr/ndr_witness.c ndr/ndr_witness.c',
332 public_deps='ndr'
335 bld.SAMBA_SUBSYSTEM('NDR_CLUSAPI',
336 source='gen_ndr/ndr_clusapi.c',
337 public_deps='ndr NDR_WINREG'
340 bld.SAMBA_SUBSYSTEM('NDR_MDSSVC',
341 source='gen_ndr/ndr_mdssvc.c',
342 public_deps='ndr'
345 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
346 source='gen_ndr/ndr_dcerpc.c ndr/ndr_dcerpc.c',
347 public_deps='ndr',
348 public_headers='gen_ndr/ndr_dcerpc.h gen_ndr/dcerpc.h ndr/ndr_dcerpc.h',
349 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
352 bld.SAMBA_SUBSYSTEM('NDR_DRSUAPI',
353 source='ndr/ndr_drsuapi.c gen_ndr/ndr_drsuapi.c',
354 public_deps='ndr NDR_COMPRESSION NDR_SECURITY ndr-standard asn1util',
355 public_headers='gen_ndr/ndr_drsuapi.h gen_ndr/drsuapi.h ndr/ndr_drsuapi.h',
356 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
359 bld.SAMBA_SUBSYSTEM('NDR_DRSBLOBS',
360 source='ndr/ndr_drsblobs.c gen_ndr/ndr_drsblobs.c',
361 public_deps='ndr NDR_DRSUAPI',
362 public_headers='gen_ndr/ndr_drsblobs.h gen_ndr/drsblobs.h ndr/ndr_drsblobs.h',
363 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
366 bld.SAMBA_SUBSYSTEM('NDR_ODJ',
367 source='gen_ndr/ndr_ODJ.c ndr/ndr_ODJ.c',
368 public_deps='NDR_LSA NDR_NETLOGON NDR_SECURITY',
369 deps='ndr')
371 bld.SAMBA_SUBSYSTEM('NDR_KRB5PAC',
372 source='',
373 deps='ndr-krb5pac')
375 bld.SAMBA_LIBRARY('ndr-krb5pac',
376 source='ndr/ndr_krb5pac.c gen_ndr/ndr_krb5pac.c',
377 public_deps='ndr ndr-standard NDR_SECURITY NDR_CLAIMS',
378 public_headers='gen_ndr/krb5pac.h gen_ndr/ndr_krb5pac.h ndr/ndr_krb5pac.h',
379 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')],
380 pc_files='ndr_krb5pac.pc',
381 vnum='0.0.1'
384 bld.SAMBA_SUBSYSTEM('NDR_KRB5CCACHE',
385 source='gen_ndr/ndr_krb5ccache.c',
386 deps='ndr NDR_SECURITY ndr-standard asn1util'
389 bld.SAMBA_SUBSYSTEM('NDR_CLAIMS',
390 source='gen_ndr/ndr_claims.c ndr/ndr_claims.c',
391 deps='ndr NDR_COMPRESSION LZXPRESS')
393 bld.SAMBA_SUBSYSTEM('NDR_GKDI',
394 source='gen_ndr/ndr_gkdi.c',
395 deps='ndr')
397 bld.SAMBA_SUBSYSTEM('NDR_GMSA',
398 source='gen_ndr/ndr_gmsa.c',
399 deps='ndr')
401 bld.SAMBA_LIBRARY('ndr-standard',
402 source='',
403 vnum='0.0.1',
404 pc_files='ndr_standard.pc',
405 deps='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON
406 NDR_EVENTLOG NDR_EVENTLOG6 NDR_DFS
407 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
408 NDR_ECHO security NDR_DNS NDR_DNSP NDR_ATSVC NDR_SPOOLSS NDR_DSSETUP
409 NDR_SERVER_ID NDR_NOTIFY''',
410 public_deps='ndr',
411 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',
412 header_path='gen_ndr'
415 bld.SAMBA_SUBSYSTEM('NDR_XATTR',
416 source='ndr/ndr_xattr.c gen_ndr/ndr_xattr.c',
417 public_deps='ndr NDR_SECURITY'
420 bld.SAMBA_SUBSYSTEM('NDR_SMB3POSIX',
421 source='gen_ndr/ndr_smb3posix.c',
422 public_deps='ndr',
423 public_headers='gen_ndr/smb3posix.h')
425 bld.SAMBA_SUBSYSTEM('NDR_SMB2_LEASE_STRUCT',
426 source='gen_ndr/ndr_smb2_lease_struct.c',
427 public_deps='ndr',
428 public_headers='gen_ndr/smb2_lease_struct.h'
431 bld.SAMBA_SUBSYSTEM('NDR_QUOTA',
432 source='gen_ndr/ndr_quota.c',
433 public_deps='ndr',
436 bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
437 source='ndr/ndr_schannel.c gen_ndr/ndr_schannel.c',
438 public_deps='ndr ndr_nbt'
441 bld.SAMBA_SUBSYSTEM('NDR_NBT',
442 source='',
443 deps='ndr_nbt')
445 bld.SAMBA_LIBRARY('ndr_nbt',
446 source='gen_ndr/ndr_nbt.c ndr/ndr_nbt.c',
447 public_deps='ndr NDR_NBT_BUF NDR_SECURITY NDR_DNS',
448 public_headers='gen_ndr/nbt.h gen_ndr/ndr_nbt.h ndr/ndr_nbt.h',
449 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')],
450 pc_files='ndr_nbt.pc',
451 vnum='0.0.1'
454 bld.SAMBA_SUBSYSTEM('NDR_BACKUPKEY',
455 source='ndr/ndr_backupkey.c gen_ndr/ndr_backupkey.c',
456 public_deps='ndr NDR_SECURITY'
459 bld.SAMBA_SUBSYSTEM('NDR_PREG',
460 source='gen_ndr/ndr_preg.c ndr/ndr_preg.c',
461 public_deps='ndr'
464 bld.SAMBA_SUBSYSTEM('NDR_CAB',
465 source='''
466 gen_ndr/ndr_cab.c
467 ndr/ndr_cab.c
468 ''',
469 public_deps='ndr NDR_COMPRESSION')
471 bld.SAMBA_SUBSYSTEM('NDR_FILE_ID',
472 source='gen_ndr/ndr_file_id.c',
473 public_deps='ndr'
476 bld.SAMBA_SUBSYSTEM('NDR_MESSAGING',
477 source='gen_ndr/ndr_messaging.c',
478 public_deps='ndr NDR_SERVER_ID'
481 bld.SAMBA_SUBSYSTEM('NDR_WINSTATION',
482 source='gen_ndr/ndr_winstation.c',
483 public_deps='ndr'
486 bld.SAMBA_SUBSYSTEM('NDR_CONDITIONAL_ACE',
487 source='gen_ndr/ndr_conditional_ace.c',
488 public_deps='ndr'
491 bld.SAMBA_SUBSYSTEM('RPC_NDR_ATSVC',
492 source='gen_ndr/ndr_atsvc_c.c',
493 public_deps='dcerpc-binding NDR_ATSVC'
496 bld.SAMBA_SUBSYSTEM('RPC_NDR_ECHO',
497 source='gen_ndr/ndr_echo_c.c',
498 public_deps='dcerpc-binding NDR_ECHO'
501 bld.SAMBA_SUBSYSTEM('RPC_NDR_LSA',
502 source='gen_ndr/ndr_lsa_c.c',
503 public_deps='dcerpc-binding ndr-standard'
506 bld.SAMBA_SUBSYSTEM('RPC_NDR_SAMR',
507 source='gen_ndr/ndr_samr_c.c',
508 public_deps='dcerpc-binding NDR_SAMR'
511 bld.SAMBA_SUBSYSTEM('RPC_NDR_DFS',
512 source='gen_ndr/ndr_dfs_c.c',
513 public_deps='dcerpc-binding ndr-standard'
516 bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSAPI',
517 source='gen_ndr/ndr_frsapi_c.c',
518 public_deps='dcerpc-binding NDR_FRSAPI'
521 bld.SAMBA_SUBSYSTEM('RPC_NDR_DRSUAPI',
522 source='gen_ndr/ndr_drsuapi_c.c',
523 public_deps='dcerpc-binding NDR_DRSUAPI'
526 bld.SAMBA_SUBSYSTEM('RPC_NDR_UNIXINFO',
527 source='gen_ndr/ndr_unixinfo_c.c',
528 public_deps='dcerpc-binding NDR_UNIXINFO'
531 bld.SAMBA_SUBSYSTEM('RPC_NDR_BROWSER',
532 source='gen_ndr/ndr_browser_c.c',
533 public_deps='dcerpc-binding NDR_BROWSER'
536 bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
537 source='gen_ndr/ndr_spoolss_c.c',
538 public_deps='dcerpc-binding NDR_SPOOLSS'
541 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSPOOL',
542 source='gen_ndr/ndr_winspool_c.c',
543 public_deps='dcerpc-binding NDR_WINSPOOL'
546 bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',
547 source='gen_ndr/ndr_wkssvc_c.c',
548 public_deps='dcerpc-binding ndr-standard'
551 bld.SAMBA_SUBSYSTEM('RPC_NDR_SRVSVC',
552 source='gen_ndr/ndr_srvsvc_c.c',
553 public_deps='dcerpc-binding NDR_SRVSVC'
556 bld.SAMBA_SUBSYSTEM('RPC_NDR_SVCCTL',
557 source='gen_ndr/ndr_svcctl_c.c',
558 public_deps='dcerpc-binding ndr-standard',
559 public_headers='gen_ndr/ndr_svcctl_c.h ndr/ndr_svcctl.h',
560 header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')]
563 bld.SAMBA_SUBSYSTEM('RPC_NDR_EVENTLOG',
564 source='gen_ndr/ndr_eventlog_c.c',
565 public_deps='dcerpc-binding ndr-standard'
568 bld.SAMBA_SUBSYSTEM('RPC_NDR_EPMAPPER',
569 source='gen_ndr/ndr_epmapper_c.c',
570 public_deps='tevent NDR_EPMAPPER'
573 bld.SAMBA_SUBSYSTEM('RPC_NDR_DSSETUP',
574 source='gen_ndr/ndr_dssetup_c.c',
575 public_deps='dcerpc-binding NDR_DSSETUP'
578 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINREG',
579 source='gen_ndr/ndr_winreg_c.c',
580 public_deps='dcerpc-binding ndr-standard'
583 bld.SAMBA_SUBSYSTEM('RPC_NDR_INITSHUTDOWN',
584 source='gen_ndr/ndr_initshutdown_c.c',
585 public_deps='dcerpc-binding ndr-standard'
588 bld.SAMBA_SUBSYSTEM('RPC_NDR_MGMT',
589 source='gen_ndr/ndr_mgmt_c.c',
590 deps='tevent NDR_MGMT'
593 bld.SAMBA_SUBSYSTEM('RPC_NDR_NTSVCS',
594 source='gen_ndr/ndr_ntsvcs_c.c',
595 public_deps='dcerpc-binding ndr-standard'
598 bld.SAMBA_SUBSYSTEM('RPC_NDR_NETLOGON',
599 source='gen_ndr/ndr_netlogon_c.c',
600 public_deps='ndr-standard tevent'
603 bld.SAMBA_SUBSYSTEM('RPC_NDR_BACKUPKEY',
604 source='gen_ndr/ndr_backupkey_c.c',
605 public_deps='dcerpc-binding NDR_BACKUPKEY'
608 bld.SAMBA_SUBSYSTEM('RPC_NDR_DNSSERVER',
609 source='gen_ndr/ndr_dnsserver_c.c',
610 public_deps='dcerpc-binding ndr-standard'
613 bld.SAMBA_SUBSYSTEM('NDR_IOCTL',
614 source='gen_ndr/ndr_ioctl.c ndr/ndr_ioctl.c',
615 public_deps='ndr'
618 bld.SAMBA_SUBSYSTEM('RPC_NDR_FSRVP',
619 source='gen_ndr/ndr_fsrvp_c.c',
620 public_deps='dcerpc-binding NDR_FSRVP'
623 bld.SAMBA_SUBSYSTEM('RPC_NDR_WITNESS',
624 source='gen_ndr/ndr_witness_c.c',
625 public_deps='dcerpc-binding NDR_WITNESS'
628 bld.SAMBA_SUBSYSTEM('RPC_NDR_CLUSAPI',
629 source='gen_ndr/ndr_clusapi_c.c',
630 public_deps='dcerpc-binding NDR_CLUSAPI'
633 bld.SAMBA_SUBSYSTEM('RPC_NDR_MDSSVC',
634 source='gen_ndr/ndr_mdssvc_c.c',
635 public_deps='dcerpc-binding NDR_MDSSVC'
638 bld.SAMBA_SUBSYSTEM('RPC_NDR_GKDI',
639 source='gen_ndr/ndr_gkdi_c.c',
640 public_deps='dcerpc-binding NDR_GKDI'
643 # a grouping library for NDR subsystems that may be used by more than one target
644 bld.SAMBA_LIBRARY('ndr-samba',
645 source=[],
646 deps='''NDR_DRSBLOBS NDR_DRSUAPI NDR_IDMAP NDR_NTLMSSP NDR_NEGOEX NDR_SCHANNEL NDR_MGMT
647 NDR_DNSSERVER NDR_EPMAPPER NDR_XATTR NDR_UNIXINFO NDR_NAMED_PIPE_AUTH
648 NDR_NTPRINTING NDR_FSRVP NDR_WITNESS NDR_MDSSVC NDR_OPEN_FILES NDR_SMBXSRV
649 NDR_SMB3POSIX NDR_RPCD_WITNESS
650 NDR_KRB5CCACHE NDR_WSP NDR_GKDI NDR_GMSA''',
651 private_library=True,
652 grouping_library=True
655 # a grouping library for RPC_NDR subsystems that may be used by more than one target
656 bld.SAMBA_LIBRARY('dcerpc-samba',
657 source='',
658 deps='''RPC_NDR_LSA RPC_NDR_SAMR RPC_NDR_NETLOGON RPC_NDR_EVENTLOG
659 RPC_NDR_DFS RPC_NDR_NTSVCS RPC_NDR_SVCCTL RPC_NDR_INITSHUTDOWN
660 RPC_NDR_WKSSVC RPC_NDR_SRVSVC RPC_NDR_WINREG RPC_NDR_ECHO RPC_NDR_EPMAPPER
661 RPC_NDR_ATSVC RPC_NDR_SPOOLSS RPC_NDR_DNSSERVER RPC_NDR_GKDI''',
662 public_deps='ndr-standard',
663 private_library=True,
664 grouping_library=True
667 bld.SAMBA_SUBSYSTEM('NDR_MISC',
668 source='',
669 deps='ndr')
671 bld.SAMBA_LIBRARY('ndr',
672 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',
673 pc_files='ndr.pc',
674 public_deps='samba-errors talloc samba-util util_str_hex',
675 public_headers='gen_ndr/misc.h gen_ndr/ndr_misc.h ndr/libndr.h:ndr.h',
676 header_path= [('*gen_ndr*', 'gen_ndr')],
677 vnum='5.0.0',
678 abi_directory='ABI',
679 abi_match='!ndr_table_* ndr_* GUID_* _ndr_pull_error* _ndr_push_error*',
682 bld.SAMBA_LIBRARY('dcerpc-binding',
683 source='''
684 rpc/dcerpc_error.c
685 rpc/binding.c
686 rpc/dcerpc_util.c
687 rpc/binding_handle.c
688 ''',
689 deps='ndr tevent NDR_DCERPC LIBTSOCKET tevent-util',
690 pc_files=[],
691 public_headers='rpc/rpc_common.h',
692 vnum='0.0.1')
694 bld.SAMBA_LIBRARY('dcerpc-pkt-auth',
695 private_library=True,
696 source='''
697 rpc/dcerpc_pkt_auth.c
698 ''',
699 deps='dcerpc-binding gensec')
701 bld.SAMBA_SUBSYSTEM('DCERPC_SERVER_NETLOGON',
702 source='''
703 rpc/server/netlogon/schannel_util.c
704 ''',
705 deps='''
706 talloc
707 util_str_escape
708 samba-hostconfig
709 NDR_NETLOGON
710 dcerpc-server-core
711 ''')
713 bld.SAMBA_LIBRARY('dcerpc-server-core',
714 source='''
715 rpc/dcesrv_core.c
716 rpc/dcesrv_auth.c
717 rpc/dcesrv_mgmt.c
718 rpc/dcesrv_reply.c
719 rpc/dcesrv_handles.c
720 ''',
721 deps='''
723 dcerpc-binding
724 samba-util-core
725 gnutls
726 GNUTLS_HELPERS
727 dcerpc-pkt-auth
728 ''',
729 pc_files=[],
730 public_headers='rpc/dcesrv_core.h',
731 autoproto='rpc/dcesrv_core_proto.h',
732 vnum='0.0.1')
734 bld.SAMBA_SUBSYSTEM('DCERPC_HELPER',
735 source='rpc/dcerpc_helper.c',
736 public_deps='''
737 samba-hostconfig
738 samba-security
739 gnutls
740 GNUTLS_HELPERS
741 ''')
743 bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
744 source='gen_ndr/ndr_winbind.c',
745 public_deps='ndr NDR_LSA'
748 bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
749 source='gen_ndr/ndr_winbind_c.c',
750 public_deps='dcerpc NDR_WINBIND'
753 bld.SAMBA_SUBSYSTEM('NDR_FSRVP_STATE',
754 source='gen_ndr/ndr_fsrvp_state.c',
755 public_deps='ndr'
758 # Cmocka tests
761 bld.SAMBA_BINARY('test_ndr_macros',
762 source='tests/test_ndr_macros.c',
763 deps='''
764 cmocka
766 ''',
767 for_selftest=True)
769 bld.SAMBA_BINARY('test_ndr_string',
770 source='tests/test_ndr_string.c',
771 deps='''
772 cmocka
773 talloc
775 ''',
776 for_selftest=True)
778 bld.SAMBA_BINARY('test_ndr',
779 source='tests/test_ndr.c',
780 deps='''
781 cmocka
783 ''',
784 for_selftest=True)
786 bld.SAMBA_BINARY('test_ndr_dns_nbt',
787 source='tests/test_ndr_dns_nbt.c',
788 deps='''
789 cmocka
791 ndr_nbt
792 ''',
793 for_selftest=True)
795 bld.SAMBA_BINARY(
796 'test_ndr_gmsa',
797 source='tests/test_ndr_gmsa.c',
798 deps='''
799 cmocka
800 talloc
801 NDR_GMSA
802 ''',
803 for_selftest=True,