APPNAME = 'talloc'
VERSION = '2.0.2'
-srcdir = '../..'
blddir = 'bin'
+# find the buildtools directory
+import os
+buildtools = 'buildtools ../../buildtools'
+for d in buildtools.split():
+ if os.path.exists(d):
+ srcdir = os.path.dirname(d) or '.'
+ break
+
+
LIBREPLACE_DIR= srcdir + '/lib/replace'
import sys
APPNAME = 'tdb'
VERSION = '1.2.1'
-srcdir = '../..'
blddir = 'bin'
-import sys
+import sys, os
+
+# find the buildtools directory
+buildtools = 'buildtools ../../buildtools'
+for d in buildtools.split():
+ if os.path.exists(d):
+ srcdir = os.path.dirname(d) or '.'
+ break
+
sys.path.insert(0, srcdir+"/buildtools/wafsamba")
import wafsamba
APPNAME = 'tevent'
VERSION = '0.9.8'
-srcdir = '../..'
blddir = 'bin'
-import sys
+import sys, os
+
+# find the buildtools directory
+buildtools = 'buildtools ../../buildtools'
+for d in buildtools.split():
+ if os.path.exists(d):
+ srcdir = os.path.dirname(d) or '.'
+ break
+
sys.path.insert(0, srcdir+"/buildtools/wafsamba")
import wafsamba
APPNAME = 'ldb'
VERSION = '0.9.10'
-srcdir = '../../..'
blddir = 'bin'
-import sys
+import sys, os
+# find the buildtools directory
+buildtools = 'buildtools ../../buildtools'
+for d in buildtools.split():
+ if os.path.exists(d):
+ srcdir = os.path.dirname(d) or '.'
+ break
+
sys.path.insert(0, srcdir+"/buildtools/wafsamba")
import wafsamba