Chromium Code Reviews| 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 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 } | 103 } |
| 104 | 104 |
| 105 android_aar_prebuilt("android_support_v7_recyclerview_java") { | 105 android_aar_prebuilt("android_support_v7_recyclerview_java") { |
| 106 deps = [ | 106 deps = [ |
| 107 ":android_support_v7_appcompat_java", | 107 ":android_support_v7_appcompat_java", |
| 108 ] | 108 ] |
| 109 lib_name = "recyclerview-v7" | 109 lib_name = "recyclerview-v7" |
| 110 aar_path = "$lib_path/$lib_name/$lib_version/$lib_name-$lib_version.aar" | 110 aar_path = "$lib_path/$lib_name/$lib_version/$lib_name-$lib_version.aar" |
| 111 } | 111 } |
| 112 | 112 |
| 113 android_resources("google_play_services_default_resources") { | 113 java_group("google_play_services_default_resources") { |
|
dgn
2016/08/05 16:12:07
This is a noop target because targets out of the m
| |
| 114 v14_skip = true | 114 deps = [] |
| 115 resource_dirs = [ "$android_sdk_root/extras/google/google_play_services/libpro ject/google-play-services_lib/res" ] | |
| 116 custom_package = "com.google.android.gms" | |
| 117 } | 115 } |
| 118 | 116 |
| 119 android_java_prebuilt("google_play_services_default_java") { | 117 java_group("google_play_services_default_java") { |
| 120 deps = [ | 118 deps = [ |
| 121 ":android_support_annotations_java", | 119 ":google_play_services_basement_java", |
| 122 ":android_support_v4_java", | 120 ":google_play_services_base_java", |
| 123 ":android_support_v7_mediarouter_java", | 121 ":google_play_services_auth_java", |
| 124 ":google_play_services_default_resources", | 122 ":google_play_services_auth_base_java", |
| 123 ":google_play_services_cast_java", | |
| 124 ":google_play_services_gcm_java", | |
| 125 ":google_play_services_iid_java", | |
| 126 ":google_play_services_nearby_java", | |
| 125 ] | 127 ] |
| 126 input_jars_paths = [ "$android_sdk/optional/org.apache.http.legacy.jar" ] | |
|
agrieve
2016/08/05 18:59:28
I think this is the line needed to fix the bots. H
dgn
2016/08/08 17:17:24
Thanks! Release builds work locally with your patc
| |
| 127 proguard_preprocess = true | |
| 128 proguard_config = "//third_party/android_tools/proguard.flags" | |
| 129 jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/go ogle-play-services_lib/libs/google-play-services.jar" | |
| 130 } | 128 } |
| 131 | 129 |
| 132 android_aar_prebuilt("android_support_v17_leanback_java") { | 130 android_aar_prebuilt("android_support_v17_leanback_java") { |
| 133 deps = [ | 131 deps = [ |
| 134 ":android_support_v7_recyclerview_java", | 132 ":android_support_v7_recyclerview_java", |
| 135 ] | 133 ] |
| 136 lib_name = "leanback-v17" | 134 lib_name = "leanback-v17" |
| 137 aar_path = "$lib_path/$lib_name/$lib_version/$lib_name-$lib_version.aar" | 135 aar_path = "$lib_path/$lib_name/$lib_version/$lib_name-$lib_version.aar" |
| 138 } | 136 } |
| 139 | 137 |
| 140 # TODO(jbudorick): Remove this once net_java_test_support no longer needs it. | 138 # TODO(jbudorick): Remove this once net_java_test_support no longer needs it. |
| 141 android_java_prebuilt("legacy_http_javalib") { | 139 android_java_prebuilt("legacy_http_javalib") { |
| 142 testonly = true | 140 testonly = true |
| 143 jar_path = "$android_sdk/optional/org.apache.http.legacy.jar" | 141 jar_path = "$android_sdk/optional/org.apache.http.legacy.jar" |
| 144 } | 142 } |
| 143 | |
| 144 # TODO(dgn): Use the POM files instead of hardcoding the dependencies. | |
| 145 gms_path = "$android_sdk_root/extras/google/m2repository/com/google/android/gms" | |
| 146 gms_version = "9.4.0" | |
| 147 | |
| 148 android_aar_prebuilt("google_play_services_basement_java") { | |
| 149 deps = [ | |
| 150 ":android_support_v4_java", | |
| 151 ] | |
| 152 lib_name = "play-services-basement" | |
|
agrieve
2016/08/05 18:59:28
nit: lib_name -> _lib_name
dgn
2016/08/08 17:17:24
Done.
| |
| 153 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 154 } | |
| 155 | |
| 156 android_aar_prebuilt("google_play_services_tasks_java") { | |
| 157 deps = [ | |
| 158 ":google_play_services_basement_java", | |
| 159 ] | |
| 160 lib_name = "play-services-tasks" | |
| 161 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 162 } | |
| 163 | |
| 164 android_aar_prebuilt("google_play_services_base_java") { | |
| 165 deps = [ | |
| 166 ":google_play_services_basement_java", | |
| 167 ":google_play_services_tasks_java", | |
| 168 ] | |
| 169 lib_name = "play-services-base" | |
| 170 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 171 } | |
| 172 | |
| 173 android_aar_prebuilt("google_play_services_auth_base_java") { | |
| 174 deps = [ | |
| 175 ":google_play_services_base_java", | |
| 176 ":google_play_services_basement_java", | |
| 177 ] | |
| 178 lib_name = "play-services-auth-base" | |
| 179 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 180 } | |
| 181 | |
| 182 android_aar_prebuilt("google_play_services_auth_java") { | |
| 183 deps = [ | |
| 184 ":google_play_services_auth_base_java", | |
| 185 ":google_play_services_base_java", | |
| 186 ":google_play_services_basement_java", | |
| 187 ] | |
| 188 lib_name = "play-services-auth" | |
| 189 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 190 } | |
| 191 | |
| 192 android_aar_prebuilt("google_play_services_cast_java") { | |
| 193 deps = [ | |
| 194 ":android_support_v7_mediarouter_java", | |
| 195 ":google_play_services_base_java", | |
| 196 ":google_play_services_basement_java", | |
| 197 ] | |
| 198 lib_name = "play-services-cast" | |
| 199 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 200 } | |
| 201 | |
| 202 # android_aar_prebuilt("google_play_services_cast_framework_java") { | |
|
agrieve
2016/08/05 18:59:28
Remove?
dgn
2016/08/08 17:17:24
Done.
| |
| 203 # deps = [ | |
| 204 # ":google_play_services_base_java", | |
| 205 # ":google_play_services_basement_java", | |
| 206 # ":google_play_services_cast_java", | |
| 207 # ] | |
| 208 # lib_name = "play-services-cast-framework" | |
| 209 # aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 210 # } | |
| 211 | |
| 212 android_aar_prebuilt("google_play_services_iid_java") { | |
| 213 deps = [ | |
| 214 ":google_play_services_base_java", | |
| 215 ":google_play_services_basement_java", | |
| 216 ] | |
| 217 lib_name = "play-services-iid" | |
| 218 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 219 } | |
| 220 | |
| 221 android_aar_prebuilt("google_play_services_gcm_java") { | |
| 222 deps = [ | |
| 223 ":google_play_services_base_java", | |
| 224 ":google_play_services_basement_java", | |
| 225 ":google_play_services_iid_java", | |
| 226 ] | |
| 227 lib_name = "play-services-gcm" | |
| 228 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 229 } | |
| 230 | |
| 231 android_aar_prebuilt("google_play_services_nearby_java") { | |
| 232 deps = [ | |
| 233 ":google_play_services_base_java", | |
| 234 ":google_play_services_basement_java", | |
| 235 ] | |
| 236 lib_name = "play-services-nearby" | |
| 237 aar_path = "$gms_path/$lib_name/$gms_version/$lib_name-$gms_version.aar" | |
| 238 } | |
| OLD | NEW |