2010-03-28 09:48:49 +11:00
#!/usr/bin/env python
2019-02-15 16:37:48 +13: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 22:07:42 +11:00
bld.SAMBA_SUBSYSTEM('share',
source='share.c',
public_headers='share.h',
2011-12-03 07:03:35 +01:00
deps='samba-util samba-modules'
2010-03-17 22:07:42 +11:00
)
bld.SAMBA_MODULE('share_classic',
source='share_classic.c',
subsystem='share',
init_function='share_classic_init',
2010-10-24 10:42:58 -07:00
deps='samba-util'
2010-03-17 22:07:42 +11:00
)
bld.SAMBA_MODULE('share_ldb',
source='share_ldb.c',
subsystem='share',
init_function='share_ldb_init',
2010-11-07 01:57:34 +01:00
deps='ldbsamba auth_system_session'
2010-03-17 22:07:42 +11:00
)
bld.SAMBA_SUBSYSTEM('SECRETS',
source='secrets.c',
2012-05-03 18:26:35 +02:00
deps='ldb tdb-wrap util_tdb NDR_SECURITY tevent ldbwrap'
2010-03-17 22:07:42 +11:00
)
2019-02-15 16:37:48 +13:00
pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyparam_util = bld.pyembed_libname('pyparam_util')
libpython = bld.pyembed_libname('LIBPYTHON')
2016-12-10 15:01:17 +01:00
2019-02-15 16:37:48 +13:00
bld.SAMBA_PYTHON('pyparam',
source='pyparam.c',
deps='samba-hostconfig %s' % pytalloc_util,
realname='samba/param.so'
)
2016-12-10 15:01:17 +01:00
2019-02-15 16:37:48 +13: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 22:07:42 +11:00
2011-10-06 19:34:50 +11:00
bld.SAMBA_SUBSYSTEM('param_options',
source='loadparm.c',
deps='samba-hostconfig')
2010-03-17 22:07:42 +11:00
2010-10-23 18:41:59 -07:00
bld.SAMBA_LIBRARY('shares',
2010-10-21 14:56:59 +11:00
source=[],
2011-07-26 13:32:39 +02:00
deps='share',
2010-10-21 14:56:59 +11:00
grouping_library=True,
private_library=True)