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.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by mariana.white
14 minutes ago
Last post by vmurray
54 minutes ago
Last post by dbogan
3 hours ago
Last post by qwehner
3 hours ago
Last post by sferry
4 hours ago
Last post by nkerluke
1 hour ago
Last post by cremin.jordan
2 hours ago
Last post by denis99
1 hour ago