blob: c6331817667cdc7c15470d9144724e80c448960a [file] [log] [blame]
mtkleinf3155ad2016-09-08 10:03:21 -07001#!/bin/bash
2
3# Run a GN-built Android binary on the connected device.
4#
5# Example usage:
6# $ ninja -C out dm
7# $ droid out/dm --src gm --config gpu
8#
9# See https://skia.org/user/quick/gn for build instructions.
10
11path=$1
12name=$(basename $1)
13shift
14args=$@
15
16set -e
17set -x
18
Mike Klein82364ba2016-10-24 16:49:15 -040019adb push $path //data/local/tmp/
20adb push resources //data/local/tmp/
21adb shell "chmod +x //data/local/tmp/$name"
22adb shell "cd //data/local/tmp; ./$name $args"