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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |