'how to disable including Android.mk when compile a single AOSP module?

I am developing SystemUI on AOSP(Android 11), I found that "make SystemUI" was really slow, a third of time(maybe more) was cost in including Android.mk(product.mk...), which is useless in most case, for example, I just modify some java code, there is no need to include Android.mk. so how to disbale including Android.mk to speed up the compilation progress?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source