Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: bin/droid

Issue 2339293002: Update GN droid script (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Run a GN-built Android binary on the connected device. 3 # Run a GN-built Android binary on the connected device.
4 # 4 #
5 # Example usage: 5 # Example usage:
6 # $ ninja -C out dm 6 # $ ninja -C out dm
7 # $ droid out/dm --src gm --config gpu 7 # $ droid out/dm --src gm --config gpu
8 # 8 #
9 # See https://skia.org/user/quick/gn for build instructions. 9 # See https://skia.org/user/quick/gn for build instructions.
10 10
11 path=$1 11 path=$1
12 name=$(basename $1) 12 name=$(basename $1)
13 shift 13 shift
14 args=$@ 14 args=$@
15 15
16 set -e 16 set -e
17 set -x 17 set -x
18 18
19 adb push $path resources /data/local/tmp/ 19 adb push $path /data/local/tmp/
20 adb push resources /data/local/tmp/
20 adb shell "cd /data/local/tmp; ./$name $args" 21 adb shell "cd /data/local/tmp; ./$name $args"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698