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

Side by Side Diff: build/secondary/third_party/android_tools/BUILD.gn

Issue 1418573010: Enable downloading Google Play services via deps hook (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on master Created 5 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/install-build-deps-android.sh ('k') | no next file » | 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 import("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 6
7 config("cpu_features_include") { 7 config("cpu_features_include") {
8 include_dirs = [ "ndk/sources/android/cpufeatures" ] 8 include_dirs = [ "ndk/sources/android/cpufeatures" ]
9 } 9 }
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ":android_support_v7_appcompat_java", 86 ":android_support_v7_appcompat_java",
87 ":android_support_v7_recyclerview_resources", 87 ":android_support_v7_recyclerview_resources",
88 ] 88 ]
89 jar_path = "$android_sdk_root/extras/android/support/v7/recyclerview/libs/andr oid-support-v7-recyclerview.jar" 89 jar_path = "$android_sdk_root/extras/android/support/v7/recyclerview/libs/andr oid-support-v7-recyclerview.jar"
90 } 90 }
91 91
92 android_resources("google_play_services_default_resources") { 92 android_resources("google_play_services_default_resources") {
93 v14_skip = true 93 v14_skip = true
94 resource_dirs = [ "$android_sdk_root/extras/google/google_play_services/libpro ject/google-play-services_lib/res" ] 94 resource_dirs = [ "$android_sdk_root/extras/google/google_play_services/libpro ject/google-play-services_lib/res" ]
95 custom_package = "com.google.android.gms" 95 custom_package = "com.google.android.gms"
96 deps = [
97 ":check_sdk_extras_version",
98 ]
99 } 96 }
100 android_java_prebuilt("google_play_services_default_java") { 97 android_java_prebuilt("google_play_services_default_java") {
101 deps = [ 98 deps = [
102 ":android_support_v13_java", 99 ":android_support_v13_java",
103 ":android_support_v7_mediarouter_java", 100 ":android_support_v7_mediarouter_java",
104 ":google_play_services_default_resources", 101 ":google_play_services_default_resources",
105 ":legacy_http_javalib", 102 ":legacy_http_javalib",
106 ] 103 ]
107 proguard_preprocess = true 104 proguard_preprocess = true
108 proguard_config = "//third_party/android_tools/proguard.flags" 105 proguard_config = "//third_party/android_tools/proguard.flags"
109
110 # TODO(dgn) deps should not complain about having a custom action here
111 # Currently, there is no guarantee that the data_deps actions will complete be fore the current one runs
112 data_deps = [
113 ":check_sdk_extras_version",
114 ]
115 jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/go ogle-play-services_lib/libs/google-play-services.jar" 106 jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/go ogle-play-services_lib/libs/google-play-services.jar"
116 } 107 }
117 108
118 action("check_sdk_extras_version") {
119 script = "//build/check_sdk_extras_version.py"
120 args = [
121 "--package-id",
122 "extra-google-google_play_services",
123 "--package-location",
124 rebase_path("$android_sdk_root/extras/google/google_play_services"),
125 "--stamp",
126 rebase_path("$target_gen_dir/checked_sdk_extras_version.stamp"),
127 ]
128 inputs = [
129 "//build/android_sdk_extras.json",
130 "$android_sdk_root/extras/google/google_play_services/source.properties",
131 ]
132 outputs = [
133 "$target_gen_dir/checked_sdk_extras_version.stamp",
134 ]
135 }
136
137 # TODO(jbudorick): Remove this once net_java_test_support no longer needs it. 109 # TODO(jbudorick): Remove this once net_java_test_support no longer needs it.
138 android_java_prebuilt("legacy_http_javalib") { 110 android_java_prebuilt("legacy_http_javalib") {
139 jar_path = "$android_sdk/optional/org.apache.http.legacy.jar" 111 jar_path = "$android_sdk/optional/org.apache.http.legacy.jar"
140 } 112 }
OLDNEW
« no previous file with comments | « build/install-build-deps-android.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698