mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
6210510146
pypolicy module needs appropriate samba_policy library for extra-python/py3 therefore we need to build it for it to be available Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
24 lines
657 B
Python
24 lines
657 B
Python
#!/usr/bin/env python
|
|
|
|
|
|
|
|
for env in bld.gen_python_environments():
|
|
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
|
samba_policy = bld.pyembed_libname('samba-policy')
|
|
samba_net = bld.pyembed_libname('samba-net')
|
|
bld.SAMBA_LIBRARY(samba_policy,
|
|
source='gp_ldap.c gp_filesys.c gp_manage.c gp_ini.c',
|
|
pc_files='samba-policy.pc',
|
|
public_deps='ldb %s' % samba_net,
|
|
vnum='0.0.1',
|
|
pyembed=True,
|
|
public_headers='policy.h',
|
|
enabled=bld.PYTHON_BUILD_IS_ENABLED()
|
|
)
|
|
bld.SAMBA_PYTHON(
|
|
'py_policy',
|
|
source='pypolicy.c',
|
|
public_deps='%s %s' % (samba_policy, pytalloc_util),
|
|
realname='samba/policy.so'
|
|
)
|