skia2/bin/droid
egdaniel c19440dcaf Update GN droid script
Splits the pushes into different lines since old adbs cannot handle the one
line command

TBR=mtklein@google.com

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2339293002

Review-Url: https://codereview.chromium.org/2339293002
2016-09-14 14:42:03 -07:00

22 lines
386 B
Bash
Executable File

#!/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 /data/local/tmp/
adb push resources /data/local/tmp/
adb shell "cd /data/local/tmp; ./$name $args"