getncchanges: fix highest_usn off by one calculation in get_nc_changes_add_links()
[sfrench/samba-autobuild/.git] / source4 / rpc_server / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_SUBSYSTEM('DCERPC_SHARE',
4         source='common/share_info.c',
5         autoproto='common/share.h',
6         deps='ldb',
7         enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER'),
8         )
9
10 bld.SAMBA_SUBSYSTEM('DCERPC_COMMON',
11         source='common/server_info.c common/forward.c common/reply.c dcesrv_auth.c common/loadparm.c',
12         autoproto='common/proto.h',
13         deps='ldb DCERPC_SHARE samba_server_gensec',
14         enabled=bld.AD_DC_BUILD_IS_ENABLED()
15         )
16
17 bld.SAMBA_LIBRARY('dcerpc_server',
18         source='dcerpc_server.c dcesrv_mgmt.c handles.c',
19         pc_files='dcerpc_server.pc',
20         deps='LIBCLI_AUTH ndr samba_server_gensec dcerpc_remote service auth',
21         public_deps='dcerpc',
22         autoproto='dcerpc_server_proto.h',
23         public_headers='dcerpc_server.h',
24         vnum='0.0.1',
25         enabled=bld.AD_DC_BUILD_IS_ENABLED()
26         )
27
28 bld.SAMBA_MODULE('dcerpc_rpcecho',
29         source='echo/rpc_echo.c',
30         subsystem='dcerpc_server',
31         init_function='dcerpc_server_rpcecho_init',
32         deps='ndr-standard events'
33         )
34
35
36 bld.SAMBA_MODULE('dcerpc_epmapper',
37         source='epmapper/rpc_epmapper.c',
38         subsystem='dcerpc_server',
39         init_function='dcerpc_server_epmapper_init',
40         deps='NDR_EPMAPPER'
41         )
42
43
44 bld.SAMBA_MODULE('dcerpc_remote',
45         source='remote/dcesrv_remote.c',
46         subsystem='dcerpc_server',
47         init_function='dcerpc_server_remote_init',
48         deps='LIBCLI_SMB ndr-table'
49         )
50
51
52 bld.SAMBA_MODULE('dcerpc_srvsvc',
53         source='srvsvc/dcesrv_srvsvc.c srvsvc/srvsvc_ntvfs.c',
54         autoproto='srvsvc/proto.h',
55         subsystem='dcerpc_server',
56         init_function='dcerpc_server_srvsvc_init',
57         deps='DCERPC_COMMON NDR_SRVSVC share ntvfs',
58         enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER')
59         )
60
61
62 bld.SAMBA_MODULE('dcerpc_wkssvc',
63         source='wkssvc/dcesrv_wkssvc.c',
64         subsystem='dcerpc_server',
65         init_function='dcerpc_server_wkssvc_init',
66         deps='DCERPC_COMMON ndr-standard'
67         )
68
69
70 bld.SAMBA_MODULE('dcerpc_unixinfo',
71         source='unixinfo/dcesrv_unixinfo.c',
72         subsystem='dcerpc_server',
73         init_function='dcerpc_server_unixinfo_init',
74         deps='DCERPC_COMMON samdb NDR_UNIXINFO LIBWBCLIENT_OLD'
75         )
76
77
78 bld.SAMBA_MODULE('dcesrv_samr',
79         source='samr/dcesrv_samr.c samr/samr_password.c',
80         autoproto='samr/proto.h',
81         subsystem='dcerpc_server',
82         init_function='dcerpc_server_samr_init',
83         deps='samdb DCERPC_COMMON ndr-standard auth4_sam'
84         )
85
86
87 bld.SAMBA_MODULE('dcerpc_winreg',
88         source='winreg/rpc_winreg.c',
89         subsystem='dcerpc_server',
90         init_function='dcerpc_server_winreg_init',
91         deps='registry ndr-standard',
92         internal_module=True,
93         enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER')
94         )
95
96
97 bld.SAMBA_MODULE('dcerpc_netlogon',
98         source='netlogon/dcerpc_netlogon.c',
99         subsystem='dcerpc_server',
100         init_function='dcerpc_server_netlogon_init',
101         deps='DCERPC_COMMON RPC_NDR_IRPC COMMON_SCHANNEL ndr-standard auth4_sam samba-hostconfig DSDB_MODULE_HELPERS'
102         )
103
104
105 bld.SAMBA_MODULE('dcerpc_lsarpc',
106         source='lsa/dcesrv_lsa.c lsa/lsa_init.c lsa/lsa_lookup.c',
107         autoproto='lsa/proto.h',
108         subsystem='dcerpc_server',
109         init_function='dcerpc_server_lsa_init',
110         deps='samdb DCERPC_COMMON ndr-standard LIBCLI_AUTH NDR_DSSETUP com_err samba-security UTIL_LSARPC'
111         )
112
113
114 if bld.CONFIG_SET('HAVE_GNUTLS_3_4_7'):
115         bld.SAMBA_MODULE('dcerpc_backupkey',
116                 source='backupkey/dcesrv_backupkey.c ',
117                 autoproto='backupkey/proto.h',
118                 subsystem='dcerpc_server',
119                 init_function='dcerpc_server_backupkey_init',
120                 deps='samdb DCERPC_COMMON NDR_BACKUPKEY RPC_NDR_BACKUPKEY gnutls',
121                 )
122 else:
123         bld.SAMBA_MODULE('dcerpc_backupkey',
124                 source='backupkey/dcesrv_backupkey_heimdal.c ',
125                 autoproto='backupkey/proto.h',
126                 subsystem='dcerpc_server',
127                 init_function='dcerpc_server_backupkey_init',
128                 deps='samdb DCERPC_COMMON NDR_BACKUPKEY RPC_NDR_BACKUPKEY krb5 hx509 hcrypto gnutls gcrypt',
129                 )
130
131
132 bld.SAMBA_MODULE('dcerpc_drsuapi',
133         source='drsuapi/dcesrv_drsuapi.c drsuapi/updaterefs.c drsuapi/getncchanges.c drsuapi/addentry.c drsuapi/writespn.c drsuapi/drsutil.c',
134         subsystem='dcerpc_server',
135         init_function='dcerpc_server_drsuapi_init',
136         deps='samdb DCERPC_COMMON NDR_DRSUAPI samba-security'
137         )
138
139
140 bld.SAMBA_MODULE('dcerpc_browser',
141         source='browser/dcesrv_browser.c',
142         subsystem='dcerpc_server',
143         init_function='dcerpc_server_browser_init',
144         deps='DCERPC_COMMON NDR_BROWSER'
145         )
146
147 bld.SAMBA_MODULE('dcerpc_eventlog',
148         source='eventlog/dcesrv_eventlog6.c',
149         subsystem='dcerpc_server',
150         init_function='dcerpc_server_eventlog6_init',
151         deps='DCERPC_COMMON'
152         )
153
154 bld.SAMBA_MODULE('dcerpc_dnsserver',
155     source='dnsserver/dcerpc_dnsserver.c dnsserver/dnsutils.c dnsserver/dnsdata.c dnsserver/dnsdb.c',
156     subsystem='dcerpc_server',
157     init_function='dcerpc_server_dnsserver_init',
158     deps='DCERPC_COMMON dnsserver_common'
159     )
160
161
162 bld.SAMBA_MODULE('service_dcerpc',
163         source='service_rpc.c',
164         autoproto='service_rpc.h',
165         subsystem='service',
166         init_function='server_service_rpc_init',
167         internal_module=False,
168         deps='dcerpc_server'
169         )
170