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 "chmod +x //data/local/tmp/$name" 22adb shell "cd //data/local/tmp; ./$name $args" 23