2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2019-02-15 06:37:48 +03:00
name = bld.pyembed_libname('PROVISION')
pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyparam_util = bld.pyembed_libname('pyparam_util')
libpython = bld.pyembed_libname('LIBPYTHON')
pyldb_util = bld.pyembed_libname('pyldb-util')
bld.SAMBA_SUBSYSTEM(name,
source='provision.c pyparam.c',
deps='%s %s ldb %s %s' % (libpython, pyparam_util, pytalloc_util, pyldb_util),
pyext=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED(),
)
2010-03-17 14:07:42 +03:00
bld.SAMBA_SUBSYSTEM('share',
source='share.c',
public_headers='share.h',
2011-12-03 10:03:35 +04:00
deps='samba-util samba-modules'
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_MODULE('share_classic',
source='share_classic.c',
subsystem='share',
init_function='share_classic_init',
2021-03-25 01:50:14 +03:00
deps='samba-util samba-hostconfig'
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_SUBSYSTEM('SECRETS',
source='secrets.c',
2012-05-03 20:26:35 +04:00
deps='ldb tdb-wrap util_tdb NDR_SECURITY tevent ldbwrap'
2010-03-17 14:07:42 +03:00
)
2019-02-15 06:37:48 +03:00
pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyparam_util = bld.pyembed_libname('pyparam_util')
libpython = bld.pyembed_libname('LIBPYTHON')
2016-12-10 17:01:17 +03:00
2019-02-15 06:37:48 +03:00
bld.SAMBA_PYTHON('pyparam',
source='pyparam.c',
deps='samba-hostconfig %s' % pytalloc_util,
realname='samba/param.so'
)
2016-12-10 17:01:17 +03:00
2019-02-15 06:37:48 +03:00
bld.SAMBA_SUBSYSTEM(pyparam_util,
source='pyparam_util.c',
deps='%s samba-hostconfig %s' % (libpython, pytalloc_util),
pyext=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
)
2010-03-17 14:07:42 +03:00
2011-10-06 12:34:50 +04:00
bld.SAMBA_SUBSYSTEM('param_options',
source='loadparm.c',
deps='samba-hostconfig')
2010-03-17 14:07:42 +03:00
2010-10-24 05:41:59 +04:00
bld.SAMBA_LIBRARY('shares',
2010-10-21 07:56:59 +04:00
source=[],
2011-07-26 15:32:39 +04:00
deps='share',
2010-10-21 07:56:59 +04:00
grouping_library=True,
private_library=True)