| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This file contains common system config stuff for the Android build. | 5 # This file contains common system config stuff for the Android build. |
| 6 | 6 |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 if (!defined(default_android_sdk_root)) { | 8 if (!defined(default_android_sdk_root)) { |
| 9 default_android_sdk_root = "//third_party/android_tools/sdk" | 9 default_android_sdk_root = "//third_party/android_tools/sdk" |
| 10 default_android_sdk_version = "22" | 10 default_android_sdk_version = "22" |
| 11 default_android_sdk_build_tools_version = "22.0.1" | 11 default_android_sdk_build_tools_version = "22.0.1" |
| 12 } | 12 } |
| 13 | 13 |
| 14 declare_args() { | 14 declare_args() { |
| 15 android_sdk_root = default_android_sdk_root | 15 android_sdk_root = default_android_sdk_root |
| 16 android_sdk_version = default_android_sdk_version | 16 android_sdk_version = default_android_sdk_version |
| 17 android_sdk_build_tools_version = default_android_sdk_build_tools_version | 17 android_sdk_build_tools_version = default_android_sdk_build_tools_version |
| 18 } | 18 } |
| 19 | 19 |
| 20 # Host stuff ----------------------------------------------------------------- | 20 # Host stuff ----------------------------------------------------------------- |
| 21 | 21 |
| 22 # Defines the name the Android build gives to the current host CPU | 22 # Defines the name the Android build gives to the current host CPU |
| 23 # architecture, which is different than the names GN uses. | 23 # architecture, which is different than the names GN uses. |
| 24 if ((host_cpu == "x64") || (host_cpu == "x86")) { | 24 if (host_cpu == "x64" || host_cpu == "x86") { |
| 25 android_host_arch = "x86_64" | 25 android_host_arch = "x86_64" |
| 26 } else { | 26 } else { |
| 27 assert(false, "Need Android toolchain support for your build CPU arch.") | 27 assert(false, "Need Android toolchain support for your build CPU arch.") |
| 28 } | 28 } |
| 29 | 29 |
| 30 # Defines the name the Android build gives to the current host CPU | 30 # Defines the name the Android build gives to the current host CPU |
| 31 # architecture, which is different than the names GN uses. | 31 # architecture, which is different than the names GN uses. |
| 32 if (host_os == "linux") { | 32 if (host_os == "linux") { |
| 33 android_host_os = "linux" | 33 android_host_os = "linux" |
| 34 } else if (host_os == "mac") { | 34 } else if (host_os == "mac") { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 } else if (current_cpu == "arm64") { | 165 } else if (current_cpu == "arm64") { |
| 166 android_app_abi = "arm64-v8a" | 166 android_app_abi = "arm64-v8a" |
| 167 } else if (current_cpu == "mips64el") { | 167 } else if (current_cpu == "mips64el") { |
| 168 android_app_abi = "mips64" | 168 android_app_abi = "mips64" |
| 169 } else { | 169 } else { |
| 170 assert(false, "Unknown Android ABI: " + current_cpu) | 170 assert(false, "Unknown Android ABI: " + current_cpu) |
| 171 } | 171 } |
| 172 | 172 |
| 173 android_log_tag = "\"flutter\"" | 173 android_log_tag = "\"flutter\"" |
| 174 } | 174 } |
| OLD | NEW |