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 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 android_sdk_build_tools = | 189 android_sdk_build_tools = |
190 "${android_sdk_root}/build-tools/$android_sdk_build_tools_version" | 190 "${android_sdk_root}/build-tools/$android_sdk_build_tools_version" |
191 | 191 |
192 # Path to the SDK's android.jar | 192 # Path to the SDK's android.jar |
193 android_sdk_jar = "$android_sdk/android.jar" | 193 android_sdk_jar = "$android_sdk/android.jar" |
194 | 194 |
195 zipalign_path = "$android_sdk_build_tools/zipalign" | 195 zipalign_path = "$android_sdk_build_tools/zipalign" |
196 | 196 |
197 # Subdirectories inside android_ndk_root that contain the sysroot for the | 197 # Subdirectories inside android_ndk_root that contain the sysroot for the |
198 # associated platform. | 198 # associated platform. |
| 199 # If you raise this, reevaluate the snprintf=snprintf in ./BUILD.gn. |
199 _android_api_level = 16 | 200 _android_api_level = 16 |
200 x86_android_sysroot_subdir = | 201 x86_android_sysroot_subdir = |
201 "platforms/android-${_android_api_level}/arch-x86" | 202 "platforms/android-${_android_api_level}/arch-x86" |
202 arm_android_sysroot_subdir = | 203 arm_android_sysroot_subdir = |
203 "platforms/android-${_android_api_level}/arch-arm" | 204 "platforms/android-${_android_api_level}/arch-arm" |
204 mips_android_sysroot_subdir = | 205 mips_android_sysroot_subdir = |
205 "platforms/android-${_android_api_level}/arch-mips" | 206 "platforms/android-${_android_api_level}/arch-mips" |
| 207 |
| 208 # If you raise this, reevaluate the snprintf=snprintf in ./BUILD.gn. |
206 _android64_api_level = 21 | 209 _android64_api_level = 21 |
207 x86_64_android_sysroot_subdir = | 210 x86_64_android_sysroot_subdir = |
208 "platforms/android-${_android64_api_level}/arch-x86_64" | 211 "platforms/android-${_android64_api_level}/arch-x86_64" |
209 arm64_android_sysroot_subdir = | 212 arm64_android_sysroot_subdir = |
210 "platforms/android-${_android64_api_level}/arch-arm64" | 213 "platforms/android-${_android64_api_level}/arch-arm64" |
211 mips64_android_sysroot_subdir = | 214 mips64_android_sysroot_subdir = |
212 "platforms/android-${_android64_api_level}/arch-mips64" | 215 "platforms/android-${_android64_api_level}/arch-mips64" |
213 | 216 |
214 # Toolchain root directory for each build. The actual binaries are inside | 217 # Toolchain root directory for each build. The actual binaries are inside |
215 # a "bin" directory inside of these. | 218 # a "bin" directory inside of these. |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 "//build/toolchain/android:${android_secondary_abi_cpu}" | 331 "//build/toolchain/android:${android_secondary_abi_cpu}" |
329 } | 332 } |
330 } | 333 } |
331 } | 334 } |
332 | 335 |
333 declare_args() { | 336 declare_args() { |
334 # Enables used resource whitelist generation. Set for official builds only | 337 # Enables used resource whitelist generation. Set for official builds only |
335 # as a large amount of build output is generated. | 338 # as a large amount of build output is generated. |
336 enable_resource_whitelist_generation = is_android && is_official_build | 339 enable_resource_whitelist_generation = is_android && is_official_build |
337 } | 340 } |
OLD | NEW |