mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
676e80bb5f
Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
#!/usr/bin/env python
|
|
|
|
bld.SAMBA_LIBRARY('samba_python',
|
|
source=[],
|
|
deps='LIBPYTHON pytalloc-util pyrpc_util',
|
|
grouping_library=True,
|
|
private_library=True,
|
|
pyembed=True,
|
|
enabled=bld.PYTHON_BUILD_IS_ENABLED())
|
|
|
|
bld.SAMBA_SUBSYSTEM('LIBPYTHON',
|
|
source='modules.c',
|
|
public_deps='',
|
|
init_function_sentinel='{NULL,NULL}',
|
|
deps='talloc',
|
|
pyext=True,
|
|
enabled=bld.PYTHON_BUILD_IS_ENABLED())
|
|
|
|
for env in bld.gen_python_environments():
|
|
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
|
pyparam_util = bld.pyembed_libname('pyparam_util')
|
|
|
|
bld.SAMBA_PYTHON('python_glue',
|
|
source='pyglue.c',
|
|
deps='%s samba-util netif %s' % (pyparam_util, pytalloc_util),
|
|
realname='samba/_glue.so'
|
|
)
|
|
|
|
if bld.PYTHON_BUILD_IS_ENABLED():
|
|
for env in bld.gen_python_environments():
|
|
# install out various python scripts for use by make test
|
|
bld.SAMBA_SCRIPT('samba_python_files',
|
|
pattern='samba/**/*.py',
|
|
installdir='python')
|
|
|
|
bld.INSTALL_WILDCARD('${PYTHONARCHDIR}', 'samba/**/*.py', flat=False)
|