summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-17 20:32:15 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:34 +1000
commit2b5a1cc70cbc5bafe6183300b131d95505c03b36 (patch)
treefdcb0321be5cfd39d13b0a03cfdbf4394e7ac7bc /source4
parent635a7ce6c1dfbfa2fd9ccefa0253a0a846a29f94 (diff)
downloadsamba-2b5a1cc70cbc5bafe6183300b131d95505c03b36.tar.gz
samba-2b5a1cc70cbc5bafe6183300b131d95505c03b36.tar.bz2
samba-2b5a1cc70cbc5bafe6183300b131d95505c03b36.zip
build: added waf build rules for ldb
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/wscript34
1 files changed, 20 insertions, 14 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index cab5388a94..1103ec6299 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -1,26 +1,28 @@
-srcdir = '.'
-blddir = 'build'
+VERSION = '0.9.10'
-LIBTDB_DIR='../../../lib/tdb'
-LIBTALLOC_DIR='../../../lib/talloc'
+srcdir = '../../..'
+blddir = 'bin'
+
+LIBTDB_DIR= srcdir + '/lib/tdb'
+LIBTEVENT_DIR= srcdir + '/lib/tevent'
def set_options(opt):
opt.recurse(LIBTDB_DIR)
- opt.recurse(LIBTALLOC_DIR)
+ opt.recurse(LIBTEVENT_DIR)
def configure(conf):
conf.sub_config(LIBTDB_DIR)
- conf.sub_config(LIBTALLOC_DIR)
+ conf.sub_config(LIBTEVENT_DIR)
+ conf.CONFIG_PATH('LDB_MODULESDIR', conf.env['LIBDIR'] + '/ldb')
conf.SAMBA_CONFIG_H()
def build(bld):
bld.add_subdirs(LIBTDB_DIR)
- bld.add_subdirs(LIBTALLOC_DIR)
+ bld.add_subdirs(LIBTEVENT_DIR)
LDB_TDB_SRC = bld.SUBDIR('ldb_tdb',
'''ldb_tdb.c ldb_pack.c ldb_search.c ldb_index.c
ldb_cache.c ldb_tdb_wrap.c''')
- print "LDB_TDB_SRC=%s" % LDB_TDB_SRC
LDB_MAP_SRC = bld.SUBDIR('ldb_map',
'ldb_map.c ldb_map_inbound.c ldb_map_outbound.c')
@@ -35,9 +37,13 @@ def build(bld):
bld.SAMBA_LIBRARY('ldb',
LDB_TDB_SRC + ' ' + COMMON_SRC + ' ' + MODULES_SRC,
- 'tdb talloc',
- 'include')
-
- bld.SAMBA_BINARY('ldbadd',
- 'tools/ldbadd.c',
- 'ldb')
+ libdeps='tdb tevent',
+ include_list='include',
+ vnum=VERSION)
+
+ LDB_TOOLS='ldbadd ldbsearch ldbdel ldbmodify ldbedit ldbrename ldbtest'
+ for t in LDB_TOOLS.split():
+ bld.SAMBA_BINARY(t,
+ 'tools/%s.c tools/ldbutil.c tools/cmdline.c' % t,
+ libdeps='ldb',
+ syslibs='dl popt')