blob: cb48e366fac7839adf05434441c3845fde617413 [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 Klein25e25592018-06-28 11:19:23 -040019adb push --sync $path //data/local/tmp/
20adb push --sync resources //data/local/tmp/
Mike Klein82364ba2016-10-24 16:49:15 -040021adb shell "chmod +x //data/local/tmp/$name"
22adb shell "cd //data/local/tmp; ./$name $args"