summaryrefslogtreecommitdiff
path: root/lib/tdb_compat/wscript
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-06-20 18:40:34 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-06-20 11:18:36 +0200
commit985e83ef520da68a60899f0ad977cb28a77b8cbe (patch)
tree4da2f88a0879b86ada629441dc79f67be17b7a29 /lib/tdb_compat/wscript
parent5eecc854236f0b943aaa89e0c3a46f9fbd208ca9 (diff)
downloadsamba-985e83ef520da68a60899f0ad977cb28a77b8cbe.tar.gz
samba-985e83ef520da68a60899f0ad977cb28a77b8cbe.tar.bz2
samba-985e83ef520da68a60899f0ad977cb28a77b8cbe.zip
tdb2: tie it into build process if --enable-tdb2-breaks-compat
This is simplistic. We need to support making TDB2 a standalone library, but for now, we simply built it in-tree. Once we have tdb1 compatibility in tdb2, we can rename this option to --enable-tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb_compat/wscript')
-rw-r--r--lib/tdb_compat/wscript15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/tdb_compat/wscript b/lib/tdb_compat/wscript
index 8a6f69a96a..574e67e8ef 100644
--- a/lib/tdb_compat/wscript
+++ b/lib/tdb_compat/wscript
@@ -1,15 +1,26 @@
#!/usr/bin/env python
+import Options
+
def set_options(opt):
+ opt.RECURSE('lib/tdb2')
opt.RECURSE('lib/tdb')
def configure(conf):
- conf.RECURSE('lib/tdb')
+ conf.env.BUILD_TDB2 = getattr(Options.options, 'BUILD_TDB2', False)
+
+ if conf.env.BUILD_TDB2:
+ conf.RECURSE('lib/tdb2')
+ else:
+ conf.RECURSE('lib/tdb')
conf.RECURSE('lib/ccan')
def build(bld):
- bld.RECURSE('lib/tdb')
bld.RECURSE('lib/ccan')
+ if bld.env.BUILD_TDB2:
+ bld.RECURSE('lib/tdb2')
+ else:
+ bld.RECURSE('lib/tdb')
bld.SAMBA_LIBRARY('tdb_compat',
source='tdb_compat.c',
deps='replace tdb ccan',