|author||Colin Cross <firstname.lastname@example.org>||Fri May 27 16:58:29 2016 -0700|
|committer||Colin Cross <email@example.com>||Fri May 27 17:02:15 2016 -0700|
[C++] Add support for multiple filenames to findleaves emulation Add support for the new findleaves multiple filename searching implemented in https://android.googlesource.com/platform/build/+/9808645cd9800a7bf7afeb208f3f25c208c64c20: Add support for a new --dir= option to specify one or more directories to search, and then treat any remaining options as filenames. If no directories are specified, fall back to treating only the last option as a filename and the rest as directories. Change-Id: Ibbc81cd65bd63901ae1d0ca99ffc6255c5344d98
kati is an experimental GNU make clone. The main goal of this tool is to speed-up incremental build of Android.
Currently, kati does not offer a faster build by itself. It instead converts your Makefile to a ninja file.
Now AOSP has kati and ninja, so all you have to do is
% export USE_NINJA=true
All Android's build commands (m, mmm, mmma, etc.) should just work.
Set up kati:
% cd ~/src % git clone https://github.com/google/kati % cd kati % make
% cd <android-directory> % source build/envsetup.sh % lunch <your-choice> % ~/src/kati/m2n --kati_stats # Use --goma if you are a Googler. % ./ninja.sh
You need ninja in your $PATH.
% ./ninja.sh -t clean
Note ./ninja.sh passes all parameters to ninja.
For example, the following is equivalent to “make cts”:
% ./ninja.sh cts
Or, if you know the path you want, you can do:
% ./ninja.sh out/host/linux-x86/bin/adb