torture: NULL out after talloc_free
[Samba.git] / source3 / rpc_server / wscript_build
blob481d39c36871d1a1b98d89c3d3673c27b43c5550
1 #!/usr/bin/env python
3 ### RPC_SERVER
4 bld.SAMBA3_SUBSYSTEM('rpc',
5 source='',
6 deps='RPC_PIPE_REGISTER')
8 bld.SAMBA3_SUBSYSTEM('RPC_CONFIG',
9 source='rpc_config.c',
10 deps='talloc')
12 bld.SAMBA3_SUBSYSTEM('RPC_NCACN_NP',
13 source='rpc_ncacn_np.c rpc_handles.c rpc_contexts.c',
14 deps='RPC_CONFIG auth auth_sam_reply RPC_PIPE_REGISTER npa_tstream')
16 bld.SAMBA3_SUBSYSTEM('RPC_SERVER_LOOP',
17 source='rpc_server.c',
18 deps='samba-util')
20 bld.SAMBA3_SUBSYSTEM('RPC_CRYPTO',
21 source='dcesrv_auth_generic.c',
22 deps = 'KRB5_PAC')
24 bld.SAMBA3_SUBSYSTEM('RPC_PIPE_REGISTER',
25 source='srv_pipe_register.c',
26 deps='samba-util')
28 bld.SAMBA3_SUBSYSTEM('SRV_ACCESS_CHECK',
29 source='srv_access_check.c',
30 deps='samba-util')
32 bld.SAMBA3_SUBSYSTEM('RPC_SERVER',
33 source='srv_pipe_hnd.c srv_pipe.c',
34 deps='''
35 RPC_CONFIG
36 RPC_NCACN_NP
37 RPC_SERVER_LOOP
38 RPC_CRYPTO
39 NDR_NAMED_PIPE_AUTH
40 ''')
42 ### RPC_SERVICES
43 bld.SAMBA3_SUBSYSTEM('RPC_DSSETUP',
44 source='''dssetup/srv_dssetup_nt.c
45 ../../librpc/gen_ndr/srv_dssetup.c''',
46 deps='samba-util')
48 bld.SAMBA3_SUBSYSTEM('RPC_EPMAPPER',
49 source='''epmapper/srv_epmapper.c
50 ../../librpc/gen_ndr/srv_epmapper.c''',
51 deps='samba-util')
53 bld.SAMBA3_SUBSYSTEM('RPC_EVENTLOG',
54 source='''eventlog/srv_eventlog_nt.c
55 eventlog/srv_eventlog_reg.c
56 ../../librpc/gen_ndr/srv_eventlog.c''',
57 deps='LIBEVENTLOG LIBCLI_WINREG_INTERNAL')
59 bld.SAMBA3_SUBSYSTEM('RPC_INITSHUTDOWN',
60 source='''initshutdown/srv_initshutdown_nt.c
61 ../../librpc/gen_ndr/srv_initshutdown.c''',
62 deps='samba-util')
64 bld.SAMBA3_SUBSYSTEM('RPC_LSARPC',
65 source='''lsa/srv_lsa_nt.c
66 ../../librpc/gen_ndr/srv_lsa.c''',
67 deps='SRV_ACCESS_CHECK LIBLSA')
69 bld.SAMBA3_SUBSYSTEM('RPC_NETDFS',
70 source='''dfs/srv_dfs_nt.c
71 ../../librpc/gen_ndr/srv_dfs.c''',
72 deps='samba-util')
74 bld.SAMBA3_SUBSYSTEM('RPC_NETLOGON',
75 source='''netlogon/srv_netlog_nt.c
76 ../../librpc/gen_ndr/srv_netlogon.c''')
78 bld.SAMBA3_SUBSYSTEM('RPC_NTSVCS',
79 source='''ntsvcs/srv_ntsvcs_nt.c
80 ../../librpc/gen_ndr/srv_ntsvcs.c''',
81 deps='samba-util')
83 bld.SAMBA3_SUBSYSTEM('RPC_RPCECHO',
84 source='''echo/srv_echo_nt.c
85 ../../librpc/gen_ndr/srv_echo.c''',
86 deps='samba-util')
88 bld.SAMBA3_SUBSYSTEM('RPC_SAMR',
89 source='''samr/srv_samr_nt.c
90 samr/srv_samr_util.c
91 samr/srv_samr_chgpasswd.c
92 ../../librpc/gen_ndr/srv_samr.c''',
93 deps='PLAINTEXT_AUTH SRV_ACCESS_CHECK')
95 bld.SAMBA3_SUBSYSTEM('RPC_SPOOLSS',
96 source='''spoolss/srv_spoolss_nt.c
97 ../../librpc/gen_ndr/srv_spoolss.c
98 spoolss/srv_spoolss_util.c''',
99 allow_warnings=True,
100 deps='PRINTING PRINTBACKEND LIBCLI_WINREG_INTERNAL')
102 bld.SAMBA3_SUBSYSTEM('RPC_SRVSVC',
103 source='''srvsvc/srv_srvsvc_nt.c
104 ../../librpc/gen_ndr/srv_srvsvc.c''',
105 deps='samba-util tdb')
107 bld.SAMBA3_SUBSYSTEM('RPC_SVCCTL',
108 source='''svcctl/srv_svcctl_nt.c
109 svcctl/srv_svcctl_reg.c
110 ../../librpc/gen_ndr/srv_svcctl.c''',
111 deps='SERVICES LIBCLI_WINREG_INTERNAL')
113 bld.SAMBA3_SUBSYSTEM('RPC_WINREG',
114 source='''winreg/srv_winreg_nt.c
115 ../../librpc/gen_ndr/srv_winreg.c''',
116 deps='REG_FULL REGFIO REG_API_REGF NDR_PERFCOUNT')
118 bld.SAMBA3_SUBSYSTEM('RPC_WKSSVC',
119 source='''wkssvc/srv_wkssvc_nt.c
120 ../../librpc/gen_ndr/srv_wkssvc.c''',
121 deps='LIBNET')
123 # RPC_SERVICE
124 bld.SAMBA3_SUBSYSTEM('RPC_SERVER_REGISTER',
125 source='rpc_ep_register.c ../librpc/rpc/dcerpc_ep.c',
126 deps='samba-util')
128 bld.SAMBA3_SUBSYSTEM('RPC_SERVICE',
129 source='rpc_service_setup.c',
130 deps='''
131 RPC_SERVER
132 RPC_SERVER_REGISTER
133 RPC_SAMR
134 RPC_LSARPC
135 RPC_WINREG
136 RPC_INITSHUTDOWN
137 RPC_DSSETUP
138 RPC_WKSSVC
139 RPC_SVCCTL
140 RPC_NTSVCS
141 RPC_NETLOGON
142 RPC_NETDFS
143 RPC_SRVSVC
144 RPC_SPOOLSS
145 RPC_EVENTLOG
146 RPC_RPCECHO
147 RPC_SERVER
148 RPC_EPMAPPER
149 ''')
151 # RPC_DAEMONS
152 bld.SAMBA3_SUBSYSTEM('RPC_SOCK_HELPER',
153 source='rpc_sock_helper.c',
154 deps='RPC_SERVER_REGISTER')
156 bld.SAMBA3_SUBSYSTEM('EPMD',
157 source='epmd.c',
158 deps='samba-util')
160 bld.SAMBA3_SUBSYSTEM('LSASD',
161 source='lsasd.c',
162 deps='RPC_SOCK_HELPER samba-util')