s3-utils: Remove unused connect_to_ipc_krb5()
[Samba.git] / source3 / winbindd / wscript_build
blob071069b535785887909f17eae24ae5d1ca73133f
1 #!/usr/bin/env python
3 IDMAP_AD_SRC = '''idmap_ad.c'''
4 IDMAP_RID_SRC = '''idmap_rid.c'''
5 IDMAP_PASSDB_SRC = '''idmap_passdb.c'''
6 IDMAP_LDAP_SRC = '''idmap_ldap.c'''
7 IDMAP_NSS_SRC = '''idmap_nss.c'''
8 IDMAP_TDB_SRC = '''idmap_tdb.c'''
9 IDMAP_TDB2_SRC = '''idmap_tdb2.c'''
11 IDMAP_HASH_SRC = '''idmap_hash/idmap_hash.c
12 idmap_hash/mapfile.c'''
14 IDMAP_ADEX_SRC = '''idmap_adex/idmap_adex.c
15 idmap_adex/cell_util.c
16 idmap_adex/likewise_cell.c
17 idmap_adex/provider_unified.c
18 idmap_adex/gc_util.c
19 idmap_adex/domain_util.c'''
20 IDMAP_AUTORID_SRC = '''idmap_autorid.c'''
22 IDMAP_RW_SRC = 'idmap_rw.c'
23 IDMAP_SRC = 'idmap.c idmap_util.c ${IDMAP_RW_SRC}'
25 bld.SAMBA3_LIBRARY('idmap',
26 source=IDMAP_SRC,
27 deps='samba-util',
28 vars=locals(),
29 allow_undefined_symbols=True,
30 private_library=True)
32 bld.SAMBA3_SUBSYSTEM('IDMAP_ADEX',
33 source=IDMAP_ADEX_SRC,
34 deps='ads',
35 vars=locals(),
36 enabled=bld.env.HAVE_LDAP)
38 bld.SAMBA3_SUBSYSTEM('IDMAP_HASH',
39 source=IDMAP_HASH_SRC,
40 deps='samba-util',
41 vars=locals())
43 bld.SAMBA3_SUBSYSTEM('IDMAP_AD',
44 source=IDMAP_AD_SRC,
45 deps='ads',
46 vars=locals(),
47 enabled=bld.env.HAVE_LDAP)
49 bld.SAMBA3_MODULE('idmap_ad',
50 subsystem='idmap',
51 source='',
52 deps='IDMAP_AD',
53 init_function='',
54 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
55 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad' and bld.env.HAVE_LDAP))
57 bld.SAMBA3_MODULE('idmap_rid',
58 subsystem='idmap',
59 allow_undefined_symbols=True,
60 source=IDMAP_RID_SRC,
61 init_function='',
62 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
63 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
65 bld.SAMBA3_MODULE('idmap_passdb',
66 subsystem='idmap',
67 source=IDMAP_PASSDB_SRC,
68 deps='samba-util pdb',
69 init_function='',
70 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
71 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
73 bld.SAMBA3_MODULE('idmap_ldap',
74 subsystem='idmap',
75 source=IDMAP_LDAP_SRC,
76 deps='smbldap',
77 init_function='',
78 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
79 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld.env.HAVE_LDAP)
81 bld.SAMBA3_MODULE('idmap_nss',
82 subsystem='idmap',
83 source=IDMAP_NSS_SRC,
84 deps='samba-util',
85 init_function='',
86 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
87 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
89 bld.SAMBA3_MODULE('idmap_tdb',
90 subsystem='idmap',
91 source=IDMAP_TDB_SRC,
92 deps='samba-util tdb',
93 init_function='',
94 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb'),
95 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb'))
97 bld.SAMBA3_MODULE('idmap_tdb2',
98 subsystem='idmap',
99 source=IDMAP_TDB2_SRC,
100 deps='samba-util tdb',
101 init_function='',
102 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
103 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
105 bld.SAMBA3_MODULE('idmap_hash',
106 subsystem='idmap',
107 source='',
108 deps='IDMAP_HASH',
109 allow_undefined_symbols=True,
110 init_function='',
111 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
112 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
114 bld.SAMBA3_MODULE('idmap_adex',
115 subsystem='idmap',
116 source='',
117 deps='IDMAP_ADEX',
118 allow_undefined_symbols=True,
119 init_function='',
120 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
121 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld.env.HAVE_LDAP)
123 bld.SAMBA3_MODULE('idmap_autorid',
124 subsystem='idmap',
125 source=IDMAP_AUTORID_SRC,
126 deps='samba-util tdb',
127 init_function='',
128 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
129 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'),
130 allow_undefined_symbols=True)
133 NSS_INFO_TEMPLATE_SRC = 'nss_info_template.c'
134 NSS_INFO_SRC = 'nss_info.c'
136 bld.SAMBA3_LIBRARY('nss_info',
137 source=NSS_INFO_SRC,
138 deps='samba-util param',
139 vars=locals(),
140 private_library=True)
142 bld.SAMBA3_MODULE('nss_info_template',
143 subsystem='nss_info',
144 source=NSS_INFO_TEMPLATE_SRC,
145 deps='samba-util',
146 init_function='',
147 internal_module=bld.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
148 enabled=bld.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
150 bld.SAMBA3_MODULE('nss_info_adex',
151 subsystem='nss_info',
152 source='',
153 deps='IDMAP_ADEX',
154 allow_undefined_symbols=True,
155 init_function='',
156 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
157 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld.env.HAVE_LDAP)
159 bld.SAMBA3_MODULE('nss_info_hash',
160 subsystem='nss_info',
161 source='',
162 deps='IDMAP_HASH',
163 allow_undefined_symbols=True,
164 init_function='',
165 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
166 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
168 bld.SAMBA3_MODULE('nss_info_rfc2307',
169 subsystem='nss_info',
170 source='',
171 deps='IDMAP_AD',
172 allow_undefined_symbols=True,
173 init_function='',
174 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
175 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)
177 bld.SAMBA3_MODULE('nss_info_sfu20',
178 subsystem='nss_info',
179 source='',
180 deps='IDMAP_AD',
181 allow_undefined_symbols=True,
182 init_function='',
183 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
184 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)
186 bld.SAMBA3_MODULE('nss_info_sfu',
187 subsystem='nss_info',
188 source='',
189 deps='IDMAP_AD',
190 allow_undefined_symbols=True,
191 init_function='',
192 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
193 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)