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

Side by Side Diff: platform_tools/android/bin/android_make

Issue 223613004: hack hack hack on android scripts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: moar Created 6 years, 8 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
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 set -e
djsollen 2014/04/03 17:24:23 add the comment back to why this is useful. # Fai
mtklein 2014/04/03 17:30:17 Done. Though this is sort of like // Increment b
4
3 # Remove any existing .android_config file before running android_setup. If we 5 # Remove any existing .android_config file before running android_setup. If we
4 # did not remove this now then we would build for whatever device type was 6 # did not remove this now then we would build for whatever device type was
5 # listed in the .android_config instead of the default device type. 7 # listed in the .android_config instead of the default device type.
6 rm -f .android_config 8 rm -f .android_config
7 9
8 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 10 SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
9 source $SCRIPT_DIR/android_setup.sh 11 source $SCRIPT_DIR/android_setup.sh
10 12
11 # Fail-fast if anything in the script fails.
12 # Don't do this until "source android_setup.sh" is done; see
13 # https://codereview.chromium.org/223943002 for discussion.
14 set -e
15
16 GYP_GENERATORS=ninja-android ./gyp_skia 13 GYP_GENERATORS=ninja-android ./gyp_skia
17 OUT=$SKIA_OUT/${BUILDTYPE-Debug} # Defaults to Debug if BUILDTYPE isn't set. 14 ninja -C $SKIA_OUT/$BUILDTYPE ${APP_ARGS[@]}
18 ninja -C $OUT ${APP_ARGS[@]}
19 ln -sf lib $OUT/lib.target # android_run_skia looks in lib.target; ninja writes to lib.
20 # TODO(mtklein): change android_run_skia
21 15
22 # Write the device id into the .android_config file. This tells 16 # Write the device id into the .android_config file. This tells
23 # android_run_skia the last build we completed. 17 # android_run_skia the last build we completed.
24 echo $DEVICE_ID > .android_config 18 echo $DEVICE_ID > .android_config
25 19
OLDNEW
« no previous file with comments | « no previous file | platform_tools/android/bin/android_run_skia » ('j') | platform_tools/android/bin/android_setup.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698