| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } else { | 150 } else { |
| 151 assert(false, "Need android libgcc support for your target arch.") | 151 assert(false, "Need android libgcc support for your target arch.") |
| 152 } | 152 } |
| 153 | 153 |
| 154 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" | 154 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" |
| 155 android_readelf = "${android_tool_prefix}readelf" | 155 android_readelf = "${android_tool_prefix}readelf" |
| 156 android_objcopy = "${android_tool_prefix}objcopy" | 156 android_objcopy = "${android_tool_prefix}objcopy" |
| 157 android_gdbserver = | 157 android_gdbserver = |
| 158 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" | 158 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" |
| 159 | 159 |
| 160 # stlport stuff -------------------------------------------------------------- | 160 # libc++ stuff --------------------------------------------------------------- |
| 161 | 161 |
| 162 if (component_mode == "shared_library") { | 162 if (component_mode == "shared_library") { |
| 163 android_stlport_library = "stlport_shared" | 163 android_libcpp_library = "c++_shared" |
| 164 } else { | 164 } else { |
| 165 android_stlport_library = "stlport_static" | 165 android_libcpp_library = "c++_static" |
| 166 } | 166 } |
| 167 | 167 |
| 168 # ABI ------------------------------------------------------------------------ | 168 # ABI ------------------------------------------------------------------------ |
| 169 | 169 |
| 170 if (current_cpu == "x86") { | 170 if (current_cpu == "x86") { |
| 171 android_app_abi = "x86" | 171 android_app_abi = "x86" |
| 172 } else if (current_cpu == "arm") { | 172 } else if (current_cpu == "arm") { |
| 173 import("//build/config/arm.gni") | 173 import("//build/config/arm.gni") |
| 174 if (arm_version < 7) { | 174 if (arm_version < 7) { |
| 175 android_app_abi = "armeabi" | 175 android_app_abi = "armeabi" |
| 176 } else { | 176 } else { |
| 177 android_app_abi = "armeabi-v7a" | 177 android_app_abi = "armeabi-v7a" |
| 178 } | 178 } |
| 179 } else if (current_cpu == "mipsel") { | 179 } else if (current_cpu == "mipsel") { |
| 180 android_app_abi = "mips" | 180 android_app_abi = "mips" |
| 181 } else if (current_cpu == "x64") { | 181 } else if (current_cpu == "x64") { |
| 182 android_app_abi = "x86_64" | 182 android_app_abi = "x86_64" |
| 183 } else if (current_cpu == "arm64") { | 183 } else if (current_cpu == "arm64") { |
| 184 android_app_abi = "arm64-v8a" | 184 android_app_abi = "arm64-v8a" |
| 185 } else if (current_cpu == "mips64el") { | 185 } else if (current_cpu == "mips64el") { |
| 186 android_app_abi = "mips64" | 186 android_app_abi = "mips64" |
| 187 } else { | 187 } else { |
| 188 assert(false, "Unknown Android ABI: " + current_cpu) | 188 assert(false, "Unknown Android ABI: " + current_cpu) |
| 189 } | 189 } |
| 190 } | 190 } |
| OLD | NEW |