s3: tests: Add new test_stream_dir_rename.sh test.
[Samba.git] / source4 / rpc_server / wscript_build
blob0e44a3c2baed8e78faeaabf35302ae9eb3e2fb30
1 #!/usr/bin/env python
3 bld.SAMBA_SUBSYSTEM('DCERPC_SHARE',
4 source='common/share_info.c',
5 autoproto='common/share.h',
6 deps='ldb share',
7 enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER'),
10 bld.SAMBA_SUBSYSTEM('DCERPC_COMMON',
11 source='''
12 common/server_info.c
13 common/forward.c
14 common/loadparm.c
15 ''',
16 autoproto='common/proto.h',
17 deps='ldb DCERPC_SHARE',
18 enabled=bld.AD_DC_BUILD_IS_ENABLED()
21 bld.SAMBA_LIBRARY('dcerpc_server',
22 source='dcerpc_server.c',
23 pc_files='dcerpc_server.pc',
24 deps='LIBCLI_AUTH ndr samba_server_gensec service auth',
25 public_deps='dcerpc dcerpc-server-core',
26 autoproto='dcerpc_server_proto.h',
27 public_headers='dcerpc_server.h',
28 vnum='0.0.1',
29 enabled=bld.AD_DC_BUILD_IS_ENABLED()
32 bld.SAMBA_MODULE('dcerpc_rpcecho',
33 source='echo/rpc_echo.c',
34 subsystem='dcerpc_server',
35 init_function='dcerpc_server_rpcecho_init',
36 deps='ndr-standard events'
40 bld.SAMBA_MODULE('dcerpc_epmapper',
41 source='epmapper/rpc_epmapper.c',
42 subsystem='dcerpc_server',
43 init_function='dcerpc_server_epmapper_init',
44 deps='NDR_EPMAPPER'
48 bld.SAMBA_MODULE('dcerpc_remote',
49 source='remote/dcesrv_remote.c',
50 subsystem='dcerpc_server',
51 init_function='dcerpc_server_remote_init',
52 deps='LIBCLI_SMB ndr-table'
56 bld.SAMBA_MODULE('dcerpc_srvsvc',
57 source='srvsvc/dcesrv_srvsvc.c srvsvc/srvsvc_ntvfs.c',
58 autoproto='srvsvc/proto.h',
59 subsystem='dcerpc_server',
60 init_function='dcerpc_server_srvsvc_init',
61 deps='DCERPC_COMMON NDR_SRVSVC share ntvfs',
62 enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER')
66 bld.SAMBA_MODULE('dcerpc_wkssvc',
67 source='wkssvc/dcesrv_wkssvc.c',
68 subsystem='dcerpc_server',
69 init_function='dcerpc_server_wkssvc_init',
70 deps='DCERPC_COMMON ndr-standard'
74 bld.SAMBA_MODULE('dcerpc_unixinfo',
75 source='unixinfo/dcesrv_unixinfo.c',
76 subsystem='dcerpc_server',
77 init_function='dcerpc_server_unixinfo_init',
78 deps='DCERPC_COMMON samdb NDR_UNIXINFO LIBWBCLIENT_OLD'
82 bld.SAMBA_MODULE('dcesrv_samr',
83 source='samr/dcesrv_samr.c samr/samr_password.c',
84 autoproto='samr/proto.h',
85 subsystem='dcerpc_server',
86 init_function='dcerpc_server_samr_init',
87 deps='''
88 samdb
89 DCERPC_COMMON
90 ndr-standard
91 auth4_sam
92 GNUTLS_HELPERS
93 DCERPC_HELPER
94 '''
98 bld.SAMBA_MODULE('dcerpc_winreg',
99 source='winreg/rpc_winreg.c',
100 subsystem='dcerpc_server',
101 init_function='dcerpc_server_winreg_init',
102 deps='registry ndr-standard',
103 internal_module=True,
104 enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER')
108 bld.SAMBA_MODULE('dcerpc_netlogon',
109 source='netlogon/dcerpc_netlogon.c',
110 subsystem='dcerpc_server',
111 init_function='dcerpc_server_netlogon_init',
112 deps='''
113 DCERPC_COMMON
114 RPC_NDR_IRPC
115 COMMON_SCHANNEL
116 ndr-standard
117 auth4_sam
118 samba-hostconfig
119 DSDB_MODULE_HELPERS
120 util_str_escape
121 DCERPC_SERVER_NETLOGON
125 bld.SAMBA_MODULE('dcerpc_lsarpc',
126 source='lsa/dcesrv_lsa.c lsa/lsa_init.c lsa/lsa_lookup.c',
127 autoproto='lsa/proto.h',
128 subsystem='dcerpc_server',
129 init_function='dcerpc_server_lsa_init',
130 deps='''
131 samdb
132 DCERPC_COMMON
133 ndr-standard
134 LIBCLI_AUTH
135 NDR_DSSETUP
136 com_err
137 samba-security
138 UTIL_LSARPC
143 bld.SAMBA_MODULE('dcerpc_backupkey',
144 source='backupkey/dcesrv_backupkey.c ',
145 autoproto='backupkey/proto.h',
146 subsystem='dcerpc_server',
147 init_function='dcerpc_server_backupkey_init',
148 deps='''
149 samdb
150 DCERPC_COMMON
151 NDR_BACKUPKEY
152 RPC_NDR_BACKUPKEY
153 gnutls
154 GNUTLS_HELPERS
155 ''',
159 bld.SAMBA_MODULE('dcerpc_drsuapi',
160 source='''
161 drsuapi/dcesrv_drsuapi.c
162 drsuapi/updaterefs.c
163 drsuapi/getncchanges.c
164 drsuapi/addentry.c
165 drsuapi/writespn.c
166 drsuapi/drsutil.c
167 ''',
168 subsystem='dcerpc_server',
169 init_function='dcerpc_server_drsuapi_init',
170 deps='samdb DCERPC_COMMON NDR_DRSUAPI samba-security'
174 bld.SAMBA_MODULE('dcerpc_browser',
175 source='browser/dcesrv_browser.c',
176 subsystem='dcerpc_server',
177 init_function='dcerpc_server_browser_init',
178 deps='DCERPC_COMMON NDR_BROWSER'
181 bld.SAMBA_MODULE('dcerpc_eventlog',
182 source='eventlog/dcesrv_eventlog6.c',
183 subsystem='dcerpc_server',
184 init_function='dcerpc_server_eventlog6_init',
185 deps='DCERPC_COMMON'
188 bld.SAMBA_MODULE('dcerpc_dnsserver',
189 source='''
190 dnsserver/dcerpc_dnsserver.c
191 dnsserver/dnsutils.c
192 dnsserver/dnsdata.c
193 dnsserver/dnsdb.c
194 ''',
195 subsystem='dcerpc_server',
196 init_function='dcerpc_server_dnsserver_init',
197 deps='DCERPC_COMMON dnsserver_common netif'
201 bld.SAMBA_MODULE('service_dcerpc',
202 source='service_rpc.c',
203 autoproto='service_rpc.h',
204 subsystem='service',
205 init_function='server_service_rpc_init',
206 internal_module=False,
207 deps='dcerpc_server'
210 bld.SAMBA_BINARY('test_rpc_dns_server_dnsutils',
211 source='tests/rpc_dns_server_dnsutils_test.c',
212 deps='''
213 dnsserver_common
214 dcerpc_server
215 cmocka
216 talloc
217 ''',
218 for_selftest=True,
219 enabled=bld.AD_DC_BUILD_IS_ENABLED()