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

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

Issue 2161183003: Build libmonochrome.so with secondary toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This file contains common secondary abi config for the Android build.
6
7 if (target_os == "android") {
8 if (target_cpu == "arm64" || target_cpu == "x64" || target_cpu == "mips64el") {
9 android_64bit_target_cpu = true
10 } else if (target_cpu == "arm" || target_cpu == "x86" ||
11 target_cpu == "mipsel") {
12 android_64bit_target_cpu = false
13 } else {
14 assert(false, "Unknown target CPU: $target_cpu")
15 }
16
17 # Intentionally do not define android_app_secondary_abi_cpu for 32-bit
18 # target_cpu, since they are not used.
19 if (target_cpu == "arm64") {
20 android_secondary_abi_cpu = "arm"
21 } else if (target_cpu == "x64") {
22 android_secondary_abi_cpu = "x86"
23 } else if (target_cpu == "mips64el") {
24 android_secondary_abi_cpu = "mipsel"
25 }
26
27 if (defined(android_secondary_abi_cpu)) {
28 _android_secondary_abi_cpu_with_v8 =
29 "${android_secondary_abi_cpu}_v8_${android_secondary_abi_cpu}"
30 if (is_clang) {
31 android_secondary_abi_toolchain = "//build/toolchain/android:clang_${_andr oid_secondary_abi_cpu_with_v8}"
32 } else {
33 android_secondary_abi_toolchain =
34 "//build/toolchain/android:${_android_secondary_abi_cpu_with_v8}"
35 }
36 }
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698