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

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

Issue 1228553010: Remove skia_arch_width, fold into skia_arch_type. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 4 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 | « gyp/tools.gyp ('k') | platform_tools/android/gyp/dependencies.gypi » ('j') | 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 # Copyright 2015 Google Inc. 3 # Copyright 2015 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 ############################################################################### 7 ###############################################################################
8 # 8 #
9 # android_setup.sh: Sets environment variables used by other Android scripts. 9 # android_setup.sh: Sets environment variables used by other Android scripts.
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ;; 117 ;;
118 arm_v7 | xoom) 118 arm_v7 | xoom)
119 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 arm_version=7" 119 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 arm_version=7"
120 ANDROID_ARCH="arm" 120 ANDROID_ARCH="arm"
121 ;; 121 ;;
122 arm_v7_neon | nexus_4 | nexus_5 | nexus_6 | nexus_7 | nexus_10) 122 arm_v7_neon | nexus_4 | nexus_5 | nexus_6 | nexus_7 | nexus_10)
123 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7" 123 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7"
124 ANDROID_ARCH="arm" 124 ANDROID_ARCH="arm"
125 ;; 125 ;;
126 arm64 | nexus_9) 126 arm64 | nexus_9)
127 DEFINES="${DEFINES} skia_arch_type=arm64 skia_arch_width=64 arm_version=8" 127 DEFINES="${DEFINES} skia_arch_type=arm64 arm_version=8"
128 ANDROID_ARCH="arm64" 128 ANDROID_ARCH="arm64"
129 ;; 129 ;;
130 x86) 130 x86)
131 DEFINES="${DEFINES} skia_arch_type=x86" 131 DEFINES="${DEFINES} skia_arch_type=x86"
132 ANDROID_ARCH="x86" 132 ANDROID_ARCH="x86"
133 ;; 133 ;;
134 x86_64 | x64) 134 x86_64 | x64)
135 DEFINES="${DEFINES} skia_arch_type=x86_64" 135 DEFINES="${DEFINES} skia_arch_type=x86_64"
136 ANDROID_ARCH="x86_64" 136 ANDROID_ARCH="x86_64"
137 ;; 137 ;;
138 mips) 138 mips)
139 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32" 139 DEFINES="${DEFINES} skia_arch_type=mips32"
140 DEFINES="${DEFINES} skia_resource_cache_mb_limit=32" 140 DEFINES="${DEFINES} skia_resource_cache_mb_limit=32"
141 ANDROID_ARCH="mips" 141 ANDROID_ARCH="mips"
142 ;; 142 ;;
143 mips_dsp2) 143 mips_dsp2)
144 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32" 144 DEFINES="${DEFINES} skia_arch_type=mips32"
145 DEFINES="${DEFINES} mips_arch_variant=mips32r2 mips_dsp=2" 145 DEFINES="${DEFINES} mips_arch_variant=mips32r2 mips_dsp=2"
146 ANDROID_ARCH="mips" 146 ANDROID_ARCH="mips"
147 ;; 147 ;;
148 mips64) 148 mips64)
149 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=64" 149 DEFINES="${DEFINES} skia_arch_type=mips64"
150 ANDROID_ARCH="mips64" 150 ANDROID_ARCH="mips64"
151 ;; 151 ;;
152 *) 152 *)
153 if [ -z "$ANDROID_IGNORE_UNKNOWN_DEVICE" ]; then 153 if [ -z "$ANDROID_IGNORE_UNKNOWN_DEVICE" ]; then
154 echo "ERROR: unknown device $TARGET_DEVICE" 154 echo "ERROR: unknown device $TARGET_DEVICE"
155 exit 1 155 exit 1
156 fi 156 fi
157 # If ANDROID_IGNORE_UNKNOWN_DEVICE is set, then ANDROID_TOOLCHAIN 157 # If ANDROID_IGNORE_UNKNOWN_DEVICE is set, then ANDROID_TOOLCHAIN
158 # or ANDROID_ARCH should be set; Otherwise, ANDROID_ARCH 158 # or ANDROID_ARCH should be set; Otherwise, ANDROID_ARCH
159 # defaults to 'arm' and the default ARM toolchain is used. 159 # defaults to 'arm' and the default ARM toolchain is used.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 adb_push_if_needed $HOST_SRC $ANDROID_DST 262 adb_push_if_needed $HOST_SRC $ANDROID_DST
263 else 263 else
264 echo -n "$ANDROID_DST " 264 echo -n "$ANDROID_DST "
265 $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")" 265 $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")"
266 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST 266 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST
267 fi 267 fi
268 fi 268 fi
269 } 269 }
270 270
271 setup_device "${DEVICE_ID}" 271 setup_device "${DEVICE_ID}"
OLDNEW
« no previous file with comments | « gyp/tools.gyp ('k') | platform_tools/android/gyp/dependencies.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698