summaryrefslogtreecommitdiff
path: root/lib/tdb_compat/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb_compat/wscript')
-rw-r--r--lib/tdb_compat/wscript27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/tdb_compat/wscript b/lib/tdb_compat/wscript
new file mode 100644
index 0000000000..574e67e8ef
--- /dev/null
+++ b/lib/tdb_compat/wscript
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+import Options
+
+def set_options(opt):
+ opt.RECURSE('lib/tdb2')
+ opt.RECURSE('lib/tdb')
+
+def configure(conf):
+ 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/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',
+ private_library=True)