waf: Fix pdb_ldap which cannot be built as a module.
[Samba/id10ts.git] / source3 / passdb / wscript_build
blob03c8b56f7e6575e24fa5d2de20d7c70379e4d174
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 # This cannot be built as a shared module cause it has two init functions. The
17 # code needs to be cleaned up and split to allow this.
18 bld.SAMBA3_MODULE('pdb_ldap',
19 subsystem='pdb',
20 deps='smbldap smbldaphelper',
21 source=PDB_LDAP_SRC,
22 init_function='',
23 internal_module=True,
24 enabled=bld.CONFIG_SET('HAVE_LDAP'))
26 bld.SAMBA3_MODULE('pdb_smbpasswd',
27 subsystem='pdb',
28 source=PDB_SMBPASSWD_SRC,
29 deps='samba-util',
30 init_function='',
31 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_smbpasswd'),
32 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_smbpasswd'))
34 bld.SAMBA3_MODULE('pdb_wbc_sam',
35 subsystem='pdb',
36 source=PDB_WBC_SAM_SRC,
37 deps='samba-util wbclient',
38 init_function='',
39 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_wbc_sam'),
40 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_wbc_sam'))
42 bld.SAMBA3_MODULE('pdb_samba_dsdb',
43 subsystem='pdb',
44 source='pdb_samba_dsdb.c',
45 init_function='',
46 deps='IDMAP samdb',
47 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_samba_dsdb') and bld.AD_DC_BUILD_IS_ENABLED(),
48 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba_dsdb') and bld.AD_DC_BUILD_IS_ENABLED())
50 bld.SAMBA3_PYTHON('pypassdb',
51 source='py_passdb.c',
52 deps='pdb',
53 public_deps='samba-util tdb_compat talloc pyrpc_util',
54 realname='samba/samba3/passdb.so'