summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/wscript')
-rw-r--r--source4/lib/ldb/wscript11
1 files changed, 7 insertions, 4 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index a1eca78268..3f76bebce8 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -150,17 +150,20 @@ def build(bld):
bld.env.PACKAGE_VERSION = VERSION
bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
- ldb_deps = 'tevent LIBLDB'
if s4_build:
abi_file='ABI/ldb-samba4-%s.sigs' % VERSION
else:
abi_file='ABI/ldb-%s.sigs' % VERSION
+ bld.SAMBA_PYTHON('pyldb_util',
+ deps='ldb LIBPYTHON',
+ source='pyldb_util.c')
+
if not bld.CONFIG_SET('USING_SYSTEM_LDB'):
modules_dir = bld.EXPAND_VARIABLES('${LDB_MODULESDIR}')
bld.SAMBA_LIBRARY('ldb',
COMMON_SRC + ' ' + LDB_MAP_SRC,
- deps=ldb_deps,
+ deps='tevent LIBLDB',
includes='include',
public_headers='include/ldb.h include/ldb_errors.h '\
'include/ldb_module.h',
@@ -172,13 +175,13 @@ def build(bld):
is_bundled=not bld.env.standalone_ldb)
bld.SAMBA_PYTHON('pyldb', 'pyldb.c',
- deps='ldb',
+ deps='ldb pyldb_util',
realname='ldb.so')
extra_cmdline_deps = ''
if s4_build:
extra_cmdline_deps += ' LDBSAMBA POPT_SAMBA POPT_CREDENTIALS ' \
- 'LIBCMDLINE_CREDENTIALS gensec'
+ 'LIBCMDLINE_CREDENTIALS gensec'
bld.SAMBA_SUBSYSTEM('LIBLDB_CMDLINE',
'tools/ldbutil.c tools/cmdline.c',