Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: build/config/android/config.gni

Issue 2161183003: Build libmonochrome.so with secondary toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the v8_foo toolchain & address comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 assert(rebase_path("//", root_build_dir) == "../../", 8 assert(rebase_path("//", root_build_dir) == "../../",
9 "Android output directory must be nested 2 levels within src/ (" + 9 "Android output directory must be nested 2 levels within src/ (" +
10 "e.g.: out-gn/Debug). http://crbug.com/412935") 10 "e.g.: out-gn/Debug). http://crbug.com/412935")
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 android_objcopy = "${android_tool_prefix}objcopy" 259 android_objcopy = "${android_tool_prefix}objcopy"
260 android_gdbserver = 260 android_gdbserver =
261 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" 261 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver"
262 262
263 # Toolchain stuff ------------------------------------------------------------ 263 # Toolchain stuff ------------------------------------------------------------
264 264
265 android_libcpp_root = "$android_ndk_root/sources/cxx-stl/llvm-libc++" 265 android_libcpp_root = "$android_ndk_root/sources/cxx-stl/llvm-libc++"
266 266
267 # ABI ------------------------------------------------------------------------ 267 # ABI ------------------------------------------------------------------------
268 268
269 # Intentionally do not define android_app_secondary_abi for 64-bit
270 # android_app_abi, since they are not used.
271 if (current_cpu == "x86") { 269 if (current_cpu == "x86") {
272 android_app_abi = "x86" 270 android_app_abi = "x86"
273 android_app_secondary_abi = "x86_64"
274 } else if (current_cpu == "arm") { 271 } else if (current_cpu == "arm") {
275 import("//build/config/arm.gni") 272 import("//build/config/arm.gni")
276 if (arm_version < 7) { 273 if (arm_version < 7) {
277 android_app_abi = "armeabi" 274 android_app_abi = "armeabi"
278 } else { 275 } else {
279 android_app_abi = "armeabi-v7a" 276 android_app_abi = "armeabi-v7a"
280 } 277 }
281 android_app_secondary_abi = "arm64-v8a"
282 } else if (current_cpu == "mipsel") { 278 } else if (current_cpu == "mipsel") {
283 android_app_abi = "mips" 279 android_app_abi = "mips"
284 android_app_secondary_abi = "mips64"
285 } else if (current_cpu == "x64") { 280 } else if (current_cpu == "x64") {
286 android_app_abi = "x86_64" 281 android_app_abi = "x86_64"
287 } else if (current_cpu == "arm64") { 282 } else if (current_cpu == "arm64") {
288 android_app_abi = "arm64-v8a" 283 android_app_abi = "arm64-v8a"
289 } else if (current_cpu == "mips64el") { 284 } else if (current_cpu == "mips64el") {
290 android_app_abi = "mips64" 285 android_app_abi = "mips64"
291 } else { 286 } else {
292 assert(false, "Unknown Android ABI: " + current_cpu) 287 assert(false, "Unknown Android ABI: " + current_cpu)
293 } 288 }
294 289
295 if (android_libcpp_lib_dir == "") { 290 if (android_libcpp_lib_dir == "") {
296 android_libcpp_lib_dir = "${android_libcpp_root}/libs/${android_app_abi}" 291 android_libcpp_lib_dir = "${android_libcpp_root}/libs/${android_app_abi}"
297 } 292 }
293
294 # Secondary ABI -------------------------------------------------------------
295 if (target_cpu == "arm64" || target_cpu == "x64" || target_cpu == "mips64el") {
296 android_64bit_target_cpu = true
297 } else if (target_cpu == "arm" || target_cpu == "x86" ||
298 target_cpu == "mipsel") {
299 android_64bit_target_cpu = false
300 } else {
301 assert(false, "Unknown target CPU: $target_cpu")
302 }
303
304 # Intentionally do not define android_app_secondary_abi_cpu and
305 # android_app_secondary_abi for 32-bit target_cpu, since they are not used.
306 if (target_cpu == "arm64") {
307 android_secondary_abi_cpu = "arm"
308 android_app_secondary_abi = "armeabi-v7a"
309 } else if (target_cpu == "x64") {
310 android_secondary_abi_cpu = "x86"
311 android_app_secondary_abi = "x86"
312 } else if (target_cpu == "mips64el") {
313 android_secondary_abi_cpu = "mipsel"
314 android_app_secondary_abi = "mips"
315 }
316
317 if (defined(android_secondary_abi_cpu)) {
318 if (is_clang) {
319 android_secondary_abi_toolchain =
320 "//build/toolchain/android:clang_${android_secondary_abi_cpu}"
321 } else {
322 android_secondary_abi_toolchain =
323 "//build/toolchain/android:${android_secondary_abi_cpu}"
324 }
325 }
298 } 326 }
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698