6754f354108618f80d880bc960bc3621da4d8094
[samba.git] / source3 / winbindd / wscript_build
1 #!/usr/bin/env python
2
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'''
10
11 IDMAP_HASH_SRC = '''idmap_hash/idmap_hash.c
12                     idmap_hash/mapfile.c'''
13
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'''
21
22 IDMAP_RW_SRC = 'idmap_rw.c'
23 IDMAP_SRC = 'idmap.c idmap_util.c ${IDMAP_RW_SRC}'
24
25 bld.SAMBA3_SUBSYSTEM('idmap',
26                     source=IDMAP_SRC,
27                     deps='samba-util',
28                     vars=locals())
29
30 bld.SAMBA3_SUBSYSTEM('IDMAP_ADEX',
31                     source=IDMAP_ADEX_SRC,
32                     vars=locals(),
33                     enabled=bld.env.HAVE_LDAP)
34
35 bld.SAMBA3_SUBSYSTEM('IDMAP_HASH',
36                     source=IDMAP_HASH_SRC,
37                     deps='samba-util',
38                     vars=locals())
39
40 bld.SAMBA3_SUBSYSTEM('IDMAP_AD',
41                     source=IDMAP_AD_SRC,
42                     vars=locals(),
43                     enabled=bld.env.HAVE_LDAP)
44
45 bld.SAMBA3_MODULE('idmap_ad',
46                  subsystem='idmap',
47                  source='',
48                  deps='IDMAP_AD',
49                  init_function='',
50                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
51                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad' and bld.env.HAVE_LDAP))
52
53 bld.SAMBA3_MODULE('idmap_rid',
54                  subsystem='idmap',
55                  source=IDMAP_RID_SRC,
56                  init_function='',
57                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
58                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
59
60 bld.SAMBA3_MODULE('idmap_passdb',
61                  subsystem='idmap',
62                  source=IDMAP_PASSDB_SRC,
63                  deps='samba-util',
64                  init_function='',
65                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
66                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
67
68 bld.SAMBA3_MODULE('idmap_ldap',
69                  subsystem='idmap',
70                  source=IDMAP_LDAP_SRC,
71                  init_function='',
72                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
73                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld.env.HAVE_LDAP)
74
75 bld.SAMBA3_MODULE('idmap_nss',
76                  subsystem='idmap',
77                  source=IDMAP_NSS_SRC,
78                  deps='samba-util',
79                  init_function='',
80                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
81                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
82
83 bld.SAMBA3_MODULE('idmap_tdb',
84                  subsystem='idmap',
85                  source=IDMAP_TDB_SRC,
86                  deps='samba-util',
87                  init_function='',
88                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb'),
89                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb'))
90
91 bld.SAMBA3_MODULE('idmap_tdb2',
92                  subsystem='idmap',
93                  source=IDMAP_TDB2_SRC,
94                  deps='samba-util',
95                  init_function='',
96                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
97                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
98
99 bld.SAMBA3_MODULE('idmap_hash',
100                  subsystem='idmap',
101                  source='',
102                  deps='IDMAP_HASH',
103                  init_function='',
104                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
105                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
106
107 bld.SAMBA3_MODULE('idmap_adex',
108                  subsystem='idmap',
109                  source='',
110                  deps='IDMAP_ADEX',
111                  init_function='',
112                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
113                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld.env.HAVE_LDAP)
114
115 bld.SAMBA3_MODULE('idmap_autorid',
116                  subsystem='idmap',
117                  source=IDMAP_AUTORID_SRC,
118                  deps='samba-util',
119                  init_function='',
120                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
121                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'))
122
123
124 NSS_INFO_TEMPLATE_SRC = 'nss_info_template.c'
125 NSS_INFO_SRC = 'nss_info.c'
126
127 bld.SAMBA3_SUBSYSTEM('nss_info',
128                     source=NSS_INFO_SRC,
129                     deps='samba-util',
130                     vars=locals())
131
132 bld.SAMBA3_MODULE('nss_info_template',
133                  subsystem='nss_info',
134                  source=NSS_INFO_TEMPLATE_SRC,
135                  deps='samba-util',
136                  init_function='',
137                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
138                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
139
140 bld.SAMBA3_MODULE('nss_info_adex',
141                  subsystem='nss_info',
142                  source='',
143                  deps='IDMAP_ADEX',
144                  init_function='',
145                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
146                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld.env.HAVE_LDAP)
147
148 bld.SAMBA3_MODULE('nss_info_hash',
149                  subsystem='nss_info',
150                  source='',
151                  deps='IDMAP_HASH',
152                  init_function='',
153                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
154                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
155
156 bld.SAMBA3_MODULE('nss_info_rfc2307',
157                  subsystem='nss_info',
158                  source='',
159                  deps='IDMAP_AD',
160                  init_function='',
161                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
162                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)
163
164 bld.SAMBA3_MODULE('nss_info_sfu20',
165                  subsystem='nss_info',
166                  source='',
167                  deps='IDMAP_AD',
168                  init_function='',
169                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
170                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)
171
172 bld.SAMBA3_MODULE('nss_info_sfu',
173                  subsystem='nss_info',
174                  source='',
175                  deps='IDMAP_AD',
176                  init_function='',
177                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
178                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)