Flesh out GN/Android run docs.

The process is simple enough that it's clearer to see all the steps laid out.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2343263002
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=2343263002

Review-Url: https://codereview.chromium.org/2343263002
This commit is contained in:
mtklein 2016-09-16 12:40:17 -07:00 committed by Commit bot
parent dbd16345a5
commit e7904f3979

View File

@ -81,9 +81,12 @@ desired `target_cpu`:
Other arguments like `is_debug` and `is_component_build` continue to work.
Tweaking `ndk_api` gives you access to newer Android features like Vulkan.
To test on a locally connected Android device, you can use our `droid` convenience script:
To test on an Android device, push the binary and `resources` over,
and run it as normal. You may find `bin/droid` convenient.
<!--?prettify lang=sh?-->
ninja -C out/arm64
bin/droid out/arm64/dm --src gm --config gpu
adb push out/arm64/dm /data/local/tmp
adb push resources /data/local/tmp
adb shell "cd /data/local/tmp; ./dm --src gm --config gpu"