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

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

Issue 269943005: Add android_library template (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « build/android/gyp/write_build_config.py ('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 declare_args() { 8 declare_args() {
9 # Absolute directory containing the Android source code. 9 # Absolute directory containing the Android source code.
10 android_src = "" 10 android_src = ""
11 11
12 android_sdk_root = "//third_party/android_tools/sdk"
13 android_sdk_version = "19"
14
12 # This is set when building the Android WebView inside the Android build 15 # This is set when building the Android WebView inside the Android build
13 # system, using the 'android' gyp backend. The WebView code is still built 16 # system, using the 'android' gyp backend. The WebView code is still built
14 # when this is unset, but builds using the normal chromium build system. 17 # when this is unset, but builds using the normal chromium build system.
15 is_android_webview_build = false 18 is_android_webview_build = false
16 } 19 }
17 20
18 if (is_android_webview_build) { 21 if (is_android_webview_build) {
19 assert(android_src != "", 22 assert(android_src != "",
20 "You must specify android_src for an Android WebView build.") 23 "You must specify android_src for an Android WebView build.")
21 } 24 }
(...skipping 17 matching lines...) Expand all
39 } else { 42 } else {
40 assert(false, "Need Android toolchain support for your build OS.") 43 assert(false, "Need Android toolchain support for your build OS.")
41 } 44 }
42 45
43 # Directories and files ------------------------------------------------------ 46 # Directories and files ------------------------------------------------------
44 # 47 #
45 # We define may of the dirs strings here for each output architecture (rather 48 # We define may of the dirs strings here for each output architecture (rather
46 # than just the current one) since these are needed by the Android toolchain 49 # than just the current one) since these are needed by the Android toolchain
47 # file to define toolchains for all possible targets in one pass. 50 # file to define toolchains for all possible targets in one pass.
48 51
52 android_sdk = "${android_sdk_root}/platforms/android-${android_sdk_version}"
53
49 # Path to the Android NDK and SDK. 54 # Path to the Android NDK and SDK.
50 android_ndk_root = "//third_party/android_tools/ndk" 55 android_ndk_root = "//third_party/android_tools/ndk"
51 android_sdk_root = "//third_party/android_tools/sdk"
52 56
53 # Path to the SDK's android.jar 57 # Path to the SDK's android.jar
54 android_sdk_jar = "$android_sdk_root/platforms/android-19/android.jar" 58 android_sdk_jar = "$android_sdk_root/platforms/android-19/android.jar"
55 59
56 # Subdirectories inside android_ndk_root that contain the sysroot for the 60 # Subdirectories inside android_ndk_root that contain the sysroot for the
57 # associated platform. 61 # associated platform.
58 _android_api_level = 14 62 _android_api_level = 14
59 x86_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-x86 " 63 x86_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-x86 "
60 arm_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-arm " 64 arm_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-arm "
61 mips_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-mi ps" 65 mips_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-mi ps"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 android_app_abi = "mips" 114 android_app_abi = "mips"
111 } else { 115 } else {
112 assert(false, "Unknown Android ABI: " + cpu_arch) 116 assert(false, "Unknown Android ABI: " + cpu_arch)
113 } 117 }
114 } else { 118 } else {
115 if (!defined(is_android_webview_build)) { 119 if (!defined(is_android_webview_build)) {
116 is_android_webview_build = false 120 is_android_webview_build = false
117 } 121 }
118 use_system_stlport = false 122 use_system_stlport = false
119 } 123 }
OLDNEW
« no previous file with comments | « build/android/gyp/write_build_config.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698