VERSION: Bump version up to 4.10.10...
[Samba.git] / source4 / param / wscript_build
blobcf2b7009ea1ba96fcdd2d59d7c7cc533e24f35fe
1 #!/usr/bin/env python
2 for env in bld.gen_python_environments():
3 name = bld.pyembed_libname('PROVISION')
4 pytalloc_util = bld.pyembed_libname('pytalloc-util')
5 pyparam_util = bld.pyembed_libname('pyparam_util')
6 libpython = bld.pyembed_libname('LIBPYTHON')
8 pyldb_util = bld.pyembed_libname('pyldb-util')
9 bld.SAMBA_SUBSYSTEM(name,
10 source='provision.c pyparam.c',
11 deps='%s %s ldb %s %s' % (libpython, pyparam_util, pytalloc_util, pyldb_util),
12 pyext=True,
13 enabled=bld.PYTHON_BUILD_IS_ENABLED(),
17 bld.SAMBA_SUBSYSTEM('share',
18 source='share.c',
19 public_headers='share.h',
20 deps='samba-util samba-modules'
24 bld.SAMBA_MODULE('share_classic',
25 source='share_classic.c',
26 subsystem='share',
27 init_function='share_classic_init',
28 deps='samba-util'
32 bld.SAMBA_MODULE('share_ldb',
33 source='share_ldb.c',
34 subsystem='share',
35 init_function='share_ldb_init',
36 deps='ldbsamba auth_system_session'
40 bld.SAMBA_SUBSYSTEM('SECRETS',
41 source='secrets.c',
42 deps='ldb tdb-wrap util_tdb NDR_SECURITY tevent ldbwrap'
45 for env in bld.gen_python_environments():
46 pytalloc_util = bld.pyembed_libname('pytalloc-util')
47 pyparam_util = bld.pyembed_libname('pyparam_util')
48 libpython = bld.pyembed_libname('LIBPYTHON')
50 bld.SAMBA_PYTHON('pyparam',
51 source='pyparam.c',
52 deps='samba-hostconfig %s' % pytalloc_util,
53 realname='samba/param.so'
56 bld.SAMBA_SUBSYSTEM(pyparam_util,
57 source='pyparam_util.c',
58 deps='%s samba-hostconfig %s' % (libpython, pytalloc_util),
59 pyext=True,
60 enabled=bld.PYTHON_BUILD_IS_ENABLED()
63 bld.SAMBA_SUBSYSTEM('param_options',
64 source='loadparm.c',
65 deps='samba-hostconfig')
68 bld.SAMBA_LIBRARY('shares',
69 source=[],
70 deps='share',
71 grouping_library=True,
72 private_library=True)