2010-09-26 21:59:18 +04:00
#!/usr/bin/env python
IDMAP_AD_SRC = '''idmap_ad.c'''
IDMAP_RID_SRC = '''idmap_rid.c'''
IDMAP_PASSDB_SRC = '''idmap_passdb.c'''
IDMAP_LDAP_SRC = '''idmap_ldap.c'''
2010-09-27 01:38:36 +04:00
IDMAP_NSS_SRC = '''idmap_nss.c'''
IDMAP_TDB_SRC = '''idmap_tdb.c'''
2010-09-26 21:59:18 +04:00
IDMAP_TDB2_SRC = '''idmap_tdb2.c'''
IDMAP_HASH_SRC = '''idmap_hash/idmap_hash.c
idmap_hash/mapfile.c'''
IDMAP_ADEX_SRC = '''idmap_adex/idmap_adex.c
idmap_adex/cell_util.c
idmap_adex/likewise_cell.c
idmap_adex/provider_unified.c
idmap_adex/gc_util.c
idmap_adex/domain_util.c'''
2010-11-08 16:34:51 +03:00
IDMAP_AUTORID_SRC = '''idmap_autorid.c'''
2010-09-26 21:59:18 +04:00
IDMAP_RW_SRC = 'idmap_rw.c'
2012-01-16 20:21:38 +04:00
IDMAP_SRC = 'idmap.c idmap_util.c idmap_tdb_common.c ${IDMAP_RW_SRC}'
2010-09-26 21:59:18 +04:00
2011-07-03 11:20:02 +04:00
bld.SAMBA3_LIBRARY('idmap',
source=IDMAP_SRC,
deps='samba-util',
vars=locals(),
allow_undefined_symbols=True,
private_library=True)
2010-09-26 21:59:18 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('IDMAP_ADEX',
2010-11-30 23:42:17 +03:00
source=IDMAP_ADEX_SRC,
2011-08-25 15:40:08 +04:00
deps='ads',
2011-02-11 14:09:25 +03:00
vars=locals(),
enabled=bld.env.HAVE_LDAP)
2010-11-30 23:42:17 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('IDMAP_HASH',
2010-11-30 23:44:25 +03:00
source=IDMAP_HASH_SRC,
2011-06-20 14:36:46 +04:00
deps='samba-util',
2010-11-30 23:44:25 +03:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('IDMAP_AD',
2010-11-30 23:46:31 +03:00
source=IDMAP_AD_SRC,
2011-08-25 15:40:08 +04:00
deps='ads',
2011-02-11 14:09:25 +03:00
vars=locals(),
enabled=bld.env.HAVE_LDAP)
2010-11-30 23:46:31 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_ad',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2010-11-30 23:46:31 +03:00
source='',
deps='IDMAP_AD',
2010-09-26 21:59:18 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
2011-02-11 14:09:25 +03:00
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad' and bld.env.HAVE_LDAP))
2010-09-26 21:59:18 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_rid',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2011-08-31 19:56:51 +04:00
allow_undefined_symbols=True,
2010-09-26 21:59:18 +04:00
source=IDMAP_RID_SRC,
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
2010-09-26 21:59:18 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_passdb',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2010-09-26 21:59:18 +04:00
source=IDMAP_PASSDB_SRC,
2011-07-28 08:41:56 +04:00
deps='samba-util pdb',
2010-09-26 21:59:18 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
2010-09-26 21:59:18 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_ldap',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2010-09-26 21:59:18 +04:00
source=IDMAP_LDAP_SRC,
2011-10-17 19:19:27 +04:00
deps='smbldap',
2010-09-26 21:59:18 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
2011-02-11 14:09:25 +03:00
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld.env.HAVE_LDAP)
2010-09-26 21:59:18 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_nss',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2010-09-27 01:38:36 +04:00
source=IDMAP_NSS_SRC,
2011-06-20 14:36:46 +04:00
deps='samba-util',
2010-09-27 01:38:36 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
2010-09-27 01:38:36 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_tdb',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2010-09-27 01:38:36 +04:00
source=IDMAP_TDB_SRC,
2011-06-28 18:39:36 +04:00
deps='samba-util tdb',
2010-09-27 01:38:36 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb'))
2010-09-27 01:38:36 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_tdb2',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2010-09-26 21:59:18 +04:00
source=IDMAP_TDB2_SRC,
2011-08-31 14:44:35 +04:00
deps='samba-util tdb',
2010-09-26 21:59:18 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
2010-09-26 21:59:18 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_hash',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2010-11-30 23:44:25 +03:00
source='',
deps='IDMAP_HASH',
2011-08-31 14:45:10 +04:00
allow_undefined_symbols=True,
2010-09-26 21:59:18 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
2010-09-26 21:59:18 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_adex',
2010-10-07 23:28:04 +04:00
subsystem='idmap',
2010-11-30 23:42:17 +03:00
source='',
deps='IDMAP_ADEX',
2011-08-31 14:45:10 +04:00
allow_undefined_symbols=True,
2010-09-26 21:59:18 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
2011-02-11 14:09:25 +03:00
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld.env.HAVE_LDAP)
2010-10-05 13:38:45 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('idmap_autorid',
2010-11-08 16:34:51 +03:00
subsystem='idmap',
source=IDMAP_AUTORID_SRC,
2011-06-28 18:39:36 +04:00
deps='samba-util tdb',
2010-11-08 16:34:51 +03:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
2011-07-03 11:20:02 +04:00
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'),
allow_undefined_symbols=True)
2010-11-08 16:34:51 +03:00
2010-10-05 13:38:45 +04:00
NSS_INFO_TEMPLATE_SRC = 'nss_info_template.c'
NSS_INFO_SRC = 'nss_info.c'
2011-08-31 14:43:57 +04:00
bld.SAMBA3_LIBRARY('nss_info',
source=NSS_INFO_SRC,
deps='samba-util param',
vars=locals(),
private_library=True)
2010-10-05 13:38:45 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('nss_info_template',
2010-10-07 23:28:04 +04:00
subsystem='nss_info',
2010-10-05 13:38:45 +04:00
source=NSS_INFO_TEMPLATE_SRC,
2011-06-20 14:36:46 +04:00
deps='samba-util',
2010-10-05 13:38:45 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
2010-10-05 13:38:45 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('nss_info_adex',
2010-10-07 23:28:04 +04:00
subsystem='nss_info',
2010-11-30 23:42:17 +03:00
source='',
deps='IDMAP_ADEX',
2011-08-31 14:45:10 +04:00
allow_undefined_symbols=True,
2010-10-05 13:38:45 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
2011-02-11 14:09:25 +03:00
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld.env.HAVE_LDAP)
2010-10-05 13:38:45 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('nss_info_hash',
2010-10-07 23:28:04 +04:00
subsystem='nss_info',
2010-11-30 23:44:25 +03:00
source='',
deps='IDMAP_HASH',
2011-08-31 14:45:10 +04:00
allow_undefined_symbols=True,
2010-10-05 13:38:45 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
2010-10-05 13:38:45 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('nss_info_rfc2307',
2010-10-07 23:28:04 +04:00
subsystem='nss_info',
2010-11-30 23:46:31 +03:00
source='',
deps='IDMAP_AD',
2011-08-31 14:45:10 +04:00
allow_undefined_symbols=True,
2010-10-05 13:38:45 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
2011-02-11 14:09:25 +03:00
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)
2010-10-05 13:38:45 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('nss_info_sfu20',
2010-10-07 23:28:04 +04:00
subsystem='nss_info',
2010-11-30 23:46:31 +03:00
source='',
deps='IDMAP_AD',
2011-08-31 14:45:10 +04:00
allow_undefined_symbols=True,
2010-10-05 13:38:45 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
2011-02-11 14:09:25 +03:00
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)
2010-10-05 13:38:45 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('nss_info_sfu',
2010-10-07 23:28:04 +04:00
subsystem='nss_info',
2010-11-30 23:46:31 +03:00
source='',
deps='IDMAP_AD',
2011-08-31 14:45:10 +04:00
allow_undefined_symbols=True,
2010-10-05 13:38:45 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
2011-02-11 14:09:25 +03:00
enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)