ardour/doc/updating_waf.txt
Remi Thebault b8e1cd53ce
Prepare waf update to 2.0.23 and enable 'clang_compilation_database'
This enables the generation of build/compile_commands.json
which is a compilation database recognized by some IDE/editors
to provide compiler quality linting.
To name a few:
 - Visual Studio Code
 - VIM (with ALE plugin)
2022-01-09 18:45:50 +01:00

21 lines
797 B
Plaintext

# 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.23.tar.bz2 | tar xj
cd waf-2.0.23
patch -p1 < $ARDOURSRC/tools/patches/waf-str.patch
./waf-light -v --make-waf --tools=misc,doxygen,clang_compilation_database,$ARDOURSRC/tools/autowaf.py,$ARDOURSRC/tools/misc.py --prelude=''
cp ./waf $ARDOURSRC/waf