Android OS will build multiple files ,if i edit one file and how to fix it
I am able to build Android O on my build machine . I wanted to generate code coverage for one of the library i.e. "libstagefright.so" and path would be "Android_source/frameworks/av/media/libstagefright" . When i build library with "mm showcommands" ,i can see there are around 192 files getting compiled and it would take 4-5 mins to build.
Now to make coverage tool to work, I am editing clang compiler script in python to enable coverage tool.Now if do "touch *cpp " and run command "mm showcommands" . I can see its rebuilding almost 4000 to 8000 source files and its taking hell of the time to complete.
How do i disable this behaviour in Android OS build and stick to 192 files ?
You can reproduce the issue using by first building "Android_source/frameworks/av/media/libstagefright" and then edit clang compiler for example add comment .Now i i go and build the same app its rebuilding too many file.