1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
config("cpu_features_include") {
include_dirs = [ "ndk/sources/android/cpufeatures" ]
}
# This is the GN version of
# //build/android/ndk.gyp:cpu_features
source_set("cpu_features") {
sources = [
"ndk/sources/android/cpufeatures/cpu-features.c",
]
public_configs = [ ":cpu_features_include" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
}
android_java_prebuilt("android_gcm_java") {
jar_path = "$android_sdk_root/extras/google/gcm/gcm-client/dist/gcm.jar"
}
android_java_prebuilt("uiautomator_java") {
jar_path = "$android_sdk/uiautomator.jar"
}
android_resources("android_support_design_resources") {
v14_skip = true
resource_dirs = [ "$android_sdk_root/extras/android/support/design/res" ]
deps = [
":android_support_v7_appcompat_resources",
]
custom_package = "android.support.design"
}
android_java_prebuilt("android_support_design_java") {
deps = [
":android_support_v7_appcompat_java",
":android_support_design_resources",
]
jar_path = "$android_sdk_root/extras/android/support/design/libs/android-support-design.jar"
}
android_java_prebuilt("android_support_annotations_javalib") {
jar_path = "$android_sdk_root/extras/android/support/annotations/android-support-annotations.jar"
}
java_prebuilt("android_support_multidex_java") {
supports_android = true
jar_path = "$android_sdk_root/extras/android/support/multidex/library/libs/android-support-multidex.jar"
}
android_java_prebuilt("android_support_v13_java") {
jar_path =
"$android_sdk_root/extras/android/support/v13/android-support-v13.jar"
}
android_resources("android_support_v7_appcompat_resources") {
v14_skip = true
resource_dirs =
[ "$android_sdk_root/extras/android/support/v7/appcompat/res" ]
custom_package = "android.support.v7.appcompat"
}
android_java_prebuilt("android_support_v7_appcompat_java") {
deps = [
":android_support_v7_appcompat_resources",
]
jar_path = "$android_sdk_root/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar"
}
android_resources("android_support_v7_mediarouter_resources") {
v14_skip = true
resource_dirs =
[ "$android_sdk_root/extras/android/support/v7/mediarouter/res" ]
deps = [
":android_support_v7_appcompat_resources",
]
custom_package = "android.support.v7.mediarouter"
}
android_java_prebuilt("android_support_v7_mediarouter_java") {
deps = [
":android_support_v7_mediarouter_resources",
":android_support_v7_appcompat_java",
]
jar_path = "$android_sdk_root/extras/android/support/v7/mediarouter/libs/android-support-v7-mediarouter.jar"
}
android_resources("android_support_v7_recyclerview_resources") {
v14_skip = true
resource_dirs =
[ "$android_sdk_root/extras/android/support/v7/recyclerview/res" ]
custom_package = "android.support.v7.recyclerview"
}
android_java_prebuilt("android_support_v7_recyclerview_java") {
deps = [
":android_support_v7_appcompat_java",
":android_support_v7_recyclerview_resources",
]
jar_path = "$android_sdk_root/extras/android/support/v7/recyclerview/libs/android-support-v7-recyclerview.jar"
}
android_resources("google_play_services_default_resources") {
v14_skip = true
resource_dirs = [ "$android_sdk_root/extras/google/google_play_services/libproject/google-play-services_lib/res" ]
custom_package = "com.google.android.gms"
deps = [
":check_sdk_extras_version",
]
}
android_java_prebuilt("google_play_services_default_java") {
deps = [
":android_support_v13_java",
":android_support_v7_mediarouter_java",
":google_play_services_default_resources",
":legacy_http_javalib",
]
proguard_preprocess = true
proguard_config = "//third_party/android_tools/proguard.flags"
# TODO(dgn) deps should not complain about having a custom action here
# Currently, there is no guarantee that the data_deps actions will complete before the current one runs
data_deps = [
":check_sdk_extras_version",
]
jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar"
}
action("check_sdk_extras_version") {
script = "//build/check_sdk_extras_version.py"
args = [
"--package-id",
"extra-google-google_play_services",
"--package-location",
rebase_path("$android_sdk_root/extras/google/google_play_services"),
"--stamp",
rebase_path("$target_gen_dir/checked_sdk_extras_version.stamp"),
]
inputs = [
"//build/android_sdk_extras.json",
"$android_sdk_root/extras/google/google_play_services/source.properties",
]
outputs = [
"$target_gen_dir/checked_sdk_extras_version.stamp",
]
}
# TODO(jbudorick): Remove this once net_java_test_support no longer needs it.
android_java_prebuilt("legacy_http_javalib") {
jar_path = "$android_sdk/optional/org.apache.http.legacy.jar"
}
|