3dec6ee3f5b0914f2fa0f695733e550d87181079
[samba.git] / source3 / rpc_server / wscript_build
1 #!/usr/bin/env python
2
3 ### RPC_SERVER
4 bld.SAMBA3_SUBSYSTEM('rpc',
5                     source='',
6                     deps='RPC_PIPE_REGISTER')
7
8 bld.SAMBA3_SUBSYSTEM('RPC_CONFIG',
9                     source='rpc_config.c',
10                     deps='talloc')
11
12 bld.SAMBA3_SUBSYSTEM('RPC_NCACN_NP',
13                     source='rpc_ncacn_np.c rpc_handles.c rpc_contexts.c',
14                     deps='RPC_CONFIG auth common_auth RPC_PIPE_REGISTER npa_tstream')
15
16 bld.SAMBA3_SUBSYSTEM('RPC_SERVER_LOOP',
17                     source='rpc_server.c',
18                     deps='samba-util')
19
20 bld.SAMBA3_SUBSYSTEM('RPC_CRYPTO',
21                      source='dcesrv_auth_generic.c',
22                      deps = 'KRB5_PAC')
23
24 bld.SAMBA3_SUBSYSTEM('RPC_PIPE_REGISTER',
25                     source='srv_pipe_register.c',
26                     deps='samba-util')
27
28 bld.SAMBA3_SUBSYSTEM('SRV_ACCESS_CHECK',
29                     source='srv_access_check.c',
30                     deps='samba-util')
31
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                     ''')
41
42 bld.SAMBA3_SUBSYSTEM('RPC_MODULES',
43                     source='rpc_modules.c',
44                     deps='samba-util')
45
46 ### RPC_SERVICES
47 bld.SAMBA3_SUBSYSTEM('RPC_DSSETUP',
48                     source='''dssetup/srv_dssetup_nt.c
49                     ../../librpc/gen_ndr/srv_dssetup.c''',
50                     deps='samba-util')
51
52 bld.SAMBA3_SUBSYSTEM('RPC_EPMAPPER',
53                     source='''epmapper/srv_epmapper.c
54                     ../../librpc/gen_ndr/srv_epmapper.c''',
55                     deps='samba-util')
56
57 bld.SAMBA3_SUBSYSTEM('RPC_FSS_STATE',
58                     source='''fss/srv_fss_state.c''',
59                     deps='samba-util NDR_FSRVP_STATE')
60
61 bld.SAMBA3_SUBSYSTEM('RPC_FSS_AGENT',
62                     source='''fss/srv_fss_agent.c
63                     ../../librpc/gen_ndr/srv_fsrvp.c''',
64                     deps='samba-util RPC_FSS_STATE')
65
66 bld.SAMBA3_SUBSYSTEM('RPC_EVENTLOG',
67                     source='''eventlog/srv_eventlog_nt.c
68                     eventlog/srv_eventlog_reg.c
69                     ../../librpc/gen_ndr/srv_eventlog.c''',
70                     deps='LIBEVENTLOG LIBCLI_WINREG_INTERNAL')
71
72 bld.SAMBA3_SUBSYSTEM('RPC_INITSHUTDOWN',
73                     source='''initshutdown/srv_initshutdown_nt.c
74                     ../../librpc/gen_ndr/srv_initshutdown.c''',
75                     deps='samba-util')
76
77 bld.SAMBA3_SUBSYSTEM('RPC_LSARPC',
78                     source='''lsa/srv_lsa_nt.c
79                     ../../librpc/gen_ndr/srv_lsa.c''',
80                     deps='SRV_ACCESS_CHECK LIBLSA GNUTLS_HELPERS')
81
82 bld.SAMBA3_SUBSYSTEM('RPC_NETDFS',
83                     source='''dfs/srv_dfs_nt.c
84                     ../../librpc/gen_ndr/srv_dfs.c''',
85                     deps='samba-util')
86
87 bld.SAMBA3_SUBSYSTEM('RPC_NETLOGON',
88                      source='''netlogon/srv_netlog_nt.c
89                      ../../librpc/gen_ndr/srv_netlogon.c''')
90
91 bld.SAMBA3_SUBSYSTEM('RPC_NTSVCS',
92                     source='''ntsvcs/srv_ntsvcs_nt.c
93                     ../../librpc/gen_ndr/srv_ntsvcs.c''',
94                     deps='samba-util')
95
96 bld.SAMBA3_SUBSYSTEM('RPC_RPCECHO',
97                     source='''echo/srv_echo_nt.c
98                     ../../librpc/gen_ndr/srv_echo.c''',
99                     deps='samba-util')
100
101 bld.SAMBA3_SUBSYSTEM('RPC_SAMR',
102                     source='''samr/srv_samr_nt.c
103                     samr/srv_samr_util.c
104                     samr/srv_samr_chgpasswd.c
105                     ../../librpc/gen_ndr/srv_samr.c''',
106                     deps='PLAINTEXT_AUTH SRV_ACCESS_CHECK')
107
108 bld.SAMBA3_SUBSYSTEM('RPC_SPOOLSS',
109                     source='''spoolss/srv_spoolss_nt.c
110                     spoolss/srv_spoolss_util.c''',
111                     deps='PRINTING PRINTBACKEND LIBCLI_WINREG_INTERNAL')
112
113 bld.SAMBA3_SUBSYSTEM('RPC_IREMOTEWINSPOOL',
114                     source='''
115                     spoolss/srv_iremotewinspool_nt.c
116                     spoolss/srv_iremotewinspool.c
117                     ''',
118                     deps='RPC_SPOOLSS')
119
120 bld.SAMBA3_SUBSYSTEM('RPC_SRVSVC',
121                     source='''srvsvc/srv_srvsvc_nt.c
122                     ../../librpc/gen_ndr/srv_srvsvc.c''',
123                     deps='samba-util tdb')
124
125 bld.SAMBA3_SUBSYSTEM('RPC_SVCCTL',
126                     source='''svcctl/srv_svcctl_nt.c
127                     svcctl/srv_svcctl_reg.c
128                     ../../librpc/gen_ndr/srv_svcctl.c''',
129                     deps='SERVICES LIBCLI_WINREG_INTERNAL')
130
131 bld.SAMBA3_SUBSYSTEM('RPC_WINREG',
132                     source='''winreg/srv_winreg_nt.c
133                     ../../librpc/gen_ndr/srv_winreg.c''',
134                     deps='REG_FULL REGFIO NDR_PERFCOUNT')
135
136 bld.SAMBA3_SUBSYSTEM('RPC_WKSSVC',
137                     source='''wkssvc/srv_wkssvc_nt.c
138                     ../../librpc/gen_ndr/srv_wkssvc.c''',
139                     deps='LIBNET')
140
141 bld.SAMBA3_MODULE('rpc_mdssvc_module',
142                   subsystem='rpc',
143                   allow_undefined_symbols=True,
144                   source='''mdssvc/mdssvc.c
145                   mdssvc/dalloc.c
146                   mdssvc/marshalling.c
147                   mdssvc/sparql_mapping.c
148                   mdssvc/sparql_parser.y
149                   mdssvc/sparql_lexer.l
150                   mdssvc/srv_mdssvc_nt.c
151                   ../../librpc/gen_ndr/srv_mdssvc.c''',
152                   init_function='',
153                   deps='samba-util tevent-glib-glue ' + bld.env['libtracker'],
154                   internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_mdssvc_module'),
155                   enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_mdssvc_module'))
156
157 # RPC_SERVICE
158 bld.SAMBA3_SUBSYSTEM('RPC_SERVER_REGISTER',
159                     source='rpc_ep_register.c ../librpc/rpc/dcerpc_ep.c',
160                     deps='samba-util')
161
162 bld.SAMBA3_SUBSYSTEM('RPC_SERVICE',
163                     source='rpc_service_setup.c',
164                     deps='''
165                     rpc
166                     RPC_SERVER
167                     RPC_SERVER_REGISTER
168                     RPC_MODULES
169                     RPC_SAMR
170                     RPC_LSARPC
171                     RPC_WINREG
172                     RPC_INITSHUTDOWN
173                     RPC_DSSETUP
174                     RPC_WKSSVC
175                     RPC_SVCCTL
176                     RPC_NTSVCS
177                     RPC_NETLOGON
178                     RPC_NETDFS
179                     RPC_SRVSVC
180                     RPC_SPOOLSS
181                     RPC_IREMOTEWINSPOOL
182                     RPC_EVENTLOG
183                     RPC_RPCECHO
184                     RPC_SERVER
185                     RPC_EPMAPPER
186                     RPC_FSS_AGENT
187                     ''')
188
189 # RPC_DAEMONS
190 bld.SAMBA3_SUBSYSTEM('RPC_SOCK_HELPER',
191                     source='rpc_sock_helper.c',
192                     deps='RPC_SERVER_REGISTER')
193
194 bld.SAMBA3_SUBSYSTEM('EPMD',
195                     source='epmd.c',
196                     deps='samba-util')
197
198 bld.SAMBA3_SUBSYSTEM('LSASD',
199                     source='lsasd.c',
200                     deps='RPC_SOCK_HELPER samba-util')
201
202 bld.SAMBA3_SUBSYSTEM('FSSD',
203                     source='fssd.c',
204                     deps='samba-util')
205
206 bld.SAMBA3_SUBSYSTEM('MDSSD',
207                     source='mdssd.c',
208                     deps='RPC_SOCK_HELPER RPC_MODULES samba-util tevent-glib-glue',
209                     enabled=bld.env.with_spotlight)