summaryrefslogtreecommitdiff
path: root/source3/passdb/wscript_build
blob: c741bfad58730f4201bf64908defb49293c01e50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python

PDB_TDBSAM_SRC =    'pdb_tdb.c'
PDB_LDAP_SRC =      'pdb_ldap.c pdb_nds.c pdb_ipa.c'
PDB_ADS_SRC =       'pdb_ads.c'
PDB_SMBPASSWD_SRC = 'pdb_smbpasswd.c'
PDB_WBC_SAM_SRC =   'pdb_wbc_sam.c'

bld.SAMBA3_SUBSYSTEM('pdb',
                    source='pdb_interface.c',
                    deps='',
                    vars=locals())

bld.SAMBA3_MODULE('pdb_tdbsam',
                 subsystem='pdb',
                 source=PDB_TDBSAM_SRC,
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_tdbsam'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_tdbsam'))

bld.SAMBA3_MODULE('pdb_ldap',
                 subsystem='pdb',
                 source=PDB_LDAP_SRC,
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ldap'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ldap') and bld.env.HAVE_LDAP)

bld.SAMBA3_MODULE('pdb_ads',
                 subsystem='pdb',
                 source=PDB_ADS_SRC,
                 deps='cli-ldap-common TLDAP',
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ads'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ads'))

bld.SAMBA3_MODULE('pdb_smbpasswd',
                 subsystem='pdb',
                 source=PDB_SMBPASSWD_SRC,
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_smbpasswd'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_smbpasswd'))

bld.SAMBA3_MODULE('pdb_wbc_sam',
                 subsystem='pdb',
                 source=PDB_WBC_SAM_SRC,
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_wbc_sam'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_wbc_sam'))

bld.SAMBA3_MODULE('pdb_samba4',
                  subsystem='pdb',
                  source='pdb_samba4.c',
                  init_function='',
                  deps='IDMAP samdb',
                  allow_undefined_symbols=False,
                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_samba4'),
                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba4'))