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 has_chrome_android_internal = | |
9 exec_script("//build/dir_exists.py", | |
10 [ rebase_path("//clank", root_build_dir) ], | |
11 "string") == "True" | |
12 | |
13 if (has_chrome_android_internal) { | |
14 import("//clank/config.gni") | |
15 } | |
16 | |
17 if (!defined(default_android_sdk_root)) { | 8 if (!defined(default_android_sdk_root)) { |
18 default_android_sdk_root = "//third_party/android_tools/sdk" | 9 default_android_sdk_root = "//third_party/android_tools/sdk" |
19 default_android_sdk_version = "22" | 10 default_android_sdk_version = "22" |
20 default_android_sdk_build_tools_version = "22.0.1" | 11 default_android_sdk_build_tools_version = "22.0.1" |
21 } | 12 } |
22 | 13 |
23 if (!defined(google_play_services_library)) { | |
24 google_play_services_library = | |
25 "//third_party/android_tools:google_play_services_default_java" | |
26 } | |
27 | |
28 declare_args() { | 14 declare_args() { |
29 android_sdk_root = default_android_sdk_root | 15 android_sdk_root = default_android_sdk_root |
30 android_sdk_version = default_android_sdk_version | 16 android_sdk_version = default_android_sdk_version |
31 android_sdk_build_tools_version = default_android_sdk_build_tools_version | 17 android_sdk_build_tools_version = default_android_sdk_build_tools_version |
32 | |
33 android_default_keystore_path = | |
34 "//build/android/ant/chromium-debug.keystore" | |
35 android_default_keystore_name = "chromiumdebugkey" | |
36 android_default_keystore_password = "chromium" | |
37 | |
38 # This is a unique identifier for a given build. It's used for | |
39 # identifying various build artifacts corresponding to a particular build of | |
40 # chrome (e.g. where to find archived symbols). | |
41 android_chrome_build_id = "\"\"" | |
42 | |
43 # Set to true to run findbugs on JAR targets. | |
44 run_findbugs = false | |
45 | |
46 # Set to true to enable the Errorprone compiler | |
47 use_errorprone_java_compiler = false | |
48 } | 18 } |
49 | 19 |
50 # Host stuff ----------------------------------------------------------------- | 20 # Host stuff ----------------------------------------------------------------- |
51 | 21 |
52 # Defines the name the Android build gives to the current host CPU | 22 # Defines the name the Android build gives to the current host CPU |
53 # architecture, which is different than the names GN uses. | 23 # architecture, which is different than the names GN uses. |
54 if ((host_cpu == "x64") || (host_cpu == "x86")) { | 24 if ((host_cpu == "x64") || (host_cpu == "x86")) { |
55 android_host_arch = "x86_64" | 25 android_host_arch = "x86_64" |
56 } else { | 26 } else { |
57 assert(false, "Need Android toolchain support for your build CPU arch.") | 27 assert(false, "Need Android toolchain support for your build CPU arch.") |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 } else if (current_cpu == "arm64") { | 165 } else if (current_cpu == "arm64") { |
196 android_app_abi = "arm64-v8a" | 166 android_app_abi = "arm64-v8a" |
197 } else if (current_cpu == "mips64el") { | 167 } else if (current_cpu == "mips64el") { |
198 android_app_abi = "mips64" | 168 android_app_abi = "mips64" |
199 } else { | 169 } else { |
200 assert(false, "Unknown Android ABI: " + current_cpu) | 170 assert(false, "Unknown Android ABI: " + current_cpu) |
201 } | 171 } |
202 | 172 |
203 android_log_tag = "\"flutter\"" | 173 android_log_tag = "\"flutter\"" |
204 } | 174 } |
OLD | NEW |