blob: 8f802802f779f3b64c4f2310912a653a0ec9eae8 [file] [log] [blame]
Nan Zhang394d86b2018-02-28 16:28:17 -08001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15java_defaults {
16 name: "framework-stubs-default",
17 errorprone: {
18 javacflags: [
19 "-XepDisableAllChecks",
20 ],
21 },
22 java_resources: [
23 ":notices-for-framework-stubs",
24 ],
25 no_standard_libs: true,
26 system_modules: "none",
Nan Zhang7bec4872018-03-21 17:46:55 -070027 java_version: "1.8",
David Brazdil51c12882018-06-27 10:51:24 +010028 compile_dex: true,
Nan Zhang394d86b2018-02-28 16:28:17 -080029}
30
31java_library_static {
32 name: "android_stubs_current",
33 srcs: [
34 ":api-stubs-docs",
35 ],
Nan Zhangb28bc7e2018-06-13 17:47:05 -070036 libs: [
37 "stub-annotations",
38 ],
Nan Zhangb78c3a22018-07-13 16:37:39 -070039 static_libs: [
40 "private-stub-annotations-jar",
41 ],
Nan Zhangb28bc7e2018-06-13 17:47:05 -070042 defaults: ["framework-stubs-default"],
43}
44
Colin Cross9b0d5102018-04-13 17:38:47 -070045java_system_modules {
46 name: "android_stubs_current_system_modules",
47 libs: ["android_stubs_current"],
48}
49
Nan Zhang394d86b2018-02-28 16:28:17 -080050java_library_static {
51 name: "android_system_stubs_current",
52 srcs: [
53 ":system-api-stubs-docs",
54 ],
Nan Zhangb28bc7e2018-06-13 17:47:05 -070055 libs: [
56 "stub-annotations",
57 ],
Nan Zhangb78c3a22018-07-13 16:37:39 -070058 static_libs: [
59 "private-stub-annotations-jar",
60 ],
Nan Zhangb28bc7e2018-06-13 17:47:05 -070061 defaults: ["framework-stubs-default"],
62}
63
Colin Cross9b0d5102018-04-13 17:38:47 -070064java_system_modules {
65 name: "android_system_stubs_current_system_modules",
66 libs: ["android_system_stubs_current"],
67}
68
Nan Zhang394d86b2018-02-28 16:28:17 -080069java_library_static {
70 name: "android_test_stubs_current",
71 srcs: [
72 ":test-api-stubs-docs",
73 ],
Nan Zhangb28bc7e2018-06-13 17:47:05 -070074 libs: [
75 "stub-annotations",
76 ],
Nan Zhangb78c3a22018-07-13 16:37:39 -070077 static_libs: [
78 "private-stub-annotations-jar",
79 ],
Nan Zhangb28bc7e2018-06-13 17:47:05 -070080 defaults: ["framework-stubs-default"],
81}
82
Colin Cross9b0d5102018-04-13 17:38:47 -070083java_system_modules {
84 name: "android_test_stubs_current_system_modules",
85 libs: ["android_test_stubs_current"],
86}