build: Reduce build systems to just top level waf and autoconf
[amitay/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_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'))
16
17 bld.SAMBA3_MODULE('pdb_ldap',
18                  subsystem='pdb',
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)
23
24 bld.SAMBA3_MODULE('pdb_ads',
25                  subsystem='pdb',
26                  source=PDB_ADS_SRC,
27                  deps='cli-ldap-common TLDAP',
28                  init_function='',
29                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ads'),
30                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ads'))
31
32 bld.SAMBA3_MODULE('pdb_smbpasswd',
33                  subsystem='pdb',
34                  source=PDB_SMBPASSWD_SRC,
35                  deps='samba-util',
36                  init_function='',
37                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_smbpasswd'),
38                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_smbpasswd'))
39
40 bld.SAMBA3_MODULE('pdb_wbc_sam',
41                  subsystem='pdb',
42                  source=PDB_WBC_SAM_SRC,
43                  deps='samba-util',
44                  init_function='',
45                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_wbc_sam'),
46                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_wbc_sam'))
47
48 bld.SAMBA3_MODULE('pdb_samba4',
49                   subsystem='pdb',
50                   source='pdb_samba4.c',
51                   init_function='',
52                   deps='IDMAP samdb',
53                   internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_samba4'),
54                   enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba4'))
55
56 bld.SAMBA3_PYTHON('pypassdb',
57                   source='py_passdb.c',
58                   deps='pdb',
59                   public_deps='samba-util tdb talloc pyrpc_util',
60                   realname='samba/samba3/passdb.so'
61                   )