ntdb: put it back into the build.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jun 2012 03:13:11 +0000 (12:43 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jun 2012 03:38:07 +0000 (05:38 +0200)
This doesn't do anything with it yet, just wires it back into the build.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
testsuite/headers/wscript_build
wscript
wscript_build

index f83538ef090cf9f5daa0eaeb8cf9516a6f7105ef..635c8641fc65edd33ea15eae403b4a992e8162b7 100644 (file)
@@ -8,6 +8,11 @@ def build_test_headers(task):
     f.write('/* generated header test */\n')
     hlist = task.env.public_headers_list[:]
     hlist.sort()
+    # We need to include tdb.h before ntdb.h.  It's the rules!
+    if 'tdb.h' in hlist and 'ntdb.h' in hlist:
+        hlist.remove('ntdb.h')
+        hlist.append('ntdb.h')
+
     for h in hlist:
         f.write('#include "%s"\n' % os.path.normpath(h))
     f.close()
diff --git a/wscript b/wscript
index cccd19377bb3e587efc2ca0d613be2d1a78d9b91..bceace1346d2b5a36390d067b1c30ce3acac27a5 100755 (executable)
--- a/wscript
+++ b/wscript
@@ -37,6 +37,7 @@ def set_options(opt):
     opt.RECURSE('lib/replace')
     opt.RECURSE('dynconfig')
     opt.RECURSE('lib/ldb')
+    opt.RECURSE('lib/ntdb')
     opt.RECURSE('selftest')
     opt.RECURSE('source4/lib/tls')
     opt.RECURSE('lib/nss_wrapper')
@@ -123,6 +124,7 @@ def configure(conf):
     conf.RECURSE('source4/ntvfs/sysdep')
     conf.RECURSE('lib/util')
     conf.RECURSE('lib/ccan')
+    conf.RECURSE('lib/ntdb')
     conf.RECURSE('lib/zlib')
     conf.RECURSE('lib/util/charset')
     conf.RECURSE('source4/auth')
@@ -195,14 +197,14 @@ def pydoctor(ctx):
     '''build python apidocs'''
     bp = os.path.abspath('bin/python')
     mpaths = {}
-    for m in ['talloc', 'tdb', 'ldb']:
+    for m in ['talloc', 'tdb', 'ldb', 'ntdb']:
         f = os.popen("PYTHONPATH=%s python -c 'import %s; print %s.__file__'" % (bp, m, m), 'r')
         try:
             mpaths[m] = f.read().strip()
         finally:
             f.close()
     cmd='PYTHONPATH=%s pydoctor --introspect-c-modules --project-name=Samba --project-url=http://www.samba.org --make-html --docformat=restructuredtext --add-package bin/python/samba --add-module %s --add-module %s --add-module %s' % (
-        bp, mpaths['tdb'], mpaths['ldb'], mpaths['talloc'])
+        bp, mpaths['tdb'], mpaths['ldb'], mpaths['talloc'], mpaths['ntdb'])
     print("Running: %s" % cmd)
     os.system(cmd)
 
index d4959f32f8b2e2c19138c82735a061250709a932..dc06b647b85767f5e4d6bd3f1bb4d81ec486e0fc 100755 (executable)
@@ -34,6 +34,7 @@ bld.RECURSE('lib/tevent')
 bld.RECURSE('lib/addns')
 bld.RECURSE('lib/ccan')
 bld.RECURSE('lib/tdb_compat')
+bld.RECURSE('lib/ntdb')
 bld.RECURSE('lib/ldb')
 bld.RECURSE('lib/param')
 bld.RECURSE('dynconfig')