2013-10-14 04:47:27 +04:00
#!/usr/bin/env python
bld.SAMBA3_SUBSYSTEM('PARAM_UTIL',
source='util.c',
deps='talloc')
bld.SAMBA3_SUBSYSTEM('LOADPARM_CTX',
source='loadparm_ctx.c',
2016-11-22 15:47:32 +03:00
deps='''talloc smbconf''')
2013-10-14 04:47:27 +04:00
2013-10-14 06:39:10 +04:00
bld.SAMBA_GENERATOR('s3_param_proto_h',
2014-01-15 08:05:51 +04:00
source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
2013-10-14 06:39:10 +04:00
target='param_proto.h',
2014-02-03 07:44:32 +04:00
group='build_source',
2014-01-15 08:05:51 +04:00
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=S3PROTO')
2013-10-14 06:39:10 +04:00
2019-02-15 06:37:48 +03:00
pytalloc_util = bld.pyembed_libname('pytalloc-util')
2020-10-21 18:40:32 +03:00
pyparam_util = bld.pyembed_libname('pyparam3_util')
libpython = bld.pyembed_libname('LIBPYTHON')
2019-02-15 06:37:48 +03:00
bld.SAMBA3_PYTHON('pys3param',
2013-10-14 04:47:27 +04:00
source='pyparam.c',
2020-10-21 18:40:32 +03:00
deps='smbconf %s' % pyparam_util,
2018-03-28 05:53:50 +03:00
public_deps=' '.join(['samba-hostconfig', pytalloc_util, 'talloc']),
2013-10-14 04:47:27 +04:00
realname='samba/samba3/param.so')
2020-10-21 18:40:32 +03:00
bld.SAMBA3_SUBSYSTEM(pyparam_util,
source='pyparam_util.c',
deps='%s samba-hostconfig %s' % (libpython, pytalloc_util),
pyext=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
)
2013-10-14 04:47:27 +04:00
bld.SAMBA3_SUBSYSTEM('param_service',
source='service.c',
2021-06-18 20:11:19 +03:00
deps = 'USER_UTIL smbconf')
2013-10-14 04:47:27 +04:00
bld.SAMBA3_BINARY('test_lp_load',
source='test_lp_load.c',
deps='''
talloc
2016-11-22 15:47:32 +03:00
smbconf
2021-01-08 10:27:19 +03:00
CMDLINE_S3''',
2013-10-14 04:47:27 +04:00
install=False)