2020-01-20 17:08:55 -05:00
|
|
|
# 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:
|
2011-09-29 17:22:37 -04:00
|
|
|
|
2016-02-28 15:48:49 -05:00
|
|
|
ARDOURSRC=`pwd`
|
|
|
|
cd /tmp
|
2022-01-09 09:49:52 -05:00
|
|
|
curl https://waf.io/waf-2.0.23.tar.bz2 | tar xj
|
|
|
|
cd waf-2.0.23
|
2020-01-20 17:08:55 -05:00
|
|
|
|
2020-02-23 08:51:56 -05:00
|
|
|
patch -p1 < $ARDOURSRC/tools/patches/waf-str.patch
|
2011-09-29 17:22:37 -04:00
|
|
|
|
2022-01-09 09:49:52 -05:00
|
|
|
./waf-light -v --make-waf --tools=misc,doxygen,clang_compilation_database,$ARDOURSRC/tools/autowaf.py,$ARDOURSRC/tools/misc.py --prelude=''
|
2016-02-28 15:48:49 -05:00
|
|
|
cp ./waf $ARDOURSRC/waf
|