OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # This file contains common secondary abi config for the Android build. |
| 6 |
| 7 if (target_os == "android") { |
| 8 if (target_cpu == "arm64" || target_cpu == "x64" || target_cpu == "mips64el")
{ |
| 9 android_64bit_target_cpu = true |
| 10 } else if (target_cpu == "arm" || target_cpu == "x86" || |
| 11 target_cpu == "mipsel") { |
| 12 android_64bit_target_cpu = false |
| 13 _v8_toolchain_cpu = "x86" |
| 14 } else { |
| 15 assert(false, "Unknown target CPU: $target_cpu") |
| 16 } |
| 17 |
| 18 # Intentionally do not define android_app_secondary_abi_toolchain for 32-bit |
| 19 # android_app_abi, since they are not used. |
| 20 if (target_cpu == "arm64") { |
| 21 android_secondary_abi_cpu = "arm" |
| 22 } else if (target_cpu == "x64") { |
| 23 android_secondary_abi_cpu = "x86" |
| 24 } else if (target_cpu == "mips64el") { |
| 25 android_secondary_abi_cpu = "mipsel" |
| 26 } |
| 27 |
| 28 if (defined(android_secondary_abi_cpu)) { |
| 29 _android_secondary_abi_cpu_with_v8 = |
| 30 "${android_secondary_abi_cpu}_v8_${android_secondary_abi_cpu}" |
| 31 if (is_clang) { |
| 32 android_secondary_abi_toolchain = "//build/toolchain/android:clang_${_andr
oid_secondary_abi_cpu_with_v8}" |
| 33 } else { |
| 34 android_secondary_abi_toolchain = |
| 35 "//build/toolchain/android:${_android_secondary_abi_cpu_with_v8}" |
| 36 } |
| 37 } |
| 38 } |
OLD | NEW |