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

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

Issue 2858623002: Remove MIPS support (Closed)
Patch Set: Merge and cleanup Created 3 years, 6 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 | « build/compiler_version.py ('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 if (!defined(default_android_sdk_root)) { 8 if (!defined(default_android_sdk_root)) {
9 default_android_sdk_root = "//third_party/android_tools/sdk" 9 default_android_sdk_root = "//third_party/android_tools/sdk"
10 default_android_sdk_version = "22" 10 default_android_sdk_version = "22"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 # associated platform. 64 # associated platform.
65 if (current_cpu == "x64" || current_cpu == "arm64") { 65 if (current_cpu == "x64" || current_cpu == "arm64") {
66 _android_api_level = 22 66 _android_api_level = 22
67 } else { 67 } else {
68 _android_api_level = 16 68 _android_api_level = 16
69 } 69 }
70 x86_android_sysroot_subdir = 70 x86_android_sysroot_subdir =
71 "platforms/android-${_android_api_level}/arch-x86" 71 "platforms/android-${_android_api_level}/arch-x86"
72 arm_android_sysroot_subdir = 72 arm_android_sysroot_subdir =
73 "platforms/android-${_android_api_level}/arch-arm" 73 "platforms/android-${_android_api_level}/arch-arm"
74 mips_android_sysroot_subdir =
75 "platforms/android-${_android_api_level}/arch-mips"
76 x86_64_android_sysroot_subdir = 74 x86_64_android_sysroot_subdir =
77 "platforms/android-${_android_api_level}/arch-x86_64" 75 "platforms/android-${_android_api_level}/arch-x86_64"
78 arm64_android_sysroot_subdir = 76 arm64_android_sysroot_subdir =
79 "platforms/android-${_android_api_level}/arch-arm64" 77 "platforms/android-${_android_api_level}/arch-arm64"
80 mips64_android_sysroot_subdir =
81 "platforms/android-${_android_api_level}/arch-mips64"
82 78
83 # Toolchain root directory for each build. The actual binaries are inside 79 # Toolchain root directory for each build. The actual binaries are inside
84 # a "bin" directory inside of these. 80 # a "bin" directory inside of these.
85 _android_toolchain_version = "4.9" 81 _android_toolchain_version = "4.9"
86 _android_toolchain_detailed_version = "4.9.x" 82 _android_toolchain_detailed_version = "4.9.x"
87 x86_android_toolchain_root = "$android_ndk_root/toolchains/x86-${_android_tool chain_version}/prebuilt/${android_host_os}-${android_host_arch}" 83 x86_android_toolchain_root = "$android_ndk_root/toolchains/x86-${_android_tool chain_version}/prebuilt/${android_host_os}-${android_host_arch}"
88 arm_android_toolchain_root = "$android_ndk_root/toolchains/arm-linux-androidea bi-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }" 84 arm_android_toolchain_root = "$android_ndk_root/toolchains/arm-linux-androidea bi-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }"
89 mips_android_toolchain_root = "$android_ndk_root/toolchains/mipsel-linux-andro id-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }"
90 x86_64_android_toolchain_root = "$android_ndk_root/toolchains/x86_64-${_androi d_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch}" 85 x86_64_android_toolchain_root = "$android_ndk_root/toolchains/x86_64-${_androi d_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch}"
91 arm64_android_toolchain_root = "$android_ndk_root/toolchains/aarch64-linux-and roid-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_ar ch}" 86 arm64_android_toolchain_root = "$android_ndk_root/toolchains/aarch64-linux-and roid-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_ar ch}"
92 mips64_android_toolchain_root = "$android_ndk_root/toolchains/mips64el-linux-a ndroid-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_ arch}"
93 87
94 # Location of libgcc. This is only needed for the current GN toolchain, so we 88 # Location of libgcc. This is only needed for the current GN toolchain, so we
95 # only need to define the current one, rather than one for every platform 89 # only need to define the current one, rather than one for every platform
96 # like the toolchain roots. 90 # like the toolchain roots.
97 if (current_cpu == "x86") { 91 if (current_cpu == "x86") {
98 android_prebuilt_arch = "android-x86" 92 android_prebuilt_arch = "android-x86"
99 _binary_prefix = "i686-linux-android" 93 _binary_prefix = "i686-linux-android"
100 android_toolchain_root = "$x86_android_toolchain_root" 94 android_toolchain_root = "$x86_android_toolchain_root"
101 } else if (current_cpu == "arm") { 95 } else if (current_cpu == "arm") {
102 android_prebuilt_arch = "android-arm" 96 android_prebuilt_arch = "android-arm"
103 _binary_prefix = "arm-linux-androideabi" 97 _binary_prefix = "arm-linux-androideabi"
104 android_toolchain_root = "$arm_android_toolchain_root" 98 android_toolchain_root = "$arm_android_toolchain_root"
105 } else if (current_cpu == "mipsel") {
106 android_prebuilt_arch = "android-mips"
107 _binary_prefix = "mipsel-linux-android"
108 android_toolchain_root = "$mips_android_toolchain_root"
109 } else if (current_cpu == "x64") { 99 } else if (current_cpu == "x64") {
110 android_prebuilt_arch = "android-x86_64" 100 android_prebuilt_arch = "android-x86_64"
111 _binary_prefix = "x86_64-linux-android" 101 _binary_prefix = "x86_64-linux-android"
112 android_toolchain_root = "$x86_64_android_toolchain_root" 102 android_toolchain_root = "$x86_64_android_toolchain_root"
113 } else if (current_cpu == "arm64") { 103 } else if (current_cpu == "arm64") {
114 android_prebuilt_arch = "android-arm64" 104 android_prebuilt_arch = "android-arm64"
115 _binary_prefix = "aarch64-linux-android" 105 _binary_prefix = "aarch64-linux-android"
116 android_toolchain_root = "$arm64_android_toolchain_root" 106 android_toolchain_root = "$arm64_android_toolchain_root"
117 } else if (current_cpu == "mips64el") {
118 android_prebuilt_arch = "android-mips64"
119 _binary_prefix = "mips64el-linux-android"
120 android_toolchain_root = "$mips64_android_toolchain_root"
121 } else { 107 } else {
122 assert(false, "Need android libgcc support for your target arch.") 108 assert(false, "Need android libgcc support for your target arch.")
123 } 109 }
124 110
125 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" 111 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-"
126 android_readelf = "${android_tool_prefix}readelf" 112 android_readelf = "${android_tool_prefix}readelf"
127 android_objcopy = "${android_tool_prefix}objcopy" 113 android_objcopy = "${android_tool_prefix}objcopy"
128 android_gdbserver = 114 android_gdbserver =
129 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" 115 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver"
130 116
(...skipping 18 matching lines...) Expand all
149 135
150 if (current_cpu == "x86") { 136 if (current_cpu == "x86") {
151 android_app_abi = "x86" 137 android_app_abi = "x86"
152 } else if (current_cpu == "arm") { 138 } else if (current_cpu == "arm") {
153 import("//build/config/arm.gni") 139 import("//build/config/arm.gni")
154 if (arm_version < 7) { 140 if (arm_version < 7) {
155 android_app_abi = "armeabi" 141 android_app_abi = "armeabi"
156 } else { 142 } else {
157 android_app_abi = "armeabi-v7a" 143 android_app_abi = "armeabi-v7a"
158 } 144 }
159 } else if (current_cpu == "mipsel") {
160 android_app_abi = "mips"
161 } else if (current_cpu == "x64") { 145 } else if (current_cpu == "x64") {
162 android_app_abi = "x86_64" 146 android_app_abi = "x86_64"
163 } else if (current_cpu == "arm64") { 147 } else if (current_cpu == "arm64") {
164 android_app_abi = "arm64-v8a" 148 android_app_abi = "arm64-v8a"
165 } else if (current_cpu == "mips64el") {
166 android_app_abi = "mips64"
167 } else { 149 } else {
168 assert(false, "Unknown Android ABI: " + current_cpu) 150 assert(false, "Unknown Android ABI: " + current_cpu)
169 } 151 }
170 152
171 android_log_tag = "\"dart\"" 153 android_log_tag = "\"dart\""
172 } 154 }
OLDNEW
« no previous file with comments | « build/compiler_version.py ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698