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

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

Issue 772123003: Revert "Use thumb versions of external libraries with ARMv7." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « build/common.gypi ('k') | build/config/compiler/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 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 21 matching lines...) Expand all
32 "//build/android/ant/chromium-debug.keystore" 32 "//build/android/ant/chromium-debug.keystore"
33 android_default_keystore_name = "chromiumdebugkey" 33 android_default_keystore_name = "chromiumdebugkey"
34 android_default_keystore_password = "chromium" 34 android_default_keystore_password = "chromium"
35 35
36 # This is a unique identifier for a given build. It's used for 36 # This is a unique identifier for a given build. It's used for
37 # identifying various build artifacts corresponding to a particular build of 37 # identifying various build artifacts corresponding to a particular build of
38 # chrome (e.g. where to find archived symbols). 38 # chrome (e.g. where to find archived symbols).
39 android_chrome_build_id = "\"\"" 39 android_chrome_build_id = "\"\""
40 } 40 }
41 41
42 # ABI ------------------------------------------------------------------------
43
44 if (cpu_arch == "x86") {
45 android_app_abi = "x86"
46 } else if (cpu_arch == "arm") {
47 import("//build/config/arm.gni")
48 if (arm_version < 7) {
49 android_app_abi = "armeabi"
50 } else {
51 android_app_abi = "armeabi-v7a"
52 }
53 } else if (cpu_arch == "mipsel") {
54 android_app_abi = "mips"
55 } else {
56 assert(false, "Unknown Android ABI: " + cpu_arch)
57 }
58
59 # Host stuff ----------------------------------------------------------------- 42 # Host stuff -----------------------------------------------------------------
60 43
61 # Defines the name the Android build gives to the current host CPU 44 # Defines the name the Android build gives to the current host CPU
62 # architecture, which is different than the names GN uses. 45 # architecture, which is different than the names GN uses.
63 if (build_cpu_arch == "x64") { 46 if (build_cpu_arch == "x64") {
64 android_host_arch = "x86_64" 47 android_host_arch = "x86_64"
65 } else if (build_cpu_arch == "x86") { 48 } else if (build_cpu_arch == "x86") {
66 android_host_arch = "x86" 49 android_host_arch = "x86"
67 } else { 50 } else {
68 assert(false, "Need Android toolchain support for your build CPU arch.") 51 assert(false, "Need Android toolchain support for your build CPU arch.")
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 if (cpu_arch == "x86") { 108 if (cpu_arch == "x86") {
126 android_prebuilt_arch = "android-x86" 109 android_prebuilt_arch = "android-x86"
127 _binary_prefix = "i686-linux-android" 110 _binary_prefix = "i686-linux-android"
128 android_toolchain_root = "$x86_android_toolchain_root" 111 android_toolchain_root = "$x86_android_toolchain_root"
129 android_libgcc_file = 112 android_libgcc_file =
130 "$android_toolchain_root/lib/gcc/i686-linux-android/${_android_toolchain _version}/libgcc.a" 113 "$android_toolchain_root/lib/gcc/i686-linux-android/${_android_toolchain _version}/libgcc.a"
131 } else if (cpu_arch == "arm") { 114 } else if (cpu_arch == "arm") {
132 android_prebuilt_arch = "android-arm" 115 android_prebuilt_arch = "android-arm"
133 _binary_prefix = "arm-linux-androideabi" 116 _binary_prefix = "arm-linux-androideabi"
134 android_toolchain_root = "$arm_android_toolchain_root" 117 android_toolchain_root = "$arm_android_toolchain_root"
135 if (arm_use_thumb) { 118 android_libgcc_file =
136 android_libgcc_file = 119 "$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_toolch ain_version}/libgcc.a"
137 "$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_tool chain_version}/thumb/libgcc.a"
138 } else {
139 android_libgcc_file =
140 "$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_tool chain_version}/libgcc.a"
141 }
142 } else if (cpu_arch == "mipsel") { 120 } else if (cpu_arch == "mipsel") {
143 android_prebuilt_arch = "android-mips" 121 android_prebuilt_arch = "android-mips"
144 _binary_prefix = "mipsel-linux-android" 122 _binary_prefix = "mipsel-linux-android"
145 android_toolchain_root = "$mips_android_toolchain_root" 123 android_toolchain_root = "$mips_android_toolchain_root"
146 android_libgcc_file = 124 android_libgcc_file =
147 "$android_toolchain_root/lib/gcc/mipsel-linux-android/${_android_toolcha in_version}/libgcc.a" 125 "$android_toolchain_root/lib/gcc/mipsel-linux-android/${_android_toolcha in_version}/libgcc.a"
148 } else { 126 } else {
149 assert(false, "Need android libgcc support for your target arch.") 127 assert(false, "Need android libgcc support for your target arch.")
150 } 128 }
151 129
152 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" 130 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-"
153 android_readelf = "${android_tool_prefix}readelf" 131 android_readelf = "${android_tool_prefix}readelf"
154 android_objcopy = "${android_tool_prefix}objcopy" 132 android_objcopy = "${android_tool_prefix}objcopy"
155 android_gdbserver = 133 android_gdbserver =
156 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" 134 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver"
157 135
158 # stlport stuff -------------------------------------------------------------- 136 # stlport stuff --------------------------------------------------------------
159 137
160 if (component_mode == "shared_library") { 138 if (component_mode == "shared_library") {
161 android_stlport_library = "stlport_shared" 139 android_stlport_library = "stlport_shared"
162 } else { 140 } else {
163 android_stlport_library = "stlport_static" 141 android_stlport_library = "stlport_static"
164 } 142 }
143
144 # ABI ------------------------------------------------------------------------
145
146 if (cpu_arch == "x86") {
147 android_app_abi = "x86"
148 } else if (cpu_arch == "arm") {
149 import("//build/config/arm.gni")
150 if (arm_version < 7) {
151 android_app_abi = "armeabi"
152 } else {
153 android_app_abi = "armeabi-v7a"
154 }
155 } else if (cpu_arch == "mipsel") {
156 android_app_abi = "mips"
157 } else {
158 assert(false, "Unknown Android ABI: " + cpu_arch)
159 }
165 } else { 160 } else {
166 if (!defined(is_android_webview_build)) { 161 if (!defined(is_android_webview_build)) {
167 is_android_webview_build = false 162 is_android_webview_build = false
168 } 163 }
169 } 164 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698