90ce2c4c4d2537e4b5b7af312e85f0883faa6a52
[samba.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'
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_SUBSYSTEM('pdb',
10                     source='pdb_interface.c',
11                     deps='',
12                     vars=locals())
13
14 bld.SAMBA3_MODULE('pdb_tdbsam',
15                  subsystem='pdb',
16                  source=PDB_TDBSAM_SRC,
17                  deps='samba-util',
18                  init_function='',
19                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_tdbsam'),
20                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_tdbsam'))
21
22 bld.SAMBA3_MODULE('pdb_ldap',
23                  subsystem='pdb',
24                  source=PDB_LDAP_SRC,
25                  init_function='',
26                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ldap'),
27                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ldap') and bld.env.HAVE_LDAP)
28
29 bld.SAMBA3_MODULE('pdb_ads',
30                  subsystem='pdb',
31                  source=PDB_ADS_SRC,
32                  deps='cli-ldap-common TLDAP',
33                  init_function='',
34                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ads'),
35                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ads'))
36
37 bld.SAMBA3_MODULE('pdb_smbpasswd',
38                  subsystem='pdb',
39                  source=PDB_SMBPASSWD_SRC,
40                  deps='samba-util',
41                  init_function='',
42                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_smbpasswd'),
43                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_smbpasswd'))
44
45 bld.SAMBA3_MODULE('pdb_wbc_sam',
46                  subsystem='pdb',
47                  source=PDB_WBC_SAM_SRC,
48                  deps='samba-util',
49                  init_function='',
50                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_wbc_sam'),
51                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_wbc_sam'))
52
53 bld.SAMBA3_MODULE('pdb_samba4',
54                   subsystem='pdb',
55                   source='pdb_samba4.c',
56                   init_function='',
57                   deps='IDMAP samdb',
58                   allow_undefined_symbols=False,
59                   internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_samba4'),
60                   enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba4'))
61