s3-waf: convert IDMAP_ADEX into a subsystem.
[kai/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.SAMBA_SUBSYSTEM('idmap',
26                     source=IDMAP_SRC,
27                     vars=locals())
28
29 bld.SAMBA_SUBSYSTEM('IDMAP_ADEX',
30                     source=IDMAP_ADEX_SRC,
31                     vars=locals())
32
33 bld.SAMBA_MODULE('idmap_ad',
34                  subsystem='idmap',
35                  source=IDMAP_AD_SRC,
36                  init_function='',
37                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_AD'),
38                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_AD'))
39
40 bld.SAMBA_MODULE('idmap_rid',
41                  subsystem='idmap',
42                  source=IDMAP_RID_SRC,
43                  init_function='',
44                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_RID'),
45                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_RID'))
46
47 bld.SAMBA_MODULE('idmap_passdb',
48                  subsystem='idmap',
49                  source=IDMAP_PASSDB_SRC,
50                  init_function='',
51                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_PASSDB'),
52                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_PASSDB'))
53
54 bld.SAMBA_MODULE('idmap_ldap',
55                  subsystem='idmap',
56                  source=IDMAP_LDAP_SRC,
57                  init_function='',
58                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_LDAP'),
59                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_LDAP'))
60
61 bld.SAMBA_MODULE('idmap_nss',
62                  subsystem='idmap',
63                  source=IDMAP_NSS_SRC,
64                  init_function='',
65                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_NSS'),
66                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_NSS'))
67
68 bld.SAMBA_MODULE('idmap_tdb',
69                  subsystem='idmap',
70                  source=IDMAP_TDB_SRC,
71                  init_function='',
72                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_TDB'),
73                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_TDB'))
74
75 bld.SAMBA_MODULE('idmap_tdb2',
76                  subsystem='idmap',
77                  source=IDMAP_TDB2_SRC,
78                  init_function='',
79                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_TDB2'),
80                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_TDB2'))
81
82 bld.SAMBA_MODULE('idmap_hash',
83                  subsystem='idmap',
84                  source=IDMAP_HASH_SRC,
85                  init_function='',
86                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_HASH'),
87                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_HASH'))
88
89 bld.SAMBA_MODULE('idmap_adex',
90                  subsystem='idmap',
91                  source='',
92                  deps='IDMAP_ADEX',
93                  init_function='',
94                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_ADEX'),
95                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_ADEX'))
96
97 bld.SAMBA_MODULE('idmap_autorid',
98                  subsystem='idmap',
99                  source=IDMAP_AUTORID_SRC,
100                  init_function='',
101                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_AUTORID'),
102                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_AUTORID'))
103
104
105 NSS_INFO_TEMPLATE_SRC = 'nss_info_template.c'
106 NSS_INFO_SRC = 'nss_info.c'
107
108 bld.SAMBA_SUBSYSTEM('nss_info',
109                     source=NSS_INFO_SRC,
110                     vars=locals())
111
112 bld.SAMBA_MODULE('nss_info_template',
113                  subsystem='nss_info',
114                  source=NSS_INFO_TEMPLATE_SRC,
115                  init_function='',
116                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('NSS_INFO_TEMPLATE'),
117                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('NSS_INFO_TEMPLATE'))
118
119 bld.SAMBA_MODULE('nss_info_adex',
120                  subsystem='nss_info',
121                  source='',
122                  deps='IDMAP_ADEX',
123                  init_function='',
124                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_ADEX'),
125                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_ADEX'))
126
127 bld.SAMBA_MODULE('nss_info_hash',
128                  subsystem='nss_info',
129                  source=IDMAP_HASH_SRC,
130                  init_function='',
131                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_HASH'),
132                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_HASH'))
133
134 bld.SAMBA_MODULE('nss_info_rfc2307',
135                  subsystem='nss_info',
136                  source=IDMAP_AD_SRC,
137                  init_function='',
138                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_AD'),
139                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_AD'))
140
141 bld.SAMBA_MODULE('nss_info_sfu20',
142                  subsystem='nss_info',
143                  source=IDMAP_AD_SRC,
144                  init_function='',
145                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_AD'),
146                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_AD'))
147
148 bld.SAMBA_MODULE('nss_info_sfu',
149                  subsystem='nss_info',
150                  source=IDMAP_AD_SRC,
151                  init_function='',
152                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('IDMAP_AD'),
153                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('IDMAP_AD'))