Modular Development - compiled - an essential quality verification has been efficient engineers.
Over the past Android.mk associated source code we can use the mmm module-source-directory
command to quickly compile verify, since Android 8 (probably?) Introduced its improved version Android.bp ( reference ), the module compiled and organizational policies become more readable and easier to maintain.
Here are Android.bp associate at the source file modification module compilation methods: make modulename
.
-
Source File:
Vendor \ SPRD \ in the interfaces \ Camera \ Device \ 3.2 \ default
Android.bp contents of the file:cc_library_shared { name: "[email protected]", proprietary: true, srcs: ["xxx.cpp", "xxx2.cpp", "xxx3.cpp"], ...
-
Module Compiler
(前提
: complete project has been successfully compiled over)
make modulename
For example, here it is:
the make [email protected] -
Path object files
.out \ target \ product {board} \ vendor \ lib \ [email protected] -
Rapid verification
directly after adb push to replace the same file to the corresponding directory device reboot take effect. -
Advantage
module compiler takes probably about 1-3min, adb push for quick verification results, greatly enhance the efficiency of development and debugging