Nan Zhang | 394d86b | 2018-02-28 16:28:17 -0800 | [diff] [blame] | 1 | // 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 | |
| 15 | java_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 Zhang | 7bec487 | 2018-03-21 17:46:55 -0700 | [diff] [blame] | 27 | java_version: "1.8", |
David Brazdil | 51c1288 | 2018-06-27 10:51:24 +0100 | [diff] [blame] | 28 | compile_dex: true, |
Nan Zhang | 394d86b | 2018-02-28 16:28:17 -0800 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | java_library_static { |
| 32 | name: "android_stubs_current", |
| 33 | srcs: [ |
| 34 | ":api-stubs-docs", |
| 35 | ], |
Nan Zhang | b28bc7e | 2018-06-13 17:47:05 -0700 | [diff] [blame] | 36 | libs: [ |
| 37 | "stub-annotations", |
| 38 | ], |
Nan Zhang | b78c3a2 | 2018-07-13 16:37:39 -0700 | [diff] [blame] | 39 | static_libs: [ |
| 40 | "private-stub-annotations-jar", |
| 41 | ], |
Nan Zhang | b28bc7e | 2018-06-13 17:47:05 -0700 | [diff] [blame] | 42 | defaults: ["framework-stubs-default"], |
| 43 | } |
| 44 | |
Colin Cross | 9b0d510 | 2018-04-13 17:38:47 -0700 | [diff] [blame] | 45 | java_system_modules { |
| 46 | name: "android_stubs_current_system_modules", |
| 47 | libs: ["android_stubs_current"], |
| 48 | } |
| 49 | |
Nan Zhang | 394d86b | 2018-02-28 16:28:17 -0800 | [diff] [blame] | 50 | java_library_static { |
| 51 | name: "android_system_stubs_current", |
| 52 | srcs: [ |
| 53 | ":system-api-stubs-docs", |
| 54 | ], |
Nan Zhang | b28bc7e | 2018-06-13 17:47:05 -0700 | [diff] [blame] | 55 | libs: [ |
| 56 | "stub-annotations", |
| 57 | ], |
Nan Zhang | b78c3a2 | 2018-07-13 16:37:39 -0700 | [diff] [blame] | 58 | static_libs: [ |
| 59 | "private-stub-annotations-jar", |
| 60 | ], |
Nan Zhang | b28bc7e | 2018-06-13 17:47:05 -0700 | [diff] [blame] | 61 | defaults: ["framework-stubs-default"], |
| 62 | } |
| 63 | |
Colin Cross | 9b0d510 | 2018-04-13 17:38:47 -0700 | [diff] [blame] | 64 | java_system_modules { |
| 65 | name: "android_system_stubs_current_system_modules", |
| 66 | libs: ["android_system_stubs_current"], |
| 67 | } |
| 68 | |
Nan Zhang | 394d86b | 2018-02-28 16:28:17 -0800 | [diff] [blame] | 69 | java_library_static { |
| 70 | name: "android_test_stubs_current", |
| 71 | srcs: [ |
| 72 | ":test-api-stubs-docs", |
| 73 | ], |
Nan Zhang | b28bc7e | 2018-06-13 17:47:05 -0700 | [diff] [blame] | 74 | libs: [ |
| 75 | "stub-annotations", |
| 76 | ], |
Nan Zhang | b78c3a2 | 2018-07-13 16:37:39 -0700 | [diff] [blame] | 77 | static_libs: [ |
| 78 | "private-stub-annotations-jar", |
| 79 | ], |
Nan Zhang | b28bc7e | 2018-06-13 17:47:05 -0700 | [diff] [blame] | 80 | defaults: ["framework-stubs-default"], |
| 81 | } |
| 82 | |
Colin Cross | 9b0d510 | 2018-04-13 17:38:47 -0700 | [diff] [blame] | 83 | java_system_modules { |
| 84 | name: "android_test_stubs_current_system_modules", |
| 85 | libs: ["android_test_stubs_current"], |
| 86 | } |