Improvements to standalone Android build scripts
authorPyry Haulos <phaulos@google.com>
Mon, 20 Oct 2014 18:09:56 +0000 (11:09 -0700)
committerPyry Haulos <phaulos@google.com>
Tue, 11 Nov 2014 16:41:06 +0000 (16:41 +0000)
commit7e01a414adc237914552ab970ab3c8c81a8ff799
tree6d15baee73cba1daff0767102f695cbc9a814dce
parent7c800c27c2431a50c60ef93c577ec1971bf48899
Improvements to standalone Android build scripts

 * If multiple connected devices are detected, install.py prompts to
select one by default if no additional arguments are given.

 * Add -a option to install.py that installs package to all connected
devices.

 * Use ninja on Linux / OS X, if installed, for faster builds (apt-get
install ninja-build to get the awesomeness).

 * If make is used, pass in -j{CPUs} based on number of cores detected.

 * Prefer adb in path to avoid adb version mismatch in certain
environments, for example when doing Android OS builds.

 * Clean up libs/ dir to avoid stale versions for archs that are not
being built.

 * Do not unnecessarily force re-linking of libtestercore.so.

 * Optimize asset cleanup by performing that only for the build that is
used for the assets.

 * Auto-detect ANDROID_NDK_HOST_OS.

Bug: 18329517
Change-Id: I44e1b0acb5e6bcafeff7df30147002f216a76deb
(cherry picked from commit 89e0405021b883114cca9e748166c17bd7ebcc98)
android/scripts/build.py
android/scripts/common.py
android/scripts/install.py