s3-serverid: restructure serverid initialization.
[Samba.git] / source3 / winbindd / wscript_build
blobdbae11697e5aff2d90aefe08c0fadc7483c9e24d
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_SUBSYSTEM('idmap',
26 source=IDMAP_SRC,
27 vars=locals())
29 bld.SAMBA3_SUBSYSTEM('IDMAP_ADEX',
30 source=IDMAP_ADEX_SRC,
31 vars=locals(),
32 enabled=bld.env.HAVE_LDAP)
34 bld.SAMBA3_SUBSYSTEM('IDMAP_HASH',
35 source=IDMAP_HASH_SRC,
36 vars=locals())
38 bld.SAMBA3_SUBSYSTEM('IDMAP_AD',
39 source=IDMAP_AD_SRC,
40 vars=locals(),
41 enabled=bld.env.HAVE_LDAP)
43 bld.SAMBA3_MODULE('idmap_ad',
44 subsystem='idmap',
45 source='',
46 deps='IDMAP_AD',
47 init_function='',
48 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
49 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad' and bld.env.HAVE_LDAP))
51 bld.SAMBA3_MODULE('idmap_rid',
52 subsystem='idmap',
53 source=IDMAP_RID_SRC,
54 init_function='',
55 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
56 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
58 bld.SAMBA3_MODULE('idmap_passdb',
59 subsystem='idmap',
60 source=IDMAP_PASSDB_SRC,
61 init_function='',
62 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
63 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
65 bld.SAMBA3_MODULE('idmap_ldap',
66 subsystem='idmap',
67 source=IDMAP_LDAP_SRC,
68 init_function='',
69 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
70 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld.env.HAVE_LDAP)
72 bld.SAMBA3_MODULE('idmap_nss',
73 subsystem='idmap',
74 source=IDMAP_NSS_SRC,
75 init_function='',
76 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
77 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
79 bld.SAMBA3_MODULE('idmap_tdb',
80 subsystem='idmap',
81 source=IDMAP_TDB_SRC,
82 init_function='',
83 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb'),
84 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb'))
86 bld.SAMBA3_MODULE('idmap_tdb2',
87 subsystem='idmap',
88 source=IDMAP_TDB2_SRC,
89 init_function='',
90 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
91 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
93 bld.SAMBA3_MODULE('idmap_hash',
94 subsystem='idmap',
95 source='',
96 deps='IDMAP_HASH',
97 init_function='',
98 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
99 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
101 bld.SAMBA3_MODULE('idmap_adex',
102 subsystem='idmap',
103 source='',
104 deps='IDMAP_ADEX',
105 init_function='',
106 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
107 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld.env.HAVE_LDAP)
109 bld.SAMBA3_MODULE('idmap_autorid',
110 subsystem='idmap',
111 source=IDMAP_AUTORID_SRC,
112 init_function='',
113 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
114 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'))
117 NSS_INFO_TEMPLATE_SRC = 'nss_info_template.c'
118 NSS_INFO_SRC = 'nss_info.c'
120 bld.SAMBA3_SUBSYSTEM('nss_info',
121 source=NSS_INFO_SRC,
122 vars=locals())
124 bld.SAMBA3_MODULE('nss_info_template',
125 subsystem='nss_info',
126 source=NSS_INFO_TEMPLATE_SRC,
127 init_function='',
128 internal_module=bld.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
129 enabled=bld.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
131 bld.SAMBA3_MODULE('nss_info_adex',
132 subsystem='nss_info',
133 source='',
134 deps='IDMAP_ADEX',
135 init_function='',
136 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
137 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld.env.HAVE_LDAP)
139 bld.SAMBA3_MODULE('nss_info_hash',
140 subsystem='nss_info',
141 source='',
142 deps='IDMAP_HASH',
143 init_function='',
144 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
145 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
147 bld.SAMBA3_MODULE('nss_info_rfc2307',
148 subsystem='nss_info',
149 source='',
150 deps='IDMAP_AD',
151 init_function='',
152 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
153 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)
155 bld.SAMBA3_MODULE('nss_info_sfu20',
156 subsystem='nss_info',
157 source='',
158 deps='IDMAP_AD',
159 init_function='',
160 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
161 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)
163 bld.SAMBA3_MODULE('nss_info_sfu',
164 subsystem='nss_info',
165 source='',
166 deps='IDMAP_AD',
167 init_function='',
168 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
169 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)