build: Do not recurse on symlinks to directories when building tarballs
[Samba.git] / source3 / winbindd / wscript_build
blob51264e9e365b829ecb1f828f80b49e464eeb290c
1 #!/usr/bin/env python
3 bld.SAMBA3_LIBRARY('idmap',
4 source='idmap.c idmap_util.c',
5 deps='samba-util pdb',
6 allow_undefined_symbols=True,
7 private_library=True)
9 bld.SAMBA3_SUBSYSTEM('IDMAP_RW',
10 source='idmap_rw.c',
11 deps='samba-util')
13 bld.SAMBA3_SUBSYSTEM('IDMAP_TDB_COMMON',
14 source='idmap_tdb_common.c',
15 deps='tdb IDMAP_RW')
17 bld.SAMBA3_SUBSYSTEM('IDMAP_HASH',
18 source='idmap_hash/idmap_hash.c idmap_hash/mapfile.c',
19 deps='samba-util krb5samba',
20 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
22 bld.SAMBA3_SUBSYSTEM('IDMAP_AD',
23 source='idmap_ad.c idmap_ad_nss.c',
24 deps='ads nss_info',
25 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad'))
27 bld.SAMBA3_MODULE('idmap_ad',
28 subsystem='idmap',
29 allow_undefined_symbols=True,
30 source='',
31 deps='IDMAP_AD TLDAP LIBNMB',
32 init_function='',
33 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
34 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad'))
36 bld.SAMBA3_MODULE('idmap_rfc2307',
37 subsystem='idmap',
38 allow_undefined_symbols=True,
39 source='idmap_rfc2307.c',
40 init_function='',
41 deps='ads',
42 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_rfc2307'),
43 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_rfc2307'))
45 bld.SAMBA3_MODULE('idmap_rid',
46 subsystem='idmap',
47 allow_undefined_symbols=True,
48 source='idmap_rid.c',
49 init_function='',
50 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
51 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
53 bld.SAMBA3_MODULE('idmap_passdb',
54 subsystem='idmap',
55 source='idmap_passdb.c',
56 deps='samba-util samba-passdb',
57 init_function='',
58 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
59 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
61 bld.SAMBA3_MODULE('idmap_ldap',
62 subsystem='idmap',
63 source='idmap_ldap.c',
64 deps='smbldap smbldaphelper pdb IDMAP_RW',
65 init_function='',
66 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
67 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld.CONFIG_SET("HAVE_LDAP"),
68 allow_undefined_symbols=True)
70 bld.SAMBA3_MODULE('idmap_nss',
71 subsystem='idmap',
72 source='idmap_nss.c',
73 deps='samba-util',
74 init_function='',
75 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
76 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
78 bld.SAMBA3_MODULE('idmap_tdb',
79 subsystem='idmap',
80 source='idmap_tdb.c',
81 deps='samba-util tdb IDMAP_TDB_COMMON',
82 init_function='',
83 allow_undefined_symbols=True,
84 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb'),
85 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb'))
87 bld.SAMBA3_MODULE('idmap_tdb2',
88 subsystem='idmap',
89 source='idmap_tdb2.c',
90 deps='samba-util tdb IDMAP_TDB_COMMON',
91 init_function='',
92 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
93 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
95 bld.SAMBA3_MODULE('idmap_hash',
96 subsystem='idmap',
97 source='',
98 deps='IDMAP_HASH',
99 allow_undefined_symbols=True,
100 init_function='',
101 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
102 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
104 bld.SAMBA3_SUBSYSTEM('IDMAP_AUTORID_TDB',
105 source='idmap_autorid_tdb.c',
106 deps='tdb')
108 bld.SAMBA3_MODULE('idmap_autorid',
109 subsystem='idmap',
110 source='idmap_autorid.c',
111 deps='samba-util tdb IDMAP_TDB_COMMON IDMAP_AUTORID_TDB',
112 init_function='',
113 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
114 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'),
115 allow_undefined_symbols=True)
117 bld.SAMBA3_LIBRARY('nss_info',
118 source='nss_info.c',
119 deps='samba-util smbconf',
120 private_library=True)
122 bld.SAMBA3_MODULE('nss_info_template',
123 subsystem='nss_info',
124 source='nss_info_template.c',
125 deps='samba-util krb5samba',
126 init_function='',
127 internal_module=bld.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
128 enabled=bld.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
130 bld.SAMBA3_MODULE('nss_info_hash',
131 subsystem='nss_info',
132 source='',
133 deps='IDMAP_HASH',
134 allow_undefined_symbols=True,
135 init_function='',
136 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
137 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
139 bld.SAMBA3_MODULE('nss_info_rfc2307',
140 subsystem='nss_info',
141 source='',
142 deps='IDMAP_AD',
143 allow_undefined_symbols=True,
144 init_function='',
145 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
146 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad'))
148 bld.SAMBA3_MODULE('nss_info_sfu20',
149 subsystem='nss_info',
150 source='',
151 deps='IDMAP_AD',
152 allow_undefined_symbols=True,
153 init_function='',
154 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
155 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad'))
157 bld.SAMBA3_MODULE('nss_info_sfu',
158 subsystem='nss_info',
159 source='',
160 deps='IDMAP_AD',
161 allow_undefined_symbols=True,
162 init_function='',
163 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
164 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.CONFIG_SET("HAVE_LDAP"))
166 bld.SAMBA3_MODULE('idmap_script',
167 subsystem='idmap',
168 allow_undefined_symbols=True,
169 source='idmap_script.c',
170 init_function='',
171 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_script'),
172 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_script'))
174 bld.SAMBA3_BINARY('winbindd',
175 source='''winbindd.c
176 winbindd_group.c
177 winbindd_util.c
178 winbindd_cache.c
179 winbindd_pam.c
180 winbindd_misc.c
181 winbindd_cm.c
182 winbindd_wins_byip.c
183 winbindd_wins_byname.c
184 winbindd_msrpc.c
185 winbindd_rpc.c
186 winbindd_reconnect.c
187 winbindd_reconnect_ads.c
188 winbindd_ads.c
189 winbindd_samr.c
190 winbindd_dual.c
191 winbindd_dual_ndr.c
192 winbindd_dual_srv.c
193 winbindd_async.c
194 winbindd_creds.c
195 winbindd_cred_cache.c
196 winbindd_ccache_access.c
197 winbindd_domain.c
198 winbindd_idmap.c
199 winbindd_locator.c
200 winbindd_ndr.c
201 wb_ping.c
202 wb_lookupsid.c
203 wb_lookupsids.c
204 wb_lookupname.c
205 wb_sids2xids.c
206 wb_xids2sids.c
207 wb_queryuser.c
208 wb_lookupuseraliases.c
209 wb_lookupusergroups.c
210 wb_getpwsid.c
211 wb_gettoken.c
212 wb_seqnum.c
213 wb_seqnums.c
214 wb_group_members.c
215 wb_getgrsid.c
216 wb_query_user_list.c
217 wb_query_group_list.c
218 wb_next_pwent.c
219 wb_next_grent.c
220 wb_dsgetdcname.c
221 winbindd_lookupsid.c
222 winbindd_lookupsids.c
223 winbindd_lookupname.c
224 winbindd_sids_to_xids.c
225 winbindd_xids_to_sids.c
226 winbindd_allocate_uid.c
227 winbindd_allocate_gid.c
228 winbindd_getpwsid.c
229 winbindd_getpwnam.c
230 winbindd_getpwuid.c
231 winbindd_getsidaliases.c
232 winbindd_getuserdomgroups.c
233 winbindd_getgroups.c
234 winbindd_show_sequence.c
235 winbindd_getgrgid.c
236 winbindd_getgrnam.c
237 winbindd_getusersids.c
238 winbindd_lookuprids.c
239 winbindd_setpwent.c
240 winbindd_getpwent.c
241 winbindd_endpwent.c
242 winbindd_setgrent.c
243 winbindd_getgrent.c
244 winbindd_endgrent.c
245 winbindd_dsgetdcname.c
246 winbindd_getdcname.c
247 winbindd_list_users.c
248 winbindd_list_groups.c
249 winbindd_check_machine_acct.c
250 winbindd_change_machine_acct.c
251 winbindd_irpc.c
252 winbindd_ping_dc.c
253 winbindd_pam_auth.c
254 winbindd_pam_logoff.c
255 winbindd_pam_chauthtok.c
256 winbindd_pam_auth_crap.c
257 winbindd_pam_chng_pswd_auth_crap.c''',
258 deps='''
259 talloc
260 tevent
262 popt_samba3
263 idmap
265 msrpc3
266 nss_info
267 LIBAFS
268 LIBADS_SERVER
269 LIBCLI_SAMR
270 SLCACHE
271 RPC_NDR_DSSETUP
272 RPC_NDR_WINBIND
273 SRV_NDR_WINBIND
274 RPC_SAMR
275 RPC_LSARPC
276 RPC_SERVER
277 WB_REQTRANS
278 TDB_VALIDATE
279 MESSAGING
280 LIBLSA
281 ''',
282 enabled=bld.env.build_winbind,
283 install_path='${SBINDIR}')