summaryrefslogtreecommitdiff
path: root/doc/updating_waf.txt
blob: d6767851fb51b7ccf5bef4e349eb8d48a16f6d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Download waf (https://waf.io/)
#
# autowaf.py and misc.py are present in the tools directory of the Ardour source code.
# - waf-str.patch is needed for py2/py3 compatible install_dir:
#  * in py2 paths are byte-arrays and would need to be converted using .encode("utf-8")
#    (otherwise waf expands them /t/o/p/a/t/h/s/l/i/k/e/t/h/i/s)
#  * however py3 cannot handled encoded arrays:
#    (TypeError: cannot use a string pattern on a bytes-like object)
#
# Current waf is build as follows:

ARDOURSRC=`pwd`
cd /tmp
curl https://waf.io/waf-2.0.19.tar.bz2 | tar xj
cd waf-2.0.19

patch -p1 < $ARDOURSRC/tools/patches/waf-str.patch

./waf-light -v --make-waf --tools=misc,doxygen,$ARDOURSRC/tools/autowaf.py,$ARDOURSRC/tools/misc.py --prelude=''
cp ./waf $ARDOURSRC/waf