1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Build python-ntdb bindings if ntdb was found but python-ntdb was not.

Change-Id: I54c248effa63fe65e2bef0d41535d8eec0ef28c0
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jelmer Vernooij 2014-12-15 17:33:49 +00:00 committed by Andrew Bartlett
parent b0cba7950a
commit bd13405e85

View File

@ -211,13 +211,13 @@ def build(bld):
deps='ntdb-test-helpers ntdb-api-helpers ntdb-testing',
install=False)
if not bld.CONFIG_SET('USING_SYSTEM_PYNTDB'):
bld.SAMBA_PYTHON('pyntdb',
source='pyntdb.c',
deps='ntdb',
enabled=not bld.env.disable_python,
realname='ntdb.so',
cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
if not bld.CONFIG_SET('USING_SYSTEM_PYNTDB'):
bld.SAMBA_PYTHON('pyntdb',
source='pyntdb.c',
deps='ntdb',
enabled=not bld.env.disable_python,
realname='ntdb.so',
cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
def testonly(ctx):
'''run ntdb testsuite'''