From f3155ad97c8095e5172fb826d7f09b7a85062f25 Mon Sep 17 00:00:00 2001 From: mtklein Date: Thu, 8 Sep 2016 10:03:21 -0700 Subject: GN: add a helper script for running Android builds Think of this as the spiritual equivalent of platform_tools/android/bin/android_run_skia, but for GN and easier to type. Cutting down the debug symbols makes Android builds about 1/4 the size. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2323833002 DOCS_PREVIEW= https://skia.org/user/quick/gn?cl=2323833002 Review-Url: https://codereview.chromium.org/2323833002 --- bin/droid | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 bin/droid (limited to 'bin') diff --git a/bin/droid b/bin/droid new file mode 100755 index 0000000000..d3571dd3ec --- /dev/null +++ b/bin/droid @@ -0,0 +1,20 @@ +#!/bin/bash + +# Run a GN-built Android binary on the connected device. +# +# Example usage: +# $ ninja -C out dm +# $ droid out/dm --src gm --config gpu +# +# See https://skia.org/user/quick/gn for build instructions. + +path=$1 +name=$(basename $1) +shift +args=$@ + +set -e +set -x + +adb push $path resources /data/local/tmp/ +adb shell "cd /data/local/tmp; ./$name $args" -- cgit v1.2.3