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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 android_readelf = "${android_tool_prefix}readelf" | 160 android_readelf = "${android_tool_prefix}readelf" |
161 android_objcopy = "${android_tool_prefix}objcopy" | 161 android_objcopy = "${android_tool_prefix}objcopy" |
162 android_gdbserver = | 162 android_gdbserver = |
163 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" | 163 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" |
164 | 164 |
165 # Toolchain stuff ------------------------------------------------------------ | 165 # Toolchain stuff ------------------------------------------------------------ |
166 | 166 |
167 android_libcpp_root = "$android_ndk_root/sources/cxx-stl/llvm-libc++" | 167 android_libcpp_root = "$android_ndk_root/sources/cxx-stl/llvm-libc++" |
168 if (is_component_build) { | 168 if (is_component_build) { |
169 android_libcpp_library = "c++_shared" | 169 android_libcpp_library = "c++_shared" |
170 # By appending .cr, we prevent name collisions with libraries already | |
171 # loaded by the Android zygote. | |
172 android_product_extension = ".cr.so" | |
173 } else { | 170 } else { |
174 android_libcpp_library = "c++_static" | 171 android_libcpp_library = "c++_static" |
175 android_product_extension = ".so" | |
176 } | 172 } |
177 | 173 |
178 # ABI ------------------------------------------------------------------------ | 174 # ABI ------------------------------------------------------------------------ |
179 | 175 |
180 if (current_cpu == "x86") { | 176 if (current_cpu == "x86") { |
181 android_app_abi = "x86" | 177 android_app_abi = "x86" |
182 } else if (current_cpu == "arm") { | 178 } else if (current_cpu == "arm") { |
183 import("//build/config/arm.gni") | 179 import("//build/config/arm.gni") |
184 if (arm_version < 7) { | 180 if (arm_version < 7) { |
185 android_app_abi = "armeabi" | 181 android_app_abi = "armeabi" |
186 } else { | 182 } else { |
187 android_app_abi = "armeabi-v7a" | 183 android_app_abi = "armeabi-v7a" |
188 } | 184 } |
189 } else if (current_cpu == "mipsel") { | 185 } else if (current_cpu == "mipsel") { |
190 android_app_abi = "mips" | 186 android_app_abi = "mips" |
191 } else if (current_cpu == "x64") { | 187 } else if (current_cpu == "x64") { |
192 android_app_abi = "x86_64" | 188 android_app_abi = "x86_64" |
193 } else if (current_cpu == "arm64") { | 189 } else if (current_cpu == "arm64") { |
194 android_app_abi = "arm64-v8a" | 190 android_app_abi = "arm64-v8a" |
195 } else if (current_cpu == "mips64el") { | 191 } else if (current_cpu == "mips64el") { |
196 android_app_abi = "mips64" | 192 android_app_abi = "mips64" |
197 } else { | 193 } else { |
198 assert(false, "Unknown Android ABI: " + current_cpu) | 194 assert(false, "Unknown Android ABI: " + current_cpu) |
199 } | 195 } |
200 } | 196 } |
OLD | NEW |