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

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

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/android/internal_rules.gni » ('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 = exec_script("//build/dir_exists.py",
9 [ rebase_path("//clank", root_build_dir) ],
10 "string") == "True"
11
12 if (has_chrome_android_internal) {
13 import("//clank/config.gni")
14 } else {
15 default_android_sdk_root = "//third_party/android_tools/sdk"
16 default_android_sdk_version = "21"
17 default_android_sdk_build_tools_version = "21.0.1"
18 }
19
8 declare_args() { 20 declare_args() {
9 # Absolute directory containing the Android source code. 21 # Absolute directory containing the Android source code.
10 android_src = "" 22 android_src = ""
11 23
12 android_sdk_root = "//third_party/android_tools/sdk" 24 android_sdk_root = default_android_sdk_root
13 android_sdk_version = "21" 25 android_sdk_version = default_android_sdk_version
26 android_sdk_build_tools_version = default_android_sdk_build_tools_version
14 27
15 # This is set when building the Android WebView inside the Android build 28 # This is set when building the Android WebView inside the Android build
16 # system, using the 'android' gyp backend. The WebView code is still built 29 # system, using the 'android' gyp backend. The WebView code is still built
17 # when this is unset, but builds using the normal chromium build system. 30 # when this is unset, but builds using the normal chromium build system.
18 is_android_webview_build = false 31 is_android_webview_build = false
19 32
20 android_default_keystore_path = "//build/android/ant/chromium-debug.keystore " 33 android_default_keystore_path = "//build/android/ant/chromium-debug.keystore "
21 android_default_keystore_name = "chromiumdebugkey" 34 android_default_keystore_name = "chromiumdebugkey"
22 android_default_keystore_password = "chromium" 35 android_default_keystore_password = "chromium"
23 36
24 # This is a unique identifier for a given build. It's used for 37 # This is a unique identifier for a given build. It's used for
25 # identifying various build artifacts corresponding to a particular build of 38 # identifying various build artifacts corresponding to a particular build of
26 # chrome (e.g. where to find archived symbols). 39 # chrome (e.g. where to find archived symbols).
27 android_chrome_build_id = "\"\"" 40 android_chrome_build_id = "\"\""
28 } 41 }
29 42
30 if (is_android_webview_build) { 43 if (is_android_webview_build) {
31 assert(android_src != "", 44 assert(android_src != "",
32 "You must specify android_src for an Android WebView build.") 45 "You must specify android_src for an Android WebView build.")
33 } 46 }
34 47
35
36 # Host stuff ----------------------------------------------------------------- 48 # Host stuff -----------------------------------------------------------------
37 49
38 # Defines the name the Android build gives to the current host CPU 50 # Defines the name the Android build gives to the current host CPU
39 # architecture, which is different than the names GN uses. 51 # architecture, which is different than the names GN uses.
40 if (build_cpu_arch == "x64") { 52 if (build_cpu_arch == "x64") {
41 android_host_arch = "x86_64" 53 android_host_arch = "x86_64"
42 } else if (build_cpu_arch == "x86") { 54 } else if (build_cpu_arch == "x86") {
43 android_host_arch = "x86" 55 android_host_arch = "x86"
44 } else { 56 } else {
45 assert(false, "Need Android toolchain support for your build CPU arch.") 57 assert(false, "Need Android toolchain support for your build CPU arch.")
(...skipping 15 matching lines...) Expand all
61 73
62 android_sdk = "${android_sdk_root}/platforms/android-${android_sdk_version}" 74 android_sdk = "${android_sdk_root}/platforms/android-${android_sdk_version}"
63 75
64 # Path to the Android NDK and SDK. 76 # Path to the Android NDK and SDK.
65 android_ndk_root = "//third_party/android_tools/ndk" 77 android_ndk_root = "//third_party/android_tools/ndk"
66 android_ndk_include_dir = "$android_ndk_root/usr/include" 78 android_ndk_include_dir = "$android_ndk_root/usr/include"
67 79
68 android_sdk = "${android_sdk_root}/platforms/android-${android_sdk_version}" 80 android_sdk = "${android_sdk_root}/platforms/android-${android_sdk_version}"
69 81
70 android_sdk_tools = "${android_sdk_root}/tools" 82 android_sdk_tools = "${android_sdk_root}/tools"
71 android_sdk_build_tools = "${android_sdk_root}/build-tools/21.0.0" 83 android_sdk_build_tools = "${android_sdk_root}/build-tools/$android_sdk_build_ tools_version"
72 84
73 # Path to the SDK's android.jar 85 # Path to the SDK's android.jar
74 android_sdk_jar = "$android_sdk/android.jar" 86 android_sdk_jar = "$android_sdk/android.jar"
75 87
76 zipalign_path = "$android_sdk_build_tools/zipalign" 88 zipalign_path = "$android_sdk_build_tools/zipalign"
77 89
78 # Subdirectories inside android_ndk_root that contain the sysroot for the 90 # Subdirectories inside android_ndk_root that contain the sysroot for the
79 # associated platform. 91 # associated platform.
80 _android_api_level = 14 92 _android_api_level = 14
81 x86_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-x86 " 93 x86_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-x86 "
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } else if (cpu_arch == "mipsel") { 153 } else if (cpu_arch == "mipsel") {
142 android_app_abi = "mips" 154 android_app_abi = "mips"
143 } else { 155 } else {
144 assert(false, "Unknown Android ABI: " + cpu_arch) 156 assert(false, "Unknown Android ABI: " + cpu_arch)
145 } 157 }
146 } else { 158 } else {
147 if (!defined(is_android_webview_build)) { 159 if (!defined(is_android_webview_build)) {
148 is_android_webview_build = false 160 is_android_webview_build = false
149 } 161 }
150 } 162 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698