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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } else if (host_cpu == "x86") { | 53 } else if (host_cpu == "x86") { |
54 android_host_arch = "x86" | 54 android_host_arch = "x86" |
55 } else { | 55 } else { |
56 assert(false, "Need Android toolchain support for your build CPU arch.") | 56 assert(false, "Need Android toolchain support for your build CPU arch.") |
57 } | 57 } |
58 | 58 |
59 # Defines the name the Android build gives to the current host CPU | 59 # Defines the name the Android build gives to the current host CPU |
60 # architecture, which is different than the names GN uses. | 60 # architecture, which is different than the names GN uses. |
61 if (host_os == "linux") { | 61 if (host_os == "linux") { |
62 android_host_os = "linux" | 62 android_host_os = "linux" |
| 63 } else if (host_os == "mac") { |
| 64 android_host_os = "darwin" |
63 } else { | 65 } else { |
64 assert(false, "Need Android toolchain support for your build OS.") | 66 assert(false, "Need Android toolchain support for your build OS.") |
65 } | 67 } |
66 | 68 |
67 # Directories and files ------------------------------------------------------ | 69 # Directories and files ------------------------------------------------------ |
68 # | 70 # |
69 # We define may of the dirs strings here for each output architecture (rather | 71 # We define may of the dirs strings here for each output architecture (rather |
70 # than just the current one) since these are needed by the Android toolchain | 72 # than just the current one) since these are needed by the Android toolchain |
71 # file to define toolchains for all possible targets in one pass. | 73 # file to define toolchains for all possible targets in one pass. |
72 | 74 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 } else if (current_cpu == "x64") { | 183 } else if (current_cpu == "x64") { |
182 android_app_abi = "x86_64" | 184 android_app_abi = "x86_64" |
183 } else if (current_cpu == "arm64") { | 185 } else if (current_cpu == "arm64") { |
184 android_app_abi = "arm64-v8a" | 186 android_app_abi = "arm64-v8a" |
185 } else if (current_cpu == "mips64el") { | 187 } else if (current_cpu == "mips64el") { |
186 android_app_abi = "mips64" | 188 android_app_abi = "mips64" |
187 } else { | 189 } else { |
188 assert(false, "Unknown Android ABI: " + current_cpu) | 190 assert(false, "Unknown Android ABI: " + current_cpu) |
189 } | 191 } |
190 } | 192 } |
OLD | NEW |