diff options
author | Alex Light <allight@google.com> | 2018-04-17 16:50:48 -0700 |
---|---|---|
committer | Alex Light <allight@google.com> | 2018-04-24 08:15:02 -0700 |
commit | ec868fc42aefd299a2f26249f7751b3385840187 (patch) | |
tree | 8a06e0fc069662aa8ad4c648e762ff68e94bd617 /README.md | |
parent | 2b8959ad5a37574226f5dbd07a027319e184f7c4 (diff) | |
download | build_soong-ec868fc42aefd299a2f26249f7751b3385840187.tar.gz build_soong-ec868fc42aefd299a2f26249f7751b3385840187.tar.bz2 build_soong-ec868fc42aefd299a2f26249f7751b3385840187.zip |
Add support for generating Compdb file
Some tools (i.e. you-complete-me) make use of a 'compdb' file
(compile_commands.json) that records (among other things) the
arguments needed to compile a file. These tools can use this with
libclang to provide semantic completions and perform other IDE
actions. This CL adds support for soong to generate a (simple)
compile_commands.json file.
Test: make SOONG_GEN_COMPDB=1 SOONG_LINK_COMPDB_TO=$ANDROID_BUILD_TOP nothing
examine $ANDROID_BUILD_TOP/compile_commands.json
Change-Id: I751bb344b90dfcdad1dfd71c2a85bacd345f0464
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -175,6 +175,7 @@ written to a [ninja](http://ninja-build.org) build file. * [Best Practices](docs/best_practices.md) * [Build Performance](docs/perf.md) * [Generating CLion Projects](docs/clion.md) +* [Generating YouCompleteMe/VSCode compile\_commands.json file](docs/compdb.md) * Make-specific documentation: [build/make/README.md](https://android.googlesource.com/platform/build/+/master/README.md) ## FAQ |