Anton Hansson | fcb91d4 | 2020-09-21 16:32:14 +0100 | [diff] [blame^] | 1 | // Copyright (C) 2020 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 | package { |
| 16 | default_visibility: ["//visibility:private"], |
| 17 | } |
| 18 | |
| 19 | // *-current.txt files for use by modules in other directories like cts |
| 20 | filegroup { |
| 21 | name: "frameworks-base-api-current.txt", |
| 22 | srcs: ["current.txt"], |
| 23 | visibility: ["//visibility:public"], |
| 24 | } |
| 25 | |
| 26 | filegroup { |
| 27 | name: "frameworks-base-api-system-current.txt", |
| 28 | srcs: ["system-current.txt"], |
| 29 | visibility: ["//visibility:public"], |
| 30 | } |
| 31 | |
| 32 | filegroup { |
| 33 | name: "frameworks-base-api-system-removed.txt", |
| 34 | srcs: ["system-removed.txt"], |
| 35 | visibility: ["//visibility:public"], |
| 36 | } |
| 37 | |
Sasha Smundak | 02cbff44 | 2019-08-15 08:27:51 -0700 | [diff] [blame] | 38 | genrule { |
| 39 | name: "current-api-xml", |
| 40 | tools: ["metalava"], |
| 41 | srcs: ["current.txt"], |
| 42 | out: ["current.api"], |
| 43 | cmd: "$(location metalava) --no-banner -convert2xmlnostrip $(in) $(out)", |
Anton Hansson | fcb91d4 | 2020-09-21 16:32:14 +0100 | [diff] [blame^] | 44 | visibility: ["//visibility:public"], |
Sasha Smundak | 02cbff44 | 2019-08-15 08:27:51 -0700 | [diff] [blame] | 45 | } |