| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 ":android_support_v7_appcompat_java", | 104 ":android_support_v7_appcompat_java", |
| 105 ":android_support_v7_recyclerview_resources", | 105 ":android_support_v7_recyclerview_resources", |
| 106 ] | 106 ] |
| 107 jar_path = "$android_sdk_root/extras/android/support/v7/recyclerview/libs/andr
oid-support-v7-recyclerview.jar" | 107 jar_path = "$android_sdk_root/extras/android/support/v7/recyclerview/libs/andr
oid-support-v7-recyclerview.jar" |
| 108 } | 108 } |
| 109 | 109 |
| 110 android_resources("google_play_services_default_resources") { | 110 android_resources("google_play_services_default_resources") { |
| 111 v14_skip = true | 111 v14_skip = true |
| 112 resource_dirs = [ "$android_sdk_root/extras/google/google_play_services/libpro
ject/google-play-services_lib/res" ] | 112 resource_dirs = [ "$android_sdk_root/extras/google/google_play_services/libpro
ject/google-play-services_lib/res" ] |
| 113 custom_package = "com.google.android.gms" | 113 custom_package = "com.google.android.gms" |
| 114 deps = [ | |
| 115 ":check_sdk_extras_version", | |
| 116 ] | |
| 117 } | 114 } |
| 118 android_java_prebuilt("google_play_services_default_java") { | 115 android_java_prebuilt("google_play_services_default_java") { |
| 119 deps = [ | 116 deps = [ |
| 120 ":android_support_v13_java", | 117 ":android_support_v13_java", |
| 121 ":android_support_v7_mediarouter_java", | 118 ":android_support_v7_mediarouter_java", |
| 122 ":google_play_services_default_resources", | 119 ":google_play_services_default_resources", |
| 123 ":legacy_http_javalib", | 120 ":legacy_http_javalib", |
| 124 ] | 121 ] |
| 125 proguard_preprocess = true | 122 proguard_preprocess = true |
| 126 proguard_config = "//third_party/android_tools/proguard.flags" | 123 proguard_config = "//third_party/android_tools/proguard.flags" |
| 127 | |
| 128 # TODO(dgn) deps should not complain about having a custom action here | |
| 129 # Currently, there is no guarantee that the data_deps actions will complete be
fore the current one runs | |
| 130 data_deps = [ | |
| 131 ":check_sdk_extras_version", | |
| 132 ] | |
| 133 jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/go
ogle-play-services_lib/libs/google-play-services.jar" | 124 jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/go
ogle-play-services_lib/libs/google-play-services.jar" |
| 134 } | 125 } |
| 135 | 126 |
| 136 action("check_sdk_extras_version") { | |
| 137 script = "//build/check_sdk_extras_version.py" | |
| 138 args = [ | |
| 139 "--package-id", | |
| 140 "extra-google-google_play_services", | |
| 141 "--package-location", | |
| 142 rebase_path("$android_sdk_root/extras/google/google_play_services"), | |
| 143 "--stamp", | |
| 144 rebase_path("$target_gen_dir/checked_sdk_extras_version.stamp"), | |
| 145 ] | |
| 146 inputs = [ | |
| 147 "//build/android_sdk_extras.json", | |
| 148 "$android_sdk_root/extras/google/google_play_services/source.properties", | |
| 149 ] | |
| 150 outputs = [ | |
| 151 "$target_gen_dir/checked_sdk_extras_version.stamp", | |
| 152 ] | |
| 153 } | |
| 154 | |
| 155 # TODO(jbudorick): Remove this once net_java_test_support no longer needs it. | 127 # TODO(jbudorick): Remove this once net_java_test_support no longer needs it. |
| 156 android_java_prebuilt("legacy_http_javalib") { | 128 android_java_prebuilt("legacy_http_javalib") { |
| 157 jar_path = "$android_sdk/optional/org.apache.http.legacy.jar" | 129 jar_path = "$android_sdk/optional/org.apache.http.legacy.jar" |
| 158 } | 130 } |
| OLD | NEW |