build: added waf build for tdb
authorAndrew Tridgell <tridge@samba.org>
Sat, 20 Feb 2010 13:24:40 +0000 (00:24 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:33 +0000 (20:26 +1000)
lib/tdb/wscript [new file with mode: 0644]

diff --git a/lib/tdb/wscript b/lib/tdb/wscript
new file mode 100644 (file)
index 0000000..326e3c3
--- /dev/null
@@ -0,0 +1,24 @@
+srcdir = '.'
+blddir = 'build'
+
+def set_options(opt):
+    opt.recurse('../talloc')
+
+def configure(conf):
+    conf.recurse('../talloc')
+
+def build(bld):
+    bld.recurse('../talloc')
+
+    COMMON_SOURCE = '''common/check.c common/error.c common/tdb.c common/traverse.c
+                       common/freelistcheck.c common/lock.c common/dump.c common/freelist.c
+                       common/io.c common/open.c  common/transaction.c'''
+
+    bld.SAMBA_LIBRARY('tdb',
+                      COMMON_SOURCE,
+                      'replace talloc',
+                      'include')
+
+    bld.SAMBA_BINARY('tdbtorture',
+                     'tools/tdbtorture.c',
+                     'tdb')