commit | ead978a305d54272628cf7b191a08c62487bf57e | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sun Sep 23 03:03:22 2018 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sun Sep 23 03:03:22 2018 +0000 |
tree | 8d2b3e5bc6a8d87e2d19f06a9a4720c4967114aa | |
parent | fa3f1e34630cbac4f8f0c755f733fe8465247204 [diff] | |
parent | e46fbc5ce6304f94314811697da6f2a2523af57f [diff] |
Snap for 5025290 from e46fbc5ce6304f94314811697da6f2a2523af57f to qt-release Change-Id: Ic7075df473b47153ec2d6c0baba3b3a0df81fe2b
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
Build Android:
% 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