skia2/bin/droid
Mike Klein 25e2559656 add --sync to adb push in bin/droid
This skips pushing files that are already present.

Change-Id: Ibe86be1e553da3cbe9d02d00764164d9e0745f8d
Reviewed-on: https://skia-review.googlesource.com/138164
Commit-Queue: Mike Klein <mtklein@chromium.org>
Commit-Queue: Hal Canary <halcanary@google.com>
Auto-Submit: Mike Klein <mtklein@chromium.org>
Reviewed-by: Hal Canary <halcanary@google.com>
2018-06-28 15:46:57 +00:00

23 lines
447 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 --sync $path //data/local/tmp/
adb push --sync resources //data/local/tmp/
adb shell "chmod +x //data/local/tmp/$name"
adb shell "cd //data/local/tmp; ./$name $args"