Files
rk35xx-android14/build/soong/docs/compdb.md
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

28 lines
682 B
Markdown

# Compdb (compile\_commands.json) Generator
Soong can generate compdb files. This is intended for use with editing tools
such as YouCompleteMe and other libclang based completers.
compdb file generation is enabled via environment variable:
```bash
$ export SOONG_GEN_COMPDB=1
$ export SOONG_GEN_COMPDB_DEBUG=1
```
One can make soong generate a symlink to the compdb file using an environment
variable:
```bash
$ export SOONG_LINK_COMPDB_TO=$ANDROID_HOST_OUT
```
You can then trigger an empty build:
```bash
$ make nothing
```
Note that if you build using mm or other limited makes with these environment
variables set the compdb will only include files in included modules.