summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorRJ Skerry-Ryan <rryan@mixxx.org>2018-09-18 22:27:02 -0700
committerRJ Skerry-Ryan <rryan@mixxx.org>2018-10-16 16:53:55 -0700
commitd3afc0be8f1ba458881d566facd87cda60937dbb (patch)
tree9f36898411203a0209da134cba94a3dd4075da05 /SConstruct
parent931f8e6a11c3ed65e3b941f4d97ee3fc8f72aad6 (diff)
Produce compile_commands.json.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 70811db0e3..170977c3be 100644
--- a/SConstruct
+++ b/SConstruct
@@ -80,6 +80,10 @@ SConscript(File('src/SConscript.env'), variant_dir=Dir(build.build_dir), duplica
# Grab the list of sources generated by SConscript.env
Import('sources')
+# Produce compile_commands.json, which is used by clang-tidy and related tools.
+build.env.Tool("compile_commands")
+build.env.Alias("compiledb", build.env.CompilationDatabase('compile_commands.json'))
+
#Build Vamp minimal plugins
#VariantDir("vamp-plugins", "src", duplicate=0)
mixxxminimal_depends = [ depends.SoundTouch ]