sefltest: use TestCaseInTempDir and setUp/tearDown for posixacl.py temp file
[Samba/gebeck_regimport.git] / source3 / winbindd / wscript_build
blob0d826f0f3db6c5780483ea962722888ad91c0b52
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_AUTORID_SRC = '''idmap_autorid.c'''
16 IDMAP_RW_SRC = 'idmap_rw.c'
17 IDMAP_SRC = 'idmap.c idmap_util.c idmap_tdb_common.c ${IDMAP_RW_SRC}'
19 bld.SAMBA3_LIBRARY('idmap',
20 source=IDMAP_SRC,
21 deps='samba-util',
22 vars=locals(),
23 allow_undefined_symbols=True,
24 private_library=True)
26 bld.SAMBA3_SUBSYSTEM('IDMAP_HASH',
27 source=IDMAP_HASH_SRC,
28 deps='samba-util krb5samba',
29 vars=locals())
31 bld.SAMBA3_SUBSYSTEM('IDMAP_AD',
32 source=IDMAP_AD_SRC,
33 deps='ads nss_info',
34 vars=locals(),
35 enabled=bld.CONFIG_SET("HAVE_LDAP"))
37 bld.SAMBA3_MODULE('idmap_ad',
38 subsystem='idmap',
39 allow_undefined_symbols=True,
40 source='',
41 deps='IDMAP_AD',
42 init_function='',
43 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
44 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.CONFIG_SET("HAVE_LDAP"))
46 bld.SAMBA3_MODULE('idmap_rid',
47 subsystem='idmap',
48 allow_undefined_symbols=True,
49 source=IDMAP_RID_SRC,
50 init_function='',
51 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
52 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
54 bld.SAMBA3_MODULE('idmap_passdb',
55 subsystem='idmap',
56 source=IDMAP_PASSDB_SRC,
57 deps='samba-util pdb',
58 init_function='',
59 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
60 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
62 bld.SAMBA3_MODULE('idmap_ldap',
63 subsystem='idmap',
64 source=IDMAP_LDAP_SRC,
65 deps='smbldap smbldaphelper pdb',
66 init_function='',
67 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
68 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld.CONFIG_SET("HAVE_LDAP"))
70 bld.SAMBA3_MODULE('idmap_nss',
71 subsystem='idmap',
72 source=IDMAP_NSS_SRC,
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_SRC,
81 deps='samba-util tdb',
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 deps='samba-util tdb',
90 init_function='',
91 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
92 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
94 bld.SAMBA3_MODULE('idmap_hash',
95 subsystem='idmap',
96 source='',
97 deps='IDMAP_HASH',
98 allow_undefined_symbols=True,
99 init_function='',
100 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
101 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
103 bld.SAMBA3_MODULE('idmap_autorid',
104 subsystem='idmap',
105 source=IDMAP_AUTORID_SRC,
106 deps='samba-util tdb',
107 init_function='',
108 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
109 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'),
110 allow_undefined_symbols=True)
113 NSS_INFO_TEMPLATE_SRC = 'nss_info_template.c'
114 NSS_INFO_SRC = 'nss_info.c'
116 bld.SAMBA3_LIBRARY('nss_info',
117 source=NSS_INFO_SRC,
118 deps='samba-util param',
119 vars=locals(),
120 private_library=True)
122 bld.SAMBA3_MODULE('nss_info_template',
123 subsystem='nss_info',
124 source=NSS_INFO_TEMPLATE_SRC,
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') and bld.CONFIG_SET("HAVE_LDAP"))
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') and bld.CONFIG_SET("HAVE_LDAP"))
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"))