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

Side by Side Diff: platform_tools/android/bin/android_setup.sh

Issue 380213004: Add config to build mips with dsp2 optimizations enabled by default. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 # android_setup.sh: Sets environment variables used by other Android scripts. 3 # android_setup.sh: Sets environment variables used by other Android scripts.
4 4
5 # Fail-fast if anything in the script fails. 5 # Fail-fast if anything in the script fails.
6 set -e 6 set -e
7 7
8 BUILDTYPE=${BUILDTYPE-Debug} 8 BUILDTYPE=${BUILDTYPE-Debug}
9 9
10 while (( "$#" )); do 10 while (( "$#" )); do
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ;; 138 ;;
139 arm64) 139 arm64)
140 DEFINES="${DEFINES} skia_arch_type=arm64 skia_arch_width=64" 140 DEFINES="${DEFINES} skia_arch_type=arm64 skia_arch_width=64"
141 ANDROID_ARCH="arm64" 141 ANDROID_ARCH="arm64"
142 ;; 142 ;;
143 mips) 143 mips)
144 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32" 144 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32"
145 DEFINES="${DEFINES} skia_resource_cache_mb_limit=32" 145 DEFINES="${DEFINES} skia_resource_cache_mb_limit=32"
146 ANDROID_ARCH="mips" 146 ANDROID_ARCH="mips"
147 ;; 147 ;;
148 mips_dsp2)
149 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32"
150 DEFINES="${DEFINES} mips_arch_variant=mips32r2 mips_dsp=2"
151 ANDROID_ARCH="mips"
152 ;;
148 mips64) 153 mips64)
149 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=64" 154 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=64"
150 ANDROID_ARCH="mips64" 155 ANDROID_ARCH="mips64"
151 ;; 156 ;;
152 *) 157 *)
153 if [ -z "$ANDROID_IGNORE_UNKNOWN_DEVICE" ]; then 158 if [ -z "$ANDROID_IGNORE_UNKNOWN_DEVICE" ]; then
154 echo "ERROR: unknown device $TARGET_DEVICE" 159 echo "ERROR: unknown device $TARGET_DEVICE"
155 exit 1 160 exit 1
156 fi 161 fi
157 # If ANDROID_IGNORE_UNKNOWN_DEVICE is set, then ANDROID_TOOLCHAIN 162 # If ANDROID_IGNORE_UNKNOWN_DEVICE is set, then ANDROID_TOOLCHAIN
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 adb_push_if_needed $HOST_SRC $ANDROID_DST 262 adb_push_if_needed $HOST_SRC $ANDROID_DST
258 else 263 else
259 echo -n "$ANDROID_DST " 264 echo -n "$ANDROID_DST "
260 $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")" 265 $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")"
261 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST 266 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST
262 fi 267 fi
263 fi 268 fi
264 } 269 }
265 270
266 setup_device "${DEVICE_ID}" 271 setup_device "${DEVICE_ID}"
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