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)
This commit is contained in:
Remi Thebault 2022-01-09 15:49:52 +01:00 committed by Robin Gareus
parent 4f5779e67d
commit b8e1cd53ce
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 3 deletions

View File

@ -11,10 +11,10 @@
ARDOURSRC=`pwd`
cd /tmp
curl https://waf.io/waf-2.0.19.tar.bz2 | tar xj
cd waf-2.0.19
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,$ARDOURSRC/tools/autowaf.py,$ARDOURSRC/tools/misc.py --prelude=''
./waf-light -v --make-waf --tools=misc,doxygen,clang_compilation_database,$ARDOURSRC/tools/autowaf.py,$ARDOURSRC/tools/misc.py --prelude=''
cp ./waf $ARDOURSRC/waf

View File

@ -933,6 +933,7 @@ def sub_config_and_use(conf, name, has_objects = True):
def configure(conf):
conf.load('compiler_c')
conf.load('compiler_cxx')
conf.load('clang_compilation_database')
if Options.options.dist_target == 'mingw':
conf.load('winres')