5d21d5e3408b4f3c277b503b45b2ea3ca22a59bc
[samba.git] / source3 / rpc_server / wscript_build
1 #!/usr/bin/env python
2
3 RPC_LSARPC_SRC = '''lsa/srv_lsa_nt.c ../../librpc/gen_ndr/srv_lsa.c'''
4 RPC_NETLOGON_SRC = '''netlogon/srv_netlog_nt.c ../../librpc/gen_ndr/srv_netlogon.c'''
5 RPC_SAMR_SRC = '''samr/srv_samr_nt.c
6                samr/srv_samr_util.c
7                samr/srv_samr_chgpasswd.c
8                ../../librpc/gen_ndr/srv_samr.c'''
9 RPC_INITSHUTDOWN_SRC = '''initshutdown/srv_initshutdown_nt.c ../../librpc/gen_ndr/srv_initshutdown.c'''
10 RPC_WINREG_SRC = '''winreg/srv_winreg_nt.c ../../librpc/gen_ndr/srv_winreg.c'''
11 RPC_DSSETUP_SRC = '''dssetup/srv_dssetup_nt.c ../../librpc/gen_ndr/srv_dssetup.c'''
12 RPC_SRVSVC_SRC = '''srvsvc/srv_srvsvc_nt.c ../../librpc/gen_ndr/srv_srvsvc.c'''
13 RPC_WKSSVC_SRC = '''wkssvc/srv_wkssvc_nt.c ../../librpc/gen_ndr/srv_wkssvc.c'''
14 RPC_SVCCTL_SRC = '''svcctl/srv_svcctl_nt.c svcctl/srv_svcctl_reg.c ../../librpc/gen_ndr/srv_svcctl.c'''
15 RPC_NTSVCS_SRC = '''ntsvcs/srv_ntsvcs_nt.c ../../librpc/gen_ndr/srv_ntsvcs.c'''
16 RPC_NETDFS_SRC = '''dfs/srv_dfs_nt.c ../../librpc/gen_ndr/srv_dfs.c'''
17 RPC_SPOOLSS_SRC = '''spoolss/srv_spoolss_nt.c ../../librpc/gen_ndr/srv_spoolss.c
18                      spoolss/srv_spoolss_util.c'''
19 RPC_EVENTLOG_SRC = '''eventlog/srv_eventlog_nt.c eventlog/srv_eventlog_reg.c ../../librpc/gen_ndr/srv_eventlog.c'''
20 RPC_RPCECHO_SRC = '''echo/srv_echo_nt.c ../../librpc/gen_ndr/srv_echo.c'''
21 RPC_EPMAPPER_SRC = '''epmapper/srv_epmapper.c ../../librpc/gen_ndr/srv_epmapper.c'''
22
23 bld.SAMBA3_SUBSYSTEM('rpc',
24                     source='',
25                     deps='RPC_PIPE_REGISTER',
26                     vars=locals())
27
28 bld.SAMBA3_SUBSYSTEM('RPC_NCACN_NP',
29                     source='rpc_ncacn_np.c rpc_handles.c rpc_contexts.c',
30                     deps='auth_sam_reply RPC_PIPE_REGISTER AUTH_COMMON npa_tstream')
31
32 bld.SAMBA3_SUBSYSTEM('RPC_SERVICE',
33                     source='rpc_server.c',
34                     deps='samba-util')
35
36 bld.SAMBA3_SUBSYSTEM('RPC_CRYPTO',
37                      source='dcesrv_ntlmssp.c dcesrv_gssapi.c dcesrv_spnego.c',
38                      deps = 'KRB5_PAC')
39
40 bld.SAMBA3_SUBSYSTEM('RPC_PIPE_REGISTER',
41                     source='srv_pipe_register.c',
42                     deps='samba-util')
43
44 bld.SAMBA3_SUBSYSTEM('RPC_SERVER_REGISTER',
45                     source='rpc_ep_setup.c ../librpc/rpc/dcerpc_ep.c',
46                     deps='samba-util')
47
48 bld.SAMBA3_SUBSYSTEM('EPMD',
49                     source='epmd.c',
50                     deps='samba-util')
51
52 bld.SAMBA3_SUBSYSTEM('SRV_ACCESS_CHECK',
53                     source='srv_access_check.c',
54                     deps='samba-util')
55
56 bld.SAMBA3_SUBSYSTEM('RPC_SAMR',
57                     source=RPC_SAMR_SRC,
58                     deps='PLAINTEXT_AUTH SRV_ACCESS_CHECK',
59                     vars=locals())
60
61 bld.SAMBA3_SUBSYSTEM('RPC_LSARPC',
62                     source=RPC_LSARPC_SRC,
63                     deps='SRV_ACCESS_CHECK',
64                     vars=locals())
65
66 bld.SAMBA3_SUBSYSTEM('RPC_WINREG',
67                     source=RPC_WINREG_SRC,
68                     deps='REGFIO REG_API_REGF NDR_PERFCOUNT',
69                     vars=locals())
70
71 bld.SAMBA3_SUBSYSTEM('RPC_INITSHUTDOWN',
72                     source=RPC_INITSHUTDOWN_SRC,
73                     deps='samba-util',
74                     vars=locals())
75
76 bld.SAMBA3_SUBSYSTEM('RPC_DSSETUP',
77                     source=RPC_DSSETUP_SRC,
78                     deps='samba-util',
79                     vars=locals())
80
81 bld.SAMBA3_SUBSYSTEM('RPC_WKSSVC',
82                     source=RPC_WKSSVC_SRC,
83                     deps='LIBNET',
84                     vars=locals())
85
86 bld.SAMBA3_SUBSYSTEM('RPC_SVCCTL',
87                     source=RPC_SVCCTL_SRC,
88                     deps='SERVICES LIBCLI_WINREG',
89                     vars=locals())
90
91 bld.SAMBA3_SUBSYSTEM('RPC_NTSVCS',
92                     source=RPC_NTSVCS_SRC,
93                     deps='samba-util',
94                     vars=locals())
95
96 bld.SAMBA3_SUBSYSTEM('RPC_NETLOGON',
97                     source=RPC_NETLOGON_SRC,
98                      deps='RPC_NCACN_NP',
99                     vars=locals())
100
101 bld.SAMBA3_SUBSYSTEM('RPC_NETDFS',
102                     source=RPC_NETDFS_SRC,
103                     deps='samba-util',
104                     vars=locals())
105
106 bld.SAMBA3_SUBSYSTEM('RPC_SRVSVC',
107                     source=RPC_SRVSVC_SRC,
108                     deps='samba-util',
109                     vars=locals())
110
111 bld.SAMBA3_SUBSYSTEM('RPC_SPOOLSS',
112                     source=RPC_SPOOLSS_SRC,
113                     deps='cups PRINTING PRINTBACKEND LIBCLI_WINREG RPC_NCACN_NP',
114                     vars=locals())
115
116 bld.SAMBA3_SUBSYSTEM('RPC_EVENTLOG',
117                     source=RPC_EVENTLOG_SRC,
118                     deps='LIBEVENTLOG LIBCLI_WINREG',
119                     vars=locals())
120
121 bld.SAMBA3_SUBSYSTEM('RPC_RPCECHO',
122                     source=RPC_RPCECHO_SRC,
123                     deps='samba-util',
124                     vars=locals())
125
126 bld.SAMBA3_SUBSYSTEM('RPC_EPMAPPER',
127                     source=RPC_EPMAPPER_SRC,
128                     deps='samba-util',
129                     vars=locals())
130
131 bld.SAMBA3_SUBSYSTEM('RPC_SERVER',
132                     source='srv_pipe_hnd.c srv_pipe.c',
133                     deps='''RPC_NCACN_NP RPC_SERVICE RPC_CRYPTO
134                           RPC_SAMR RPC_LSARPC RPC_WINREG RPC_INITSHUTDOWN
135                           RPC_DSSETUP RPC_WKSSVC RPC_SVCCTL RPC_NTSVCS
136                           RPC_NETLOGON RPC_NETDFS RPC_SRVSVC RPC_SPOOLSS
137                           RPC_EVENTLOG RPC_RPCECHO RPC_SERVER RPC_EPMAPPER
138                           RPC_SERVER_REGISTER NDR_NAMED_PIPE_AUTH''')