An alternative option would be compiledb tool (
https://github.com/nickdiego/compiledb), which is able to parse compile
commands from a build log. Some years ago I've been able to parse
compilation database from some AOSP modules using a similar approach.

On Mon, Mar 18, 2019, 13:18 'Dan Willemsen' via Android Building <
[email protected]> wrote:

> The ninja compilation database support doesn't work very well for our
> ninja files due to kati using a rule per command. This upstream ninja
> feature request may help, but that's assuming that whatever is parsing the
> compdb files can understand the raw rules (which is usually a bash script,
> not just a call to the compiler):
> https://github.com/ninja-build/ninja/issues/1377
>
> I'd recommend converting to Android.bp so that you can use
> SOONG_GEN_COMPDB.
>
> - Dan
>
> On Mon, Mar 18, 2019 at 9:54 AM <[email protected]> wrote:
>
>> I can get CMakeLists.txt from Android.bp by soong, then get
>> compile_commands, but cann't get CMakeLists.json from android.mk. I've
>> tried pass ' -t compdb cxx' but just get empty "[ \n ]" , any one can help
>> me?
>>
>> --
>> --
>> You received this message because you are subscribed to the "Android
>> Building" mailing list.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to