Hi *, long story short: i would like to produce compilation database while AOSP is being compiled. I need those for parsing the AOSP code via LibTooling.
I'am using the android-master branch which clang version is 5.0. I am aware of the clang option "-MJ" [1] (which requires clang >= 5.0) so I modified the file Android.bp including that CLANG flag, for instance i took the libmedia component. The thing is that -MJ generates a compilation database entry per input, so the file was specified as database output is overwritten for each compiled file. How can I get a compilation database entry for each file being compiled during AOSP building process? Can I modify some AOSP building script to achieve something like "-MJ$sourcefile" where $sourcefile takes the value of the source file being compiled? In [1] I see that also the ninja building system supports an option to produce compiling database, in your opinion which approach is the best, clang or ninja? any idea? thank you so much!! ciao, [1] https://sarcasm.github.io/notes/dev/compilation-database.html#clang -- -- 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.
