summaryrefslogtreecommitdiffstats
path: root/lib/ldb-samba/wscript_build
blob: d02bc9564deffc31d8c35cf9dd3a8cff52c39c25 (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
#!/usr/bin/env python

# LDBSAMBA gets included in the ldb build when we are building ldb_ildap 
# as a built-in module and this delutes the symbols in the ldb library with 
# the symbols of all of ldb_ildap's dependencies. 

bld.SAMBA_LIBRARY('ldbsamba',
                  source='ldif_handlers.c ldb_matching_rules.c',
                  autoproto='ldif_handlers_proto.h',
                  public_deps='ldb',
                  deps='samba-security ndr NDR_DRSBLOBS NDR_DNSP ldbwrap samdb-common SAMDB_SCHEMA tdb samba-errors',
                  private_library=True
                  )

bld.SAMBA_SUBSYSTEM('ldbwrap',
                    source='ldb_wrap.c',
                    public_headers='ldb_wrap.h',
                    deps='ldb samba-util ldbsamba samba-hostconfig'
                    )

pyparam_util = bld.pyembed_libname('pyparam_util')
pyldb_util = bld.pyembed_libname('pyldb-util')
pyauth = 'pyauth'
bld.SAMBA_PYTHON('python_samba__ldb', 'pyldb.c',
                 deps='ldbsamba %s ldbwrap %s %s' % (pyparam_util, pyldb_util, pyauth),
                 realname='samba/_ldb.so')

bld.SAMBA_MODULE('ldbsamba_extensions',
                 source='samba_extensions.c',
                 init_function='ldb_samba_extensions_init',
                 module_init_name='ldb_init_module',
                 subsystem='ldb',
                 deps='ldb ldbsamba CMDLINE_S4 gensec',
                 internal_module=False)


# the s4-internal ldap backend
bld.SAMBA_MODULE('ldb_ildap',
                 source='ldb_ildap.c',
                 init_function='ldb_ildap_init',
                 module_init_name='ldb_init_module',
                 deps='talloc cli-ldap samba-credentials auth_system_session',
                 internal_module=False,
                 subsystem='ldb')