some module like frameworks/av is really hard to convert to Android.bp. In android-9.0.0_r34 , SOONG_GEN_COMPDB can't use directly, I need add related file to aosp soong module, then recompile soong, then I can SOONG_GEN_COMPDB, but the generated compile_commands is really big, like 83M. generated by CMakeLists.txt is much smaller. :)
'Dan Willemsen' via Android Building <[email protected]> 于2019年3月19日周二 上午1:18写道: > 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.
