82c96348c31905e811a99f146fd5747ace8d6f04
[kai/samba-autobuild/.git] / source3 / passdb / wscript_build
1 #!/usr/bin/env python
2
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'
8
9 bld.SAMBA3_MODULE('pdb_tdbsam',
10                  subsystem='pdb',
11                  source=PDB_TDBSAM_SRC,
12                  deps='samba-util tdb_compat dbwrap tdb-wrap3',
13                  init_function='',
14                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_tdbsam'),
15                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_tdbsam'))
16
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)
24
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'))
32
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'))
40
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'))
48
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'))
56
57 bld.SAMBA3_PYTHON('pypassdb',
58                   source='py_passdb.c',
59                   deps='pdb',
60                   public_deps='samba-util tdb_compat talloc pyrpc_util',
61                   realname='samba/samba3/passdb.so'
62                   )