droid revision c19440dcaffd98b054f2ca856450ee33082e2cd5
1#!/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
19adb push $path /data/local/tmp/
20adb push resources /data/local/tmp/
21adb shell "cd /data/local/tmp; ./$name $args"
22