s3-smbldap: make smbldap public library and maintain its ABI
[Samba.git] / source3 / passdb / wscript_build
blob1dfdfd0444a394df8f96d45643779f4882f65f5d
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 pdb_ldap_util.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',
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.env.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'