mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s4-waf: new autogen-waf.sh
this one will work with the tdb, talloc, etc directories
This commit is contained in:
parent
c8835f440a
commit
1e35da6145
@ -1,16 +1,11 @@
|
||||
# simple makefile wrapper to run waf
|
||||
|
||||
# don't enable WAFCACHE by default yet, as it doesn't
|
||||
# have any way to limit its size. This could cause
|
||||
# problems in the build farm
|
||||
# WAF=WAFCACHE=$(HOME)/.wafcache ../buildtools/waf
|
||||
|
||||
# default to using only 1 cpu, to be friendly to build
|
||||
# farm machines. I wonder how we get at the -jN option
|
||||
# from make to pass it to waf?
|
||||
JOBS=1
|
||||
|
||||
WAF=JOBS=$(JOBS) ../buildtools/bin/waf
|
||||
WAF=JOBS=$(JOBS) BUILDTOOLS/bin/waf
|
||||
|
||||
all:
|
||||
$(WAF) build
|
11
buildtools/scripts/configure.waf
Executable file
11
buildtools/scripts/configure.waf
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
WAF=BUILDTOOLS/bin/waf
|
||||
|
||||
# using JOBS=1 gives maximum compatibility with
|
||||
# systems like AIX which have broken threading in python
|
||||
JOBS=1
|
||||
export JOBS
|
||||
|
||||
$WAF configure $*
|
@ -1,9 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Setting up for waf build"
|
||||
ln -sf configure.waf configure
|
||||
|
||||
echo "Looking for the buildtools directory"
|
||||
|
||||
d="buildtools"
|
||||
while test \! -d $d; do d="../$d"; done
|
||||
|
||||
echo "Found buildtools in $d"
|
||||
|
||||
echo "Setting up configure"
|
||||
rm -f configure
|
||||
sed "s|BUILDTOOLS|$d|g" < "$d/scripts/configure.waf" > configure
|
||||
chmod +x configure
|
||||
|
||||
echo "Setting up makefile"
|
||||
# this relies on the fact that make looks for 'makefile' before 'Makefile'
|
||||
ln -sf Makefile.waf makefile
|
||||
rm -f makefile
|
||||
sed "s|BUILDTOOLS|$d|g" < "$d/scripts/Makefile.waf" > makefile
|
||||
|
||||
echo "done ... now run ./configure or ./configure.developer"
|
||||
echo "done. Now run ./configure or ./configure.developer then make"
|
||||
|
@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Using waf based build"
|
||||
|
||||
WAF=../buildtools/bin/waf
|
||||
|
||||
# using JOBS=1 gives maximum compatibility with
|
||||
# systems like AIX which have broken threading in python
|
||||
JOBS=1
|
||||
export JOBS
|
||||
|
||||
# don't enable WAFCACHE by default till it is
|
||||
# size limited
|
||||
#export WAFCACHE=$HOME/.wafcache
|
||||
#mkdir -p $WAFCACHE
|
||||
|
||||
$WAF configure $*
|
Loading…
x
Reference in New Issue
Block a user