build: Fix enabled handling for HAVE_LDAP, we need to use bld.CONFIG_SET
[Samba/bb.git] / source3 / passdb / wscript_build
blob03a0df4174bf3896c8ccd87476962a176a803b7f
1 #!/usr/bin/env python
3 PDB_TDBSAM_SRC = 'pdb_tdb.c'
4 PDB_LDAP_SRC = 'pdb_ldap.c pdb_nds.c pdb_ipa.c'
5 PDB_SMBPASSWD_SRC = 'pdb_smbpasswd.c'
6 PDB_WBC_SAM_SRC = 'pdb_wbc_sam.c'
8 bld.SAMBA3_MODULE('pdb_tdbsam',
9 subsystem='pdb',
10 source=PDB_TDBSAM_SRC,
11 deps='samba-util tdb_compat dbwrap tdb-wrap3',
12 init_function='',
13 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_tdbsam'),
14 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_tdbsam'))
16 bld.SAMBA3_MODULE('pdb_ldap',
17 subsystem='pdb',
18 deps='smbldap smbldaphelper',
19 source=PDB_LDAP_SRC,
20 init_function='',
21 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ldap'),
22 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ldap') and bld.CONFIG_SET('HAVE_LDAP'))
24 bld.SAMBA3_MODULE('pdb_smbpasswd',
25 subsystem='pdb',
26 source=PDB_SMBPASSWD_SRC,
27 deps='samba-util',
28 init_function='',
29 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_smbpasswd'),
30 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_smbpasswd'))
32 bld.SAMBA3_MODULE('pdb_wbc_sam',
33 subsystem='pdb',
34 source=PDB_WBC_SAM_SRC,
35 deps='samba-util wbclient',
36 init_function='',
37 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_wbc_sam'),
38 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_wbc_sam'))
40 bld.SAMBA3_MODULE('pdb_samba_dsdb',
41 subsystem='pdb',
42 source='pdb_samba_dsdb.c',
43 init_function='',
44 deps='IDMAP samdb',
45 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_samba_dsdb') and bld.AD_DC_BUILD_IS_ENABLED(),
46 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba_dsdb') and bld.AD_DC_BUILD_IS_ENABLED())
48 bld.SAMBA3_PYTHON('pypassdb',
49 source='py_passdb.c',
50 deps='pdb',
51 public_deps='samba-util tdb_compat talloc pyrpc_util',
52 realname='samba/samba3/passdb.so'