Add new Android build and install scripts
authorPyry Haulos <phaulos@google.com>
Mon, 27 Mar 2017 18:21:37 +0000 (11:21 -0700)
committerPyry Haulos <phaulos@google.com>
Mon, 8 May 2017 20:00:36 +0000 (13:00 -0700)
commit69bb2f6bcf261caa994273ee21b8e6111845d89e
tree7f29633005eb8b62e486a30d4a74eaf7a259344a
parente315fce5cddfef4bb27ae5a77e0910601655f006
Add new Android build and install scripts

This change adds new Android build and install scripts under
scripts/android. Key improvements over old ones are:

 * Build no longer relies on ant or 'android project' tools.

 * Native code build leverages scripts/build code which should fix
   incremental builds and improve compatibility.

 * Build script error reporting should be much better.

 * Final APK is now built incrementally which should enable much faster
   incremental builds once asset copy targets are fixed in main build.

This work required some changes to common code:

 * Android cross-compile toolchain is set up by including
   targets/android/ndk-r11.cmake before project() in the main
   CMakeLists.txt instead of using -DCMAKE_TOOLCHAIN_FILE. CMake native
   toolchain file support seems incredbly buggy and configuring
   toolchain in regular build files seems to be much more robust.

 * scripts/build/config.py now finds CMake automatically on OS X.

 * New HostInfo class has been added into scripts/build/config.py.

Components: AOSP, Framework

Change-Id: I4b5b78c0d4d3aff248887ba5ced0c91081e24e6b
CMakeLists.txt
external/openglcts/README.md
external/vulkancts/README.md
scripts/android/build_apk.py [new file with mode: 0644]
scripts/android/install_apk.py [new file with mode: 0644]
scripts/build/build.py
scripts/build/common.py
scripts/build/config.py
targets/android/ndk-r11.cmake [new file with mode: 0644]