summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/wscript
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-05-31 18:12:05 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-05-31 19:22:04 +0200
commit1bc53f0213b04e30ebf2ac60695c84c5781e4e72 (patch)
treede61f8bfe18e16e051574e28d4f8a12b6ec6ff41 /source4/lib/ldb/wscript
parent82d56b937445585b9e60451daf660aee5ace0523 (diff)
downloadsamba-1bc53f0213b04e30ebf2ac60695c84c5781e4e72.tar.gz
samba-1bc53f0213b04e30ebf2ac60695c84c5781e4e72.tar.bz2
samba-1bc53f0213b04e30ebf2ac60695c84c5781e4e72.zip
ldb: Move utility functions to separate file.
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',