vfs_gpfs: Move call to load GPFS library
[Samba.git] / source3 / winbindd / wscript_build
blob4c85876b5adf88b5155021ba315fe41a13f85b04
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 samba-modules',
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_SUBSYSTEM('winbindd-lib',
175 source='''
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_creds.c
194 winbindd_cred_cache.c
195 winbindd_ccache_access.c
196 winbindd_domain.c
197 winbindd_idmap.c
198 winbindd_locator.c
199 winbindd_ndr.c
200 winbindd_traceid.c
201 wb_lookupsid.c
202 wb_lookupsids.c
203 wb_lookupname.c
204 wb_sids2xids.c
205 wb_xids2sids.c
206 wb_queryuser.c
207 wb_lookupuseraliases.c
208 wb_lookupusergroups.c
209 wb_getpwsid.c
210 wb_gettoken.c
211 wb_seqnum.c
212 wb_seqnums.c
213 wb_group_members.c
214 wb_alias_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_domain_info.c
254 winbindd_pam_auth.c
255 winbindd_pam_logoff.c
256 winbindd_pam_chauthtok.c
257 winbindd_pam_auth_crap.c
258 winbindd_pam_chng_pswd_auth_crap.c
259 winbindd_gpupdate.c''',
260 deps='''
261 talloc
262 tevent
264 idmap
266 msrpc3
267 nss_info
268 LIBAFS
269 LIBADS_SERVER
270 LIBCLI_SAMR
271 SLCACHE
272 RPC_NDR_DSSETUP
273 RPC_NDR_WINBIND
274 TOKEN_UTIL
275 RPC_SERVER
276 WB_REQTRANS
277 TDB_VALIDATE
278 MESSAGING
279 LIBLSA
280 ''')
282 bld.SAMBA3_BINARY('winbindd',
283 source='''
284 winbindd.c
285 ''',
286 deps='''
287 CMDLINE_S3
288 winbindd-lib
289 ''',
290 enabled=bld.env.build_winbind,
291 install_path='${SBINDIR}')