commit | ac3fd3ec81910657551eaef154c97d6f15fc121d | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Fri Sep 29 14:29:15 2017 +0100 |
committer | Primiano Tucci <primiano@google.com> | Fri Sep 29 15:41:09 2017 +0000 |
tree | 06fab59bf289bc824f55fa8b2a7e2e586031f692 | |
parent | d775045f3597ca162ba4457c43d4481d4747495b [diff] |
Add support for running llvm sanitizers on Android On Android, ASan requires to push the libclang_rt.so shared library on the device. This CL reorganizes the build files and adds a target to copy the library in the output directory. Also adds a convenience script to run tests on the device that takes care of pushing the binary and the required libs. Change-Id: I9710a2019c91748934b58951235aec025bb3d96a
If you are a chromium developer and have depot_tools installed you can avoid the build/
prefix below and just use gn/ninja from depot_tools.
build/install-build-deps
to install third-party build deps (NDK etc)build/gn args out/android
to generate build files and enter in the editor:target_os = "android" # or "linux" for local testing target_cpu = "arm" # or "arm64" is_debug = true # or false for release
build/ninja -C out/android all
TODO. The plan is to autogenerate the Android.bp build files from the master GN build files (or temporarily maintain both until we can autogenerate them). Will come in next CLs.