+++ /dev/null
-# simple makefile wrapper to run waf
-
-WAF_BIN=`PATH=buildtools/bin:../../buildtools/bin:$$PATH which waf`
-WAF_BINARY=$(PYTHON) $(WAF_BIN)
-WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
-
-all:
- $(WAF) build
-
-install:
- $(WAF) install
-
-uninstall:
- $(WAF) uninstall
-
-test:
- $(WAF) test $(TEST_OPTIONS)
-
-dist:
- touch .tmplock
- WAFLOCK=.tmplock $(WAF) dist
-
-distcheck:
- touch .tmplock
- WAFLOCK=.tmplock $(WAF) distcheck
-
-clean:
- $(WAF) clean
-
-distclean:
- $(WAF) distclean
-
-reconfigure: configure
- $(WAF) reconfigure
-
-show_waf_options:
- $(WAF) --help
-
-# some compatibility make targets
-everything: all
-
-testsuite: all
-
-check: test
-
-# this should do an install as well, once install is finished
-installcheck: test
-
-etags:
- $(WAF) etags
-
-ctags:
- $(WAF) ctags
+++ /dev/null
-#!/bin/sh
-
-PREVPATH=$(dirname $0)
-
-if [ -f $PREVPATH/../../buildtools/bin/waf ]; then
- WAF=../../buildtools/bin/waf
-elif [ -f $PREVPATH/buildtools/bin/waf ]; then
- WAF=./buildtools/bin/waf
-else
- echo "ldb: Unable to find waf"
- exit 1
-fi
-
-# using JOBS=1 gives maximum compatibility with
-# systems like AIX which have broken threading in python
-JOBS=1
-export JOBS
-
-# Make sure we don't have any library preloaded.
-unset LD_PRELOAD
-
-# Make sure we get stable hashes
-PYTHONHASHSEED=1
-export PYTHONHASHSEED
-
-cd . || exit 1
-$PYTHON $WAF configure "$@" || exit 1
-cd $PREVPATH
#!/usr/bin/env python
-APPNAME = 'ldb'
# For Samba 4.21.x
VERSION = '2.10.0'
import sys, os
-# find the buildtools directory
-top = '.'
-while not os.path.exists(top+'/buildtools') and len(top.split('/')) < 5:
- top = top + '/..'
-sys.path.insert(0, top + '/buildtools/wafsamba')
-
-out = 'bin'
-
from wafsamba import samba_dist, samba_utils, samba_bundled
from waflib import Errors, Options, Logs, Context
import shutil
-samba_dist.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc
- lib/tdb:lib/tdb lib/tdb:lib/tdb lib/tevent:lib/tevent
- third_party/popt:third_party/popt
- third_party/cmocka:third_party/cmocka
- buildtools:buildtools third_party/waf:third_party/waf''')
-
-samba_dist.DIST_FILES('''lib/util/binsearch.h:lib/util/binsearch.h
- lib/util/attr.h:lib/util/attr.h''')
-
def options(opt):
opt.BUILTIN_DEFAULT('replace')
opt.PRIVATE_EXTENSION_DEFAULT('ldb', noextension='ldb')
deps='cmocka ldb',
install=False)
-def dist():
- '''makes a tarball for distribution'''
- samba_dist.dist()
-
-def reconfigure(ctx):
- '''reconfigure if config scripts have changed'''
- import samba_utils
- samba_utils.reconfigure(ctx)