mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
build: Remove bld.gen_python_environments()
This was part of --extra-python support. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
270d04e4ea
commit
fdb6305c86
@ -24,12 +24,11 @@ bld.SAMBA_SUBSYSTEM('CREDENTIALS_NTLM',
|
||||
source='credentials_ntlm.c',
|
||||
deps='samba-credentials')
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
|
||||
bld.SAMBA_PYTHON('pycredentials',
|
||||
bld.SAMBA_PYTHON('pycredentials',
|
||||
source='pycredentials.c',
|
||||
public_deps='samba-credentials cmdline-credentials %s %s CREDENTIALS_KRB5 CREDENTIALS_SECRETS' % (pytalloc_util, pyparam_util),
|
||||
realname='samba/credentials.so'
|
||||
)
|
||||
)
|
||||
|
@ -160,13 +160,3 @@ def pyembed_libname(bld, name):
|
||||
Build.BuildContext.pyembed_libname = pyembed_libname
|
||||
|
||||
|
||||
def gen_python_environments(bld, extra_env_vars=()):
|
||||
"""Generate all Python environments
|
||||
|
||||
To be used in a for loop. Normally, the loop body will be executed once.
|
||||
|
||||
When --extra-python is used, the body will additionaly be executed
|
||||
with the extra-python environment active.
|
||||
"""
|
||||
yield
|
||||
Build.BuildContext.gen_python_environments = gen_python_environments
|
||||
|
@ -29,8 +29,7 @@ bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
|
||||
deps='LIBCRYPTO'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
bld.SAMBA_PYTHON('python_crypto',
|
||||
bld.SAMBA_PYTHON('python_crypto',
|
||||
source='py_crypto.c',
|
||||
deps='LIBCRYPTO',
|
||||
realname='samba/crypto.so'
|
||||
|
@ -18,11 +18,10 @@ bld.SAMBA_SUBSYSTEM('ldbwrap',
|
||||
deps='ldb samba-util ldbsamba samba-hostconfig'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pyldb_util = bld.pyembed_libname('pyldb-util')
|
||||
pyauth = 'pyauth'
|
||||
bld.SAMBA_PYTHON('python_samba__ldb', 'pyldb.c',
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pyldb_util = bld.pyembed_libname('pyldb-util')
|
||||
pyauth = 'pyauth'
|
||||
bld.SAMBA_PYTHON('python_samba__ldb', 'pyldb.c',
|
||||
deps='ldbsamba %s ldbwrap %s %s' % (pyparam_util, pyldb_util, pyauth),
|
||||
realname='samba/_ldb.so')
|
||||
|
||||
|
@ -234,8 +234,6 @@ def build(bld):
|
||||
|
||||
if bld.PYTHON_BUILD_IS_ENABLED():
|
||||
if not bld.CONFIG_SET('USING_SYSTEM_PYLDB_UTIL'):
|
||||
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
|
||||
|
||||
name = bld.pyembed_libname('pyldb-util')
|
||||
bld.SAMBA_LIBRARY(name,
|
||||
deps='replace ldb',
|
||||
@ -259,7 +257,6 @@ def build(bld):
|
||||
# Do only install this file as part of the Samba build if we do not
|
||||
# use the system libldb!
|
||||
if not bld.CONFIG_SET('USING_SYSTEM_PYLDB_UTIL'):
|
||||
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
|
||||
bld.SAMBA_SCRIPT('_ldb_text.py',
|
||||
pattern='_ldb_text.py',
|
||||
installdir='python')
|
||||
|
@ -133,7 +133,6 @@ def build(bld):
|
||||
manpages='man/talloc.3')
|
||||
|
||||
if not bld.CONFIG_SET('USING_SYSTEM_PYTALLOC_UTIL'):
|
||||
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
|
||||
name = bld.pyembed_libname('pytalloc-util')
|
||||
|
||||
bld.SAMBA_LIBRARY(name,
|
||||
|
@ -182,7 +182,6 @@ def build(bld):
|
||||
includes='include', install=False)
|
||||
|
||||
if not bld.CONFIG_SET('USING_SYSTEM_PYTDB'):
|
||||
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
|
||||
bld.SAMBA_PYTHON('pytdb',
|
||||
'pytdb.c',
|
||||
deps='tdb',
|
||||
@ -191,7 +190,6 @@ def build(bld):
|
||||
cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
|
||||
|
||||
if not bld.env.disable_python:
|
||||
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
|
||||
bld.SAMBA_SCRIPT('_tdb_text.py',
|
||||
pattern='_tdb_text.py',
|
||||
installdir='python')
|
||||
|
@ -114,7 +114,6 @@ def build(bld):
|
||||
private_library=private_library)
|
||||
|
||||
if not bld.CONFIG_SET('USING_SYSTEM_PYTEVENT') and not bld.env.disable_python:
|
||||
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
|
||||
bld.SAMBA_PYTHON('_tevent',
|
||||
'pytevent.c',
|
||||
deps='tevent',
|
||||
|
@ -24,8 +24,7 @@ bld.SAMBA_BINARY('nmblookup' + bld.env.suffix4,
|
||||
install=False
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
bld.SAMBA_PYTHON('python_netbios',
|
||||
bld.SAMBA_PYTHON('python_netbios',
|
||||
source='pynbt.c',
|
||||
public_deps='cli-nbt DYNCONFIG samba-hostconfig',
|
||||
realname='samba/netbios.so'
|
||||
|
@ -7,9 +7,8 @@ bld.SAMBA_LIBRARY('samba-security',
|
||||
deps='talloc ndr NDR_SECURITY'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
bld.SAMBA_PYTHON('pysecurity',
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
bld.SAMBA_PYTHON('pysecurity',
|
||||
source='pysecurity.c',
|
||||
deps='samba-security %s' % pytalloc_util,
|
||||
realname='samba/security.so'
|
||||
|
@ -26,14 +26,13 @@ bld.SAMBA_GENERATOR('werror_generated',
|
||||
rule='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
bld.SAMBA_PYTHON('python_ntstatus',
|
||||
bld.SAMBA_PYTHON('python_ntstatus',
|
||||
source='py_ntstatus.c',
|
||||
deps='samba-errors',
|
||||
realname='samba/ntstatus.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_werror',
|
||||
bld.SAMBA_PYTHON('python_werror',
|
||||
source='py_werror.c',
|
||||
deps='samba-errors',
|
||||
realname='samba/werror.so'
|
||||
|
@ -14,9 +14,8 @@ bld.SAMBA3_LIBRARY('gpext',
|
||||
deps='talloc ads TOKEN_UTIL auth gpo',
|
||||
private_library=True)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
bld.SAMBA3_PYTHON('python_samba_libgpo', 'pygpo.c',
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
bld.SAMBA3_PYTHON('python_samba_libgpo', 'pygpo.c',
|
||||
deps='%s gpext talloc ads TOKEN_UTIL auth %s' % (pyparam_util, pyrpc_util),
|
||||
realname='samba/gpo.so')
|
||||
|
@ -44,7 +44,6 @@ def configure(conf):
|
||||
def build(bld):
|
||||
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
libpython = bld.pyembed_libname('LIBPYTHON')
|
||||
@ -76,7 +75,6 @@ def build(bld):
|
||||
enabled=bld.PYTHON_BUILD_IS_ENABLED())
|
||||
|
||||
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',
|
||||
|
@ -14,9 +14,8 @@ bld.SAMBA_GENERATOR('s3_param_proto_h',
|
||||
group='build_source',
|
||||
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=S3PROTO')
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
bld.SAMBA3_PYTHON('pys3param',
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
bld.SAMBA3_PYTHON('pys3param',
|
||||
source='pyparam.c',
|
||||
deps='smbconf',
|
||||
public_deps=' '.join(['samba-hostconfig', pytalloc_util, 'talloc']),
|
||||
|
@ -32,10 +32,9 @@ bld.SAMBA3_MODULE('pdb_samba_dsdb',
|
||||
internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_samba_dsdb') and bld.AD_DC_BUILD_IS_ENABLED(),
|
||||
enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba_dsdb') and bld.AD_DC_BUILD_IS_ENABLED())
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
bld.SAMBA3_PYTHON('pypassdb',
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
bld.SAMBA3_PYTHON('pypassdb',
|
||||
source='py_passdb.c',
|
||||
deps='pdb',
|
||||
public_deps=' '.join(['samba-util', 'tdb', 'talloc', pyrpc_util, pytalloc_util]),
|
||||
|
@ -1316,18 +1316,16 @@ bld.SAMBA3_BINARY('vlp',
|
||||
install=False)
|
||||
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
bld.SAMBA3_PYTHON('pysmbd',
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
bld.SAMBA3_PYTHON('pysmbd',
|
||||
source='smbd/pysmbd.c',
|
||||
deps=' '.join(['smbd_base', pyrpc_util, pytalloc_util]),
|
||||
realname='samba/samba3/smbd.so'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pycredentials = 'pycredentials'
|
||||
bld.SAMBA3_PYTHON('pylibsmb',
|
||||
pycredentials = 'pycredentials'
|
||||
bld.SAMBA3_PYTHON('pylibsmb',
|
||||
source='libsmb/pylibsmb.c',
|
||||
deps='smbclient samba-credentials %s' % pycredentials,
|
||||
realname='samba/samba3/libsmb_samba_internal.so'
|
||||
|
@ -27,11 +27,10 @@ bld.SAMBA_MODULE('gensec_gssapi',
|
||||
)
|
||||
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
|
||||
bld.SAMBA_PYTHON('pygensec',
|
||||
bld.SAMBA_PYTHON('pygensec',
|
||||
source='pygensec.c',
|
||||
deps='gensec %s %s' % (pytalloc_util, pyparam_util),
|
||||
realname='samba/gensec.so'
|
||||
|
@ -49,12 +49,11 @@ bld.SAMBA_BINARY('test_kerberos',
|
||||
install=False
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pyldb_util = bld.pyembed_libname('pyldb-util')
|
||||
pycredentials = 'pycredentials'
|
||||
bld.SAMBA_PYTHON('pyauth',
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pyldb_util = bld.pyembed_libname('pyldb-util')
|
||||
pycredentials = 'pycredentials'
|
||||
bld.SAMBA_PYTHON('pyauth',
|
||||
source='pyauth.c',
|
||||
public_deps='auth_system_session',
|
||||
deps='samdb %s %s %s %s auth4' % (pytalloc_util, pyparam_util, pyldb_util, pycredentials),
|
||||
|
@ -75,12 +75,11 @@ bld.SAMBA_LIBRARY('dlz_bind9_for_torture',
|
||||
deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
|
||||
enabled=bld.AD_DC_BUILD_IS_ENABLED())
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyldb_util = bld.pyembed_libname('pyldb-util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyldb_util = bld.pyembed_libname('pyldb-util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
|
||||
bld.SAMBA_PYTHON('python_dsdb_dns',
|
||||
bld.SAMBA_PYTHON('python_dsdb_dns',
|
||||
source='pydns.c',
|
||||
deps='samdb %s %s dnsserver_common %s' % (
|
||||
pyldb_util, pyrpc_util, pytalloc_util),
|
||||
|
@ -69,11 +69,10 @@ bld.SAMBA_MODULE('service_dns_update',
|
||||
enabled=bld.AD_DC_BUILD_IS_ENABLED()
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyldb_util = bld.pyembed_libname('pyldb-util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
bld.SAMBA_PYTHON('python_dsdb',
|
||||
pyldb_util = bld.pyembed_libname('pyldb-util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
bld.SAMBA_PYTHON('python_dsdb',
|
||||
source='pydsdb.c',
|
||||
# the dependency on dcerpc here is because gensec
|
||||
# depends on dcerpc but the waf circular dependency finder
|
||||
|
@ -13,12 +13,10 @@ bld.SAMBA_LIBRARY('MESSAGING',
|
||||
private_library=True
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
|
||||
bld.SAMBA_PYTHON('python_messaging',
|
||||
bld.SAMBA_PYTHON('python_messaging',
|
||||
source='pymessaging.c',
|
||||
deps='MESSAGING events %s %s' % (pyparam_util, pytalloc_util),
|
||||
realname='samba/messaging.so'
|
||||
|
@ -2,11 +2,10 @@
|
||||
|
||||
|
||||
|
||||
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,
|
||||
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,
|
||||
@ -15,7 +14,7 @@ for env in bld.gen_python_environments():
|
||||
public_headers='policy.h',
|
||||
enabled=bld.PYTHON_BUILD_IS_ENABLED()
|
||||
)
|
||||
bld.SAMBA_PYTHON(
|
||||
bld.SAMBA_PYTHON(
|
||||
'py_policy',
|
||||
source='pypolicy.c',
|
||||
public_deps='%s %s' % (samba_policy, pytalloc_util),
|
||||
|
@ -59,11 +59,10 @@ bld.SAMBA_SUBSYSTEM('torture_registry',
|
||||
deps='torture registry'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
|
||||
bld.SAMBA_PYTHON('py_registry',
|
||||
bld.SAMBA_PYTHON('py_registry',
|
||||
source='pyregistry.c',
|
||||
public_deps='registry %s %s' % (pytalloc_util, pyparam_util),
|
||||
realname='samba/registry.so'
|
||||
|
@ -1,12 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
provision = bld.pyembed_libname('PROVISION')
|
||||
name = bld.pyembed_libname('samba-net')
|
||||
auto_proto='libnet_proto.h'
|
||||
bld.SAMBA_LIBRARY(name,
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
provision = bld.pyembed_libname('PROVISION')
|
||||
name = bld.pyembed_libname('samba-net')
|
||||
auto_proto='libnet_proto.h'
|
||||
bld.SAMBA_LIBRARY(name,
|
||||
source='libnet.c libnet_passwd.c libnet_time.c libnet_rpc.c libnet_join.c libnet_site.c libnet_become_dc.c libnet_unbecome_dc.c libnet_vampire.c libnet_samdump.c libnet_samsync_ldb.c libnet_user.c libnet_group.c libnet_share.c libnet_lookup.c libnet_domain.c userinfo.c groupinfo.c userman.c groupman.c prereq_domain.c libnet_samsync.c',
|
||||
autoproto=auto_proto,
|
||||
public_deps='samba-credentials dcerpc dcerpc-samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI cli_composite LIBCLI_RESOLVE LIBCLI_FINDDCS cli_cldap LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH ndr smbpasswdparser %s LIBCLI_SAMSYNC LIBTSOCKET' % (provision),
|
||||
@ -15,13 +14,13 @@ for env in bld.gen_python_environments():
|
||||
enabled=bld.PYTHON_BUILD_IS_ENABLED()
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_net',
|
||||
bld.SAMBA_PYTHON('python_net',
|
||||
source='py_net.c',
|
||||
deps='%s %s %s' % (name, pyrpc_util, pytalloc_util),
|
||||
realname='samba/net.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dckeytab',
|
||||
bld.SAMBA_PYTHON('python_dckeytab',
|
||||
source='py_net_dckeytab.c libnet_export_keytab.c',
|
||||
deps='%s db-glue krb5 com_err' % (pyrpc_util),
|
||||
realname='samba/dckeytab.so',
|
||||
|
@ -176,149 +176,148 @@ gen_cflags = ''
|
||||
if bld.CONFIG_SET('HAVE_WNO_UNUSED_FUNCTION'):
|
||||
gen_cflags = '-Wno-unused-function'
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
|
||||
bld.SAMBA_SUBSYSTEM(pyrpc_util,
|
||||
bld.SAMBA_SUBSYSTEM(pyrpc_util,
|
||||
source='rpc/pyrpc_util.c',
|
||||
public_deps='%s %s dcerpc MESSAGING' % (pytalloc_util, pyparam_util),
|
||||
pyext=True,
|
||||
enabled=bld.PYTHON_BUILD_IS_ENABLED(),
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc',
|
||||
bld.SAMBA_PYTHON('python_dcerpc',
|
||||
source='rpc/pyrpc.c',
|
||||
public_deps='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG %s gensec' % pyrpc_util,
|
||||
realname='samba/dcerpc/base.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_misc',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_misc',
|
||||
source='../../librpc/gen_ndr/py_misc.c',
|
||||
deps='%s %s ndr-krb5pac' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/misc.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_auth',
|
||||
bld.SAMBA_PYTHON('python_auth',
|
||||
source='../../librpc/gen_ndr/py_auth.c',
|
||||
deps='NDR_AUTH %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/auth.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_security',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_security',
|
||||
source='../../librpc/gen_ndr/py_security.c',
|
||||
deps='%s %s NDR_SECURITY' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/security.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_lsa',
|
||||
bld.SAMBA_PYTHON('python_lsa',
|
||||
source='../../librpc/gen_ndr/py_lsa.c',
|
||||
deps='RPC_NDR_LSA %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/lsa.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_krb5pac',
|
||||
bld.SAMBA_PYTHON('python_krb5pac',
|
||||
source='../../librpc/gen_ndr/py_krb5pac.c',
|
||||
deps='ndr-krb5pac %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/krb5pac.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_netlogon',
|
||||
bld.SAMBA_PYTHON('python_netlogon',
|
||||
source='../../librpc/gen_ndr/py_netlogon.c',
|
||||
deps='RPC_NDR_NETLOGON %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/netlogon.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_samr',
|
||||
bld.SAMBA_PYTHON('python_samr',
|
||||
source='../../librpc/gen_ndr/py_samr.c',
|
||||
deps='dcerpc-samr %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/samr.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_spoolss',
|
||||
bld.SAMBA_PYTHON('python_spoolss',
|
||||
source='../../librpc/gen_ndr/py_spoolss.c',
|
||||
deps='RPC_NDR_SPOOLSS %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/spoolss.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_winspool',
|
||||
bld.SAMBA_PYTHON('python_winspool',
|
||||
source='../../librpc/gen_ndr/py_winspool.c',
|
||||
deps='RPC_NDR_WINSPOOL %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/winspool.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_witness',
|
||||
bld.SAMBA_PYTHON('python_witness',
|
||||
source='../../librpc/gen_ndr/py_witness.c',
|
||||
deps='RPC_NDR_WITNESS %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/witness.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_nbt',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_nbt',
|
||||
source='../../librpc/gen_ndr/py_nbt.c',
|
||||
deps='ndr_nbt RPC_NDR_NBT %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/nbt.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
|
||||
source='../../librpc/gen_ndr/py_drsblobs.c',
|
||||
deps='%s %s NDR_SECURITY RPC_NDR_DRSBLOBS' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/drsblobs.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_ntlmssp',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_ntlmssp',
|
||||
source='../../librpc/gen_ndr/py_ntlmssp.c',
|
||||
deps='%s %s RPC_NDR_NTLMSSP' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/ntlmssp.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_srvsvc',
|
||||
bld.SAMBA_PYTHON('python_srvsvc',
|
||||
source='../../librpc/gen_ndr/py_srvsvc.c',
|
||||
deps='RPC_NDR_SRVSVC %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/srvsvc.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_echo',
|
||||
bld.SAMBA_PYTHON('python_echo',
|
||||
source='../../librpc/gen_ndr/py_echo.c',
|
||||
deps='RPC_NDR_ECHO %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/echo.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dns',
|
||||
bld.SAMBA_PYTHON('python_dns',
|
||||
source='../../librpc/gen_ndr/py_dns.c',
|
||||
deps='NDR_DNS %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/dns.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_winreg',
|
||||
bld.SAMBA_PYTHON('python_winreg',
|
||||
source='../../librpc/gen_ndr/py_winreg.c',
|
||||
deps='RPC_NDR_WINREG %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/winreg.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_preg',
|
||||
bld.SAMBA_PYTHON('python_preg',
|
||||
source='../../librpc/gen_ndr/py_preg.c',
|
||||
deps='NDR_PREG %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/preg.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_initshutdown',
|
||||
bld.SAMBA_PYTHON('python_initshutdown',
|
||||
source='../../librpc/gen_ndr/py_initshutdown.c',
|
||||
deps='RPC_NDR_INITSHUTDOWN %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/initshutdown.so',
|
||||
@ -326,7 +325,7 @@ for env in bld.gen_python_environments():
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_PYTHON('python_epmapper',
|
||||
bld.SAMBA_PYTHON('python_epmapper',
|
||||
source='../../librpc/gen_ndr/py_epmapper.c',
|
||||
deps='dcerpc %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/epmapper.so',
|
||||
@ -334,7 +333,7 @@ for env in bld.gen_python_environments():
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_PYTHON('python_mgmt',
|
||||
bld.SAMBA_PYTHON('python_mgmt',
|
||||
source='../../librpc/gen_ndr/py_mgmt.c',
|
||||
deps='dcerpc %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/mgmt.so',
|
||||
@ -342,7 +341,7 @@ for env in bld.gen_python_environments():
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_PYTHON('python_atsvc',
|
||||
bld.SAMBA_PYTHON('python_atsvc',
|
||||
source='../../librpc/gen_ndr/py_atsvc.c',
|
||||
deps='RPC_NDR_ATSVC %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/atsvc.so',
|
||||
@ -350,7 +349,7 @@ for env in bld.gen_python_environments():
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_PYTHON('python_svcctl',
|
||||
bld.SAMBA_PYTHON('python_svcctl',
|
||||
source='../../librpc/gen_ndr/py_svcctl.c',
|
||||
deps='RPC_NDR_SVCCTL %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/svcctl.so',
|
||||
@ -358,7 +357,7 @@ for env in bld.gen_python_environments():
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_PYTHON('python_wkssvc',
|
||||
bld.SAMBA_PYTHON('python_wkssvc',
|
||||
source='../../librpc/gen_ndr/py_wkssvc.c',
|
||||
deps='RPC_NDR_WKSSVC %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/wkssvc.so',
|
||||
@ -366,21 +365,21 @@ for env in bld.gen_python_environments():
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_PYTHON('python_dfs',
|
||||
bld.SAMBA_PYTHON('python_dfs',
|
||||
source='../../librpc/gen_ndr/py_dfs.c',
|
||||
deps='RPC_NDR_DFS %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/dfs.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_dcerpc',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_dcerpc',
|
||||
source='../../librpc/gen_ndr/py_dcerpc.c',
|
||||
deps='NDR_DCERPC %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/dcerpc.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_unixinfo',
|
||||
bld.SAMBA_PYTHON('python_unixinfo',
|
||||
source='../../librpc/gen_ndr/py_unixinfo.c',
|
||||
deps='RPC_NDR_UNIXINFO %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/unixinfo.so',
|
||||
@ -388,36 +387,36 @@ for env in bld.gen_python_environments():
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_PYTHON('python_irpc',
|
||||
bld.SAMBA_PYTHON('python_irpc',
|
||||
source='gen_ndr/py_irpc.c',
|
||||
deps='RPC_NDR_IRPC %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/irpc.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_server_id',
|
||||
bld.SAMBA_PYTHON('python_server_id',
|
||||
source='../../librpc/gen_ndr/py_server_id.c',
|
||||
deps='RPC_NDR_SERVER_ID %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/server_id.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
python_netlogon = 'python_netlogon'
|
||||
bld.SAMBA_PYTHON('python_winbind',
|
||||
python_netlogon = 'python_netlogon'
|
||||
bld.SAMBA_PYTHON('python_winbind',
|
||||
source='../../librpc/gen_ndr/py_winbind.c',
|
||||
deps='RPC_NDR_WINBIND %s %s %s' % (pytalloc_util, pyrpc_util, python_netlogon),
|
||||
realname='samba/dcerpc/winbind.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_drsuapi',
|
||||
bld.SAMBA_PYTHON('python_drsuapi',
|
||||
source='../../librpc/gen_ndr/py_drsuapi.c',
|
||||
deps='RPC_NDR_DRSUAPI %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/drsuapi.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_dnsp',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_dnsp',
|
||||
source='../../librpc/gen_ndr/py_dnsp.c',
|
||||
deps='%s %s NDR_SECURITY NDR_DNSP' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/dnsp.so',
|
||||
@ -425,49 +424,49 @@ for env in bld.gen_python_environments():
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_xattr',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_xattr',
|
||||
source='../../librpc/gen_ndr/py_xattr.c',
|
||||
deps='%s %s RPC_NDR_XATTR' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/xattr.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_idmap',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_idmap',
|
||||
source='../../librpc/gen_ndr/py_idmap.c',
|
||||
deps='%s %s RPC_NDR_XATTR' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/idmap.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dnsserver',
|
||||
bld.SAMBA_PYTHON('python_dnsserver',
|
||||
source='../../librpc/gen_ndr/py_dnsserver.c',
|
||||
deps='RPC_NDR_DNSSERVER %s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/dnsserver.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_dcerpc_smb_acl',
|
||||
bld.SAMBA_PYTHON('python_dcerpc_smb_acl',
|
||||
source='../../librpc/gen_ndr/py_smb_acl.c',
|
||||
deps='%s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/smb_acl.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('dcerpc_python_messaging',
|
||||
bld.SAMBA_PYTHON('dcerpc_python_messaging',
|
||||
source='../../librpc/gen_ndr/py_messaging.c',
|
||||
deps='%s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/messaging.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('dcerpc_windows_event_ids',
|
||||
bld.SAMBA_PYTHON('dcerpc_windows_event_ids',
|
||||
source='../../librpc/gen_ndr/py_windows_event_ids.c',
|
||||
deps='%s %s' % (pytalloc_util, pyrpc_util),
|
||||
realname='samba/dcerpc/windows_event_ids.so',
|
||||
cflags_end=gen_cflags
|
||||
)
|
||||
|
||||
if bld.PYTHON_BUILD_IS_ENABLED():
|
||||
for env in bld.gen_python_environments():
|
||||
bld.SAMBA_SCRIPT('python_dcerpc_init',
|
||||
pattern='rpc/dcerpc.py',
|
||||
installdir='python/samba/dcerpc',
|
||||
|
@ -47,22 +47,21 @@ bld.SAMBA_LIBRARY('posix_eadb',
|
||||
autoproto='posix_eadb_proto.h',
|
||||
private_library=True)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
|
||||
bld.SAMBA_PYTHON('python_xattr_native',
|
||||
bld.SAMBA_PYTHON('python_xattr_native',
|
||||
source='python/pyxattr_native.c',
|
||||
deps='ndr ldb samdb samba-credentials %s attr' % pyparam_util,
|
||||
realname='samba/xattr_native.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_posix_eadb',
|
||||
bld.SAMBA_PYTHON('python_posix_eadb',
|
||||
source='python/pyposix_eadb.c',
|
||||
deps='%s posix_eadb tdb' % pyparam_util,
|
||||
realname='samba/posix_eadb.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_xattr_tdb',
|
||||
bld.SAMBA_PYTHON('python_xattr_tdb',
|
||||
source='python/pyxattr_tdb.c',
|
||||
deps='%s xattr_tdb' % pyparam_util,
|
||||
realname='samba/xattr_tdb.so'
|
||||
|
@ -1,17 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
for env in bld.gen_python_environments():
|
||||
name = bld.pyembed_libname('PROVISION')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
libpython = bld.pyembed_libname('LIBPYTHON')
|
||||
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,
|
||||
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(),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('share',
|
||||
@ -42,18 +41,17 @@ bld.SAMBA_SUBSYSTEM('SECRETS',
|
||||
deps='ldb tdb-wrap util_tdb NDR_SECURITY tevent ldbwrap'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
libpython = bld.pyembed_libname('LIBPYTHON')
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
libpython = bld.pyembed_libname('LIBPYTHON')
|
||||
|
||||
bld.SAMBA_PYTHON('pyparam',
|
||||
bld.SAMBA_PYTHON('pyparam',
|
||||
source='pyparam.c',
|
||||
deps='samba-hostconfig %s' % pytalloc_util,
|
||||
realname='samba/param.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_SUBSYSTEM(pyparam_util,
|
||||
bld.SAMBA_SUBSYSTEM(pyparam_util,
|
||||
source='pyparam_util.c',
|
||||
deps='%s samba-hostconfig %s' % (libpython, pytalloc_util),
|
||||
pyext=True,
|
||||
|
1
third_party/pam_wrapper/wscript
vendored
1
third_party/pam_wrapper/wscript
vendored
@ -101,7 +101,6 @@ def build(bld):
|
||||
realname='pam_set_items.so')
|
||||
|
||||
# Can be used to write pam tests in python
|
||||
for env in bld.gen_python_environments():
|
||||
bld.SAMBA_PYTHON('pypamtest',
|
||||
source='python/pypamtest.c',
|
||||
deps='libpamtest',
|
||||
|
Loading…
Reference in New Issue
Block a user