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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 | 188 |
189 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" | 189 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" |
190 android_readelf = "${android_tool_prefix}readelf" | 190 android_readelf = "${android_tool_prefix}readelf" |
191 android_objcopy = "${android_tool_prefix}objcopy" | 191 android_objcopy = "${android_tool_prefix}objcopy" |
192 android_gdbserver = | 192 android_gdbserver = |
193 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" | 193 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" |
194 | 194 |
195 # Toolchain stuff ------------------------------------------------------------ | 195 # Toolchain stuff ------------------------------------------------------------ |
196 | 196 |
197 android_libcpp_root = "$android_ndk_root/sources/cxx-stl/llvm-libc++" | 197 android_libcpp_root = "$android_ndk_root/sources/cxx-stl/llvm-libc++" |
198 if (is_component_build) { | |
brettw
2015/09/27 23:42:24
This was only used in the one place so I just inli
| |
199 android_libcpp_library = "c++_shared" | |
200 } else { | |
201 android_libcpp_library = "c++_static" | |
202 } | |
203 | 198 |
204 # ABI ------------------------------------------------------------------------ | 199 # ABI ------------------------------------------------------------------------ |
205 | 200 |
206 if (current_cpu == "x86") { | 201 if (current_cpu == "x86") { |
207 android_app_abi = "x86" | 202 android_app_abi = "x86" |
208 } else if (current_cpu == "arm") { | 203 } else if (current_cpu == "arm") { |
209 import("//build/config/arm.gni") | 204 import("//build/config/arm.gni") |
210 if (arm_version < 7) { | 205 if (arm_version < 7) { |
211 android_app_abi = "armeabi" | 206 android_app_abi = "armeabi" |
212 } else { | 207 } else { |
213 android_app_abi = "armeabi-v7a" | 208 android_app_abi = "armeabi-v7a" |
214 } | 209 } |
215 } else if (current_cpu == "mipsel") { | 210 } else if (current_cpu == "mipsel") { |
216 android_app_abi = "mips" | 211 android_app_abi = "mips" |
217 } else if (current_cpu == "x64") { | 212 } else if (current_cpu == "x64") { |
218 android_app_abi = "x86_64" | 213 android_app_abi = "x86_64" |
219 } else if (current_cpu == "arm64") { | 214 } else if (current_cpu == "arm64") { |
220 android_app_abi = "arm64-v8a" | 215 android_app_abi = "arm64-v8a" |
221 } else if (current_cpu == "mips64el") { | 216 } else if (current_cpu == "mips64el") { |
222 android_app_abi = "mips64" | 217 android_app_abi = "mips64" |
223 } else { | 218 } else { |
224 assert(false, "Unknown Android ABI: " + current_cpu) | 219 assert(false, "Unknown Android ABI: " + current_cpu) |
225 } | 220 } |
226 } | 221 } |
OLD | NEW |