Search for location of waf script
[Samba.git] / lib / ldb-samba / wscript_build
blobc8464261d61fea9ca52dea6c144ee99f3392b10e
1 #!/usr/bin/env python
3 # LDBSAMBA gets included in the ldb build when we are building ldb_ildap
4 # as a built-in module and this delutes the symbols in the ldb library with
5 # the symbols of all of ldb_ildap's dependencies.
7 bld.SAMBA_LIBRARY('ldbsamba',
8 source='ldif_handlers.c ldb_matching_rules.c',
9 autoproto='ldif_handlers_proto.h',
10 public_deps='ldb',
11 deps='samba-security ndr NDR_DRSBLOBS NDR_DNSP ldbwrap samdb-common SAMDB_SCHEMA tdb samba-errors',
12 private_library=True
15 bld.SAMBA_SUBSYSTEM('ldbwrap',
16 source='ldb_wrap.c',
17 public_headers='ldb_wrap.h',
18 deps='ldb samba-util ldbsamba samba-hostconfig'
21 for env in bld.gen_python_environments():
22 pyparam_util = bld.pyembed_libname('pyparam_util')
23 pyldb_util = bld.pyembed_libname('pyldb-util')
24 pyauth = 'pyauth'
25 if bld.env['IS_EXTRA_PYTHON']:
26 pyauth = 'extra-' + pyauth
27 bld.SAMBA_PYTHON('python_samba__ldb', 'pyldb.c',
28 deps='ldbsamba %s ldbwrap %s %s' % (pyparam_util, pyldb_util, pyauth),
29 realname='samba/_ldb.so')
31 bld.SAMBA_MODULE('ldbsamba_extensions',
32 source='samba_extensions.c',
33 init_function='ldb_samba_extensions_init',
34 module_init_name='ldb_init_module',
35 subsystem='ldb',
36 deps='ldb ldbsamba POPT_SAMBA POPT_CREDENTIALS cmdline-credentials gensec',
37 internal_module=False)
40 # the s4-internal ldap backend
41 bld.SAMBA_MODULE('ldb_ildap',
42 source='ldb_ildap.c',
43 init_function='ldb_ildap_init',
44 module_init_name='ldb_init_module',
45 deps='talloc cli-ldap samba-credentials auth_system_session',
46 internal_module=False,
47 subsystem='ldb')