Index: platform_tools/android/bin/android_setup.sh |
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh |
index 3c6d44d84f73c519d1f362925b0d9217f0b1e89f..f936f00c46f83e5e876799a84b0af520ffff5de7 100755 |
--- a/platform_tools/android/bin/android_setup.sh |
+++ b/platform_tools/android/bin/android_setup.sh |
@@ -1,4 +1,10 @@ |
#!/bin/bash |
+############################################################################### |
+# Copyright 2015 Google Inc. |
+# |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+############################################################################### |
# |
# android_setup.sh: Sets environment variables used by other Android scripts. |
@@ -91,34 +97,27 @@ setup_device() { |
TARGET_DEVICE=$(cat .android_config) |
verbose "no target device (-d), using ${TARGET_DEVICE} from most recent build" |
else |
- TARGET_DEVICE="arm_v7_thumb" |
+ TARGET_DEVICE="arm_v7" |
verbose "no target device (-d), using ${TARGET_DEVICE}" |
fi |
fi |
case $TARGET_DEVICE in |
- nexus_s) |
- DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7 arm_thumb=1" |
- DEFINES="${DEFINES} skia_resource_cache_mb_limit=24" |
- ANDROID_ARCH="arm" |
- ;; |
- nexus_4 | nexus_7 | nexus_10) |
- DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7 arm_thumb=1" |
+ arm) |
+ DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 arm_thumb=0" |
ANDROID_ARCH="arm" |
;; |
- xoom) |
- DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 arm_version=7 arm_thumb=1" |
+ arm_v7 | nexus_4 | nexus_5 | nexus_6 | nexus_7 | nexus_10 | xoom) |
+ DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 arm_version=7 arm_thumb=1" |
ANDROID_ARCH="arm" |
;; |
- galaxy_nexus) |
+ arm_v7_neon) |
DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7 arm_thumb=1" |
- DEFINES="${DEFINES} skia_resource_cache_mb_limit=32" |
ANDROID_ARCH="arm" |
;; |
- intel_rhb | razr_i) |
- DEFINES="${DEFINES} skia_arch_type=x86" |
- DEFINES="${DEFINES} skia_resource_cache_mb_limit=32" |
- ANDROID_ARCH="x86" |
+ arm64 | nexus_9) |
+ DEFINES="${DEFINES} skia_arch_type=arm64 skia_arch_width=64" |
+ ANDROID_ARCH="arm64" |
;; |
x86) |
DEFINES="${DEFINES} skia_arch_type=x86" |
@@ -128,26 +127,6 @@ setup_device() { |
DEFINES="${DEFINES} skia_arch_type=x86_64" |
ANDROID_ARCH="x86_64" |
;; |
- arm_v7) |
- DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 arm_version=7 arm_thumb=0" |
- ANDROID_ARCH="arm" |
- ;; |
- arm_v7_thumb | nvidia_logan | nexus_5) |
- DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 arm_version=7 arm_thumb=1" |
- ANDROID_ARCH="arm" |
- ;; |
- arm) |
- DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 arm_thumb=0" |
- ANDROID_ARCH="arm" |
- ;; |
- arm_thumb) |
- DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 arm_thumb=1" |
- ANDROID_ARCH="arm" |
- ;; |
- arm64) |
- DEFINES="${DEFINES} skia_arch_type=arm64 skia_arch_width=64" |
- ANDROID_ARCH="arm64" |
- ;; |
mips) |
DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32" |
DEFINES="${DEFINES} skia_resource_cache_mb_limit=32" |