From 9e9e878e8f5f0fba51e3a576f17cf07d0857cff6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Apr 2010 10:18:39 +1000 Subject: s4-waf: allow standalone tarball build of libraries --- lib/talloc/wscript | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/talloc/wscript') diff --git a/lib/talloc/wscript b/lib/talloc/wscript index f264513916..a7476b7ec4 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -3,9 +3,17 @@ 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 -- cgit