commit | 2e032ba8df8f8c5f8178ecbdfcaf5391778212f6 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Jul 15 18:33:37 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Jul 15 18:45:33 2015 -0700 |
tree | 164e4feb1acdab8e6dd25aa161f770a4710b82eb | |
parent | 6b1167f7d91d2be83e1b187ca307b6e1d6bba19d [diff] |
[C++] Convert initial echo command into ninja description If the first command for a rule is an echo with no redirections, strip any outer quotes and use the result as the ninja rule description. This makes Android builds much more readable by preventing every successful rule from writing a single line, allowing ninja to reuse the current line for its status.
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.
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
% ~/src/kati/m2n -j10 % ./ninja.sh
Or
% ./ninja.sh -j10
Note the latter kills the parallelism of goma.