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 has_chrome_android_internal = | 8 has_chrome_android_internal = |
9 exec_script("//build/dir_exists.py", | 9 exec_script("//build/dir_exists.py", |
10 [ rebase_path("//clank", root_build_dir) ], | 10 [ rebase_path("//clank", root_build_dir) ], |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 run_findbugs = false | 44 run_findbugs = false |
45 | 45 |
46 # Set to true to enable the Errorprone compiler | 46 # Set to true to enable the Errorprone compiler |
47 use_errorprone_java_compiler = false | 47 use_errorprone_java_compiler = false |
48 } | 48 } |
49 | 49 |
50 # Host stuff ----------------------------------------------------------------- | 50 # Host stuff ----------------------------------------------------------------- |
51 | 51 |
52 # Defines the name the Android build gives to the current host CPU | 52 # Defines the name the Android build gives to the current host CPU |
53 # architecture, which is different than the names GN uses. | 53 # architecture, which is different than the names GN uses. |
54 if (host_cpu == "x64") { | 54 if ((host_cpu == "x64") || (host_cpu == "x86")) { |
55 android_host_arch = "x86_64" | 55 android_host_arch = "x86_64" |
56 } else if (host_cpu == "x86") { | |
57 android_host_arch = "x86" | |
58 } else { | 56 } else { |
59 assert(false, "Need Android toolchain support for your build CPU arch.") | 57 assert(false, "Need Android toolchain support for your build CPU arch.") |
60 } | 58 } |
61 | 59 |
62 # Defines the name the Android build gives to the current host CPU | 60 # Defines the name the Android build gives to the current host CPU |
63 # architecture, which is different than the names GN uses. | 61 # architecture, which is different than the names GN uses. |
64 if (host_os == "linux") { | 62 if (host_os == "linux") { |
65 android_host_os = "linux" | 63 android_host_os = "linux" |
66 } else if (host_os == "mac") { | 64 } else if (host_os == "mac") { |
67 android_host_os = "darwin" | 65 android_host_os = "darwin" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 } else if (current_cpu == "arm64") { | 195 } else if (current_cpu == "arm64") { |
198 android_app_abi = "arm64-v8a" | 196 android_app_abi = "arm64-v8a" |
199 } else if (current_cpu == "mips64el") { | 197 } else if (current_cpu == "mips64el") { |
200 android_app_abi = "mips64" | 198 android_app_abi = "mips64" |
201 } else { | 199 } else { |
202 assert(false, "Unknown Android ABI: " + current_cpu) | 200 assert(false, "Unknown Android ABI: " + current_cpu) |
203 } | 201 } |
204 | 202 |
205 android_log_tag = "\"flutter\"" | 203 android_log_tag = "\"flutter\"" |
206 } | 204 } |
OLD | NEW |