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
),
13 enabled
=bld
.PYTHON_BUILD_IS_ENABLED(),
17 bld
.SAMBA_SUBSYSTEM('share',
19 public_headers
='share.h',
20 deps
='samba-util samba-modules'
24 bld
.SAMBA_MODULE('share_classic',
25 source
='share_classic.c',
27 init_function
='share_classic_init',
32 bld
.SAMBA_MODULE('share_ldb',
35 init_function
='share_ldb_init',
36 deps
='ldbsamba auth_system_session'
40 bld
.SAMBA_SUBSYSTEM('SECRETS',
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',
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
),
60 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
63 bld
.SAMBA_SUBSYSTEM('param_options',
65 deps
='samba-hostconfig')
68 bld
.SAMBA_LIBRARY('shares',
71 grouping_library
=True,