s3:smbd:smb2: fix an assignment-instead-of-check bug conn_snum_used()
[Samba.git] / source3 / passdb / wscript_build
bloba8b79fd0620bf5a63889f0a70c640b5780c766e6
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_ADS_SRC = 'pdb_ads.c'
6 PDB_SMBPASSWD_SRC = 'pdb_smbpasswd.c'
7 PDB_WBC_SAM_SRC = 'pdb_wbc_sam.c'
9 bld.SAMBA3_MODULE('pdb_tdbsam',
10 subsystem='pdb',
11 source=PDB_TDBSAM_SRC,
12 deps='samba-util tdb',
13 init_function='',
14 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_tdbsam'),
15 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_tdbsam'))
17 bld.SAMBA3_MODULE('pdb_ldap',
18 subsystem='pdb',
19 deps='smbldap',
20 source=PDB_LDAP_SRC,
21 init_function='',
22 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ldap'),
23 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ldap') and bld.env.HAVE_LDAP)
25 bld.SAMBA3_MODULE('pdb_ads',
26 subsystem='pdb',
27 source=PDB_ADS_SRC,
28 deps='cli-ldap-common TLDAP',
29 init_function='',
30 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ads'),
31 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ads'))
33 bld.SAMBA3_MODULE('pdb_smbpasswd',
34 subsystem='pdb',
35 source=PDB_SMBPASSWD_SRC,
36 deps='samba-util',
37 init_function='',
38 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_smbpasswd'),
39 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_smbpasswd'))
41 bld.SAMBA3_MODULE('pdb_wbc_sam',
42 subsystem='pdb',
43 source=PDB_WBC_SAM_SRC,
44 deps='samba-util wbclient',
45 init_function='',
46 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_wbc_sam'),
47 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_wbc_sam'))
49 bld.SAMBA3_MODULE('pdb_samba4',
50 subsystem='pdb',
51 source='pdb_samba4.c',
52 init_function='',
53 deps='IDMAP samdb',
54 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_samba4'),
55 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba4'))
57 bld.SAMBA3_PYTHON('pypassdb',
58 source='py_passdb.c',
59 deps='pdb',
60 public_deps='samba-util tdb talloc pyrpc_util',
61 realname='samba/samba3/passdb.so'