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"], |
Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 17 | // See: http://go/android-license-faq |
| 18 | // A large-scale-change added 'default_applicable_licenses' to import |
| 19 | // all of the 'license_kinds' from "frameworks_base_license" |
| 20 | // to get the below license kinds: |
| 21 | // SPDX-license-identifier-Apache-2.0 |
| 22 | // SPDX-license-identifier-MIT |
| 23 | // SPDX-license-identifier-Unicode-DFS |
| 24 | default_applicable_licenses: ["frameworks_base_license"], |
Anton Hansson | fcb91d4 | 2020-09-21 16:32:14 +0100 | [diff] [blame] | 25 | } |
| 26 | |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 27 | metalava_cmd = "$(location metalava)" |
| 28 | // Silence reflection warnings. See b/168689341 |
| 29 | metalava_cmd += " -J--add-opens=java.base/java.util=ALL-UNNAMED " |
| 30 | metalava_cmd += " --no-banner --format=v2 " |
| 31 | |
Sasha Smundak | 02cbff44 | 2019-08-15 08:27:51 -0700 | [diff] [blame] | 32 | genrule { |
| 33 | name: "current-api-xml", |
| 34 | tools: ["metalava"], |
Anton Hansson | 00febe2 | 2020-11-05 10:30:59 +0000 | [diff] [blame] | 35 | srcs: [":frameworks-base-api-current.txt"], |
Sasha Smundak | 02cbff44 | 2019-08-15 08:27:51 -0700 | [diff] [blame] | 36 | out: ["current.api"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 37 | cmd: metalava_cmd + "-convert2xmlnostrip $(in) $(out)", |
Anton Hansson | fcb91d4 | 2020-09-21 16:32:14 +0100 | [diff] [blame] | 38 | visibility: ["//visibility:public"], |
Sasha Smundak | 02cbff44 | 2019-08-15 08:27:51 -0700 | [diff] [blame] | 39 | } |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 40 | |
| 41 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 42 | name: "frameworks-base-api-current.txt", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 43 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 44 | ":android.net.ipsec.ike{.public.api.txt}", |
Anton Hansson | fc948d86 | 2020-12-17 16:57:35 +0000 | [diff] [blame] | 45 | ":art.module.public.api{.public.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 46 | ":conscrypt.module.public.api{.public.api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 47 | ":framework-appsearch{.public.api.txt}", |
Remi NGUYEN VAN | 9f223cb | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 48 | ":framework-connectivity{.public.api.txt}", |
Anton Hansson | 0eccccb | 2020-09-24 12:09:25 +0100 | [diff] [blame] | 49 | ":framework-graphics{.public.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 50 | ":framework-media{.public.api.txt}", |
| 51 | ":framework-mediaprovider{.public.api.txt}", |
| 52 | ":framework-permission{.public.api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 53 | ":framework-permission-s{.public.api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 54 | ":framework-scheduling{.public.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 55 | ":framework-sdkextensions{.public.api.txt}", |
| 56 | ":framework-statsd{.public.api.txt}", |
| 57 | ":framework-tethering{.public.api.txt}", |
| 58 | ":framework-wifi{.public.api.txt}", |
Paul Duffin | 5a4e8f2 | 2020-11-25 15:45:43 +0000 | [diff] [blame] | 59 | ":i18n.module.public.api{.public.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 60 | ":non-updatable-current.txt", |
| 61 | ], |
| 62 | out: ["current.txt"], |
| 63 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 64 | cmd: metalava_cmd + "$(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 65 | dists: [ |
| 66 | { |
| 67 | targets: ["droidcore"], |
| 68 | dir: "api", |
| 69 | dest: "current.txt", |
| 70 | }, |
| 71 | { |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 72 | targets: ["sdk", "win_sdk"], |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 73 | dir: "apistubs/android/public/api", |
| 74 | dest: "android.txt", |
| 75 | }, |
| 76 | ], |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 77 | visibility: ["//visibility:public"], |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | genrule { |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 81 | name: "frameworks-base-api-current-compat", |
| 82 | srcs: [ |
| 83 | ":android.api.public.latest", |
| 84 | ":android-incompatibilities.api.public.latest", |
| 85 | ":frameworks-base-api-current.txt", |
| 86 | ], |
| 87 | out: ["stdout.txt"], |
| 88 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 89 | cmd: metalava_cmd + |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 90 | "--check-compatibility:api:released $(location :android.api.public.latest) " + |
| 91 | "--baseline:compatibility:released $(location :android-incompatibilities.api.public.latest) " + |
| 92 | "$(location :frameworks-base-api-current.txt) " + |
| 93 | "> $(genDir)/stdout.txt", |
| 94 | } |
| 95 | |
| 96 | genrule { |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 97 | name: "frameworks-base-api-current.srcjar", |
| 98 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 99 | ":android.net.ipsec.ike{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 100 | ":api-stubs-docs-non-updatable", |
Anton Hansson | fc948d86 | 2020-12-17 16:57:35 +0000 | [diff] [blame] | 101 | ":art.module.public.api{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 102 | ":conscrypt.module.public.api{.public.stubs.source}", |
| 103 | ":framework-appsearch{.public.stubs.source}", |
Remi NGUYEN VAN | 9f223cb | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 104 | ":framework-connectivity{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 105 | ":framework-graphics{.public.stubs.source}", |
| 106 | ":framework-media{.public.stubs.source}", |
| 107 | ":framework-mediaprovider{.public.stubs.source}", |
| 108 | ":framework-permission{.public.stubs.source}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 109 | ":framework-permission-s{.public.stubs.source}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 110 | ":framework-scheduling{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 111 | ":framework-sdkextensions{.public.stubs.source}", |
| 112 | ":framework-statsd{.public.stubs.source}", |
| 113 | ":framework-tethering{.public.stubs.source}", |
| 114 | ":framework-wifi{.public.stubs.source}", |
Paul Duffin | 5a4e8f2 | 2020-11-25 15:45:43 +0000 | [diff] [blame] | 115 | ":i18n.module.public.api{.public.stubs.source}", |
Anton Hansson | 89c74dc | 2020-11-05 20:21:08 +0000 | [diff] [blame] | 116 | ], |
| 117 | out: ["current.srcjar"], |
| 118 | tools: ["merge_zips"], |
| 119 | cmd: "$(location merge_zips) $(out) $(in)", |
| 120 | visibility: ["//visibility:private"], // Used by make module in //development, mind. |
| 121 | } |
| 122 | |
| 123 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 124 | name: "frameworks-base-api-removed.txt", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 125 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 126 | ":android.net.ipsec.ike{.public.removed-api.txt}", |
Anton Hansson | fc948d86 | 2020-12-17 16:57:35 +0000 | [diff] [blame] | 127 | ":art.module.public.api{.public.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 128 | ":conscrypt.module.public.api{.public.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 129 | ":framework-appsearch{.public.removed-api.txt}", |
Remi NGUYEN VAN | 9f223cb | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 130 | ":framework-connectivity{.public.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 131 | ":framework-graphics{.public.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 132 | ":framework-media{.public.removed-api.txt}", |
| 133 | ":framework-mediaprovider{.public.removed-api.txt}", |
| 134 | ":framework-permission{.public.removed-api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 135 | ":framework-permission-s{.public.removed-api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 136 | ":framework-scheduling{.public.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 137 | ":framework-sdkextensions{.public.removed-api.txt}", |
| 138 | ":framework-statsd{.public.removed-api.txt}", |
| 139 | ":framework-tethering{.public.removed-api.txt}", |
| 140 | ":framework-wifi{.public.removed-api.txt}", |
Paul Duffin | 5a4e8f2 | 2020-11-25 15:45:43 +0000 | [diff] [blame] | 141 | ":i18n.module.public.api{.public.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 142 | ":non-updatable-removed.txt", |
| 143 | ], |
| 144 | out: ["removed.txt"], |
| 145 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 146 | cmd: metalava_cmd + "$(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 147 | dists: [ |
| 148 | { |
| 149 | targets: ["droidcore"], |
| 150 | dir: "api", |
| 151 | dest: "removed.txt", |
| 152 | }, |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 153 | { |
| 154 | targets: ["sdk", "win_sdk"], |
| 155 | dir: "apistubs/android/public/api", |
| 156 | dest: "removed.txt", |
| 157 | }, |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 158 | ], |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 159 | } |
| 160 | |
| 161 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 162 | name: "frameworks-base-api-system-current.txt", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 163 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 164 | ":android.net.ipsec.ike{.system.api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 165 | ":framework-appsearch{.system.api.txt}", |
Remi NGUYEN VAN | 9f223cb | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 166 | ":framework-connectivity{.system.api.txt}", |
Anton Hansson | 0eccccb | 2020-09-24 12:09:25 +0100 | [diff] [blame] | 167 | ":framework-graphics{.system.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 168 | ":framework-media{.system.api.txt}", |
| 169 | ":framework-mediaprovider{.system.api.txt}", |
| 170 | ":framework-permission{.system.api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 171 | ":framework-permission-s{.system.api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 172 | ":framework-scheduling{.system.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 173 | ":framework-sdkextensions{.system.api.txt}", |
| 174 | ":framework-statsd{.system.api.txt}", |
| 175 | ":framework-tethering{.system.api.txt}", |
| 176 | ":framework-wifi{.system.api.txt}", |
| 177 | ":non-updatable-system-current.txt", |
| 178 | ], |
| 179 | out: ["system-current.txt"], |
| 180 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 181 | cmd: metalava_cmd + "$(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 182 | dists: [ |
| 183 | { |
| 184 | targets: ["droidcore"], |
| 185 | dir: "api", |
| 186 | dest: "system-current.txt", |
| 187 | }, |
| 188 | { |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 189 | targets: ["sdk", "win_sdk"], |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 190 | dir: "apistubs/android/system/api", |
| 191 | dest: "android.txt", |
| 192 | }, |
| 193 | ], |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 194 | visibility: ["//visibility:public"], |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 195 | } |
| 196 | |
| 197 | genrule { |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 198 | name: "frameworks-base-api-system-current-compat", |
| 199 | srcs: [ |
| 200 | ":android.api.system.latest", |
| 201 | ":android-incompatibilities.api.system.latest", |
| 202 | ":frameworks-base-api-current.txt", |
| 203 | ":frameworks-base-api-system-current.txt", |
| 204 | ], |
| 205 | out: ["stdout.txt"], |
| 206 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 207 | cmd: metalava_cmd + |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 208 | "--check-compatibility:api:released $(location :android.api.system.latest) " + |
| 209 | "--check-compatibility:base $(location :frameworks-base-api-current.txt) " + |
| 210 | "--baseline:compatibility:released $(location :android-incompatibilities.api.system.latest) " + |
| 211 | "$(location :frameworks-base-api-system-current.txt) " + |
| 212 | "> $(genDir)/stdout.txt", |
| 213 | } |
| 214 | |
| 215 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 216 | name: "frameworks-base-api-system-removed.txt", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 217 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 218 | ":android.net.ipsec.ike{.system.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 219 | ":framework-appsearch{.system.removed-api.txt}", |
Remi NGUYEN VAN | 9f223cb | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 220 | ":framework-connectivity{.system.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 221 | ":framework-graphics{.system.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 222 | ":framework-media{.system.removed-api.txt}", |
| 223 | ":framework-mediaprovider{.system.removed-api.txt}", |
| 224 | ":framework-permission{.system.removed-api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 225 | ":framework-permission-s{.system.removed-api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 226 | ":framework-scheduling{.system.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 227 | ":framework-sdkextensions{.system.removed-api.txt}", |
| 228 | ":framework-statsd{.system.removed-api.txt}", |
| 229 | ":framework-tethering{.system.removed-api.txt}", |
| 230 | ":framework-wifi{.system.removed-api.txt}", |
| 231 | ":non-updatable-system-removed.txt", |
| 232 | ], |
| 233 | out: ["system-removed.txt"], |
| 234 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 235 | cmd: metalava_cmd + "$(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 236 | dists: [ |
| 237 | { |
| 238 | targets: ["droidcore"], |
| 239 | dir: "api", |
| 240 | dest: "system-removed.txt", |
| 241 | }, |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 242 | { |
| 243 | targets: ["sdk", "win_sdk"], |
| 244 | dir: "apistubs/android/system/api", |
| 245 | dest: "removed.txt", |
| 246 | }, |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 247 | ], |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 248 | visibility: ["//visibility:public"], |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 249 | } |
| 250 | |
| 251 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 252 | name: "frameworks-base-api-module-lib-current.txt", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 253 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 254 | ":android.net.ipsec.ike{.module-lib.api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 255 | ":framework-appsearch{.module-lib.api.txt}", |
Remi NGUYEN VAN | 9f223cb | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 256 | ":framework-connectivity{.module-lib.api.txt}", |
Anton Hansson | 0eccccb | 2020-09-24 12:09:25 +0100 | [diff] [blame] | 257 | ":framework-graphics{.module-lib.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 258 | ":framework-media{.module-lib.api.txt}", |
| 259 | ":framework-mediaprovider{.module-lib.api.txt}", |
| 260 | ":framework-permission{.module-lib.api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 261 | ":framework-permission-s{.module-lib.api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 262 | ":framework-scheduling{.module-lib.api.txt}", |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 263 | ":framework-sdkextensions{.module-lib.api.txt}", |
| 264 | ":framework-statsd{.module-lib.api.txt}", |
| 265 | ":framework-tethering{.module-lib.api.txt}", |
| 266 | ":framework-wifi{.module-lib.api.txt}", |
| 267 | ":non-updatable-module-lib-current.txt", |
| 268 | ], |
| 269 | out: ["module-lib-current.txt"], |
| 270 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 271 | cmd: metalava_cmd + "$(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 272 | dists: [ |
| 273 | { |
| 274 | targets: ["droidcore"], |
| 275 | dir: "api", |
| 276 | dest: "module-lib-current.txt", |
| 277 | }, |
| 278 | { |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 279 | targets: ["sdk", "win_sdk"], |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 280 | dir: "apistubs/android/module-lib/api", |
| 281 | dest: "android.txt", |
| 282 | }, |
| 283 | ], |
Anton Hansson | 85359f6 | 2020-09-21 17:02:25 +0100 | [diff] [blame] | 284 | } |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 285 | |
| 286 | genrule { |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 287 | name: "frameworks-base-api-module-lib-current-compat", |
| 288 | srcs: [ |
| 289 | ":android.api.module-lib.latest", |
| 290 | ":android-incompatibilities.api.module-lib.latest", |
| 291 | ":frameworks-base-api-current.txt", |
| 292 | ":frameworks-base-api-module-lib-current.txt", |
| 293 | ], |
| 294 | out: ["stdout.txt"], |
| 295 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 296 | cmd: metalava_cmd + |
Anton Hansson | 0d6eae6 | 2021-02-12 16:47:18 +0000 | [diff] [blame] | 297 | "--check-compatibility:api:released $(location :android.api.module-lib.latest) " + |
| 298 | // Note: having "public" be the base of module-lib is not perfect -- it should |
| 299 | // ideally be a merged public+system), but this will help when migrating from |
| 300 | // MODULE_LIBS -> public. |
| 301 | "--check-compatibility:base $(location :frameworks-base-api-current.txt) " + |
| 302 | "--baseline:compatibility:released $(location :android-incompatibilities.api.module-lib.latest) " + |
| 303 | "$(location :frameworks-base-api-module-lib-current.txt) " + |
| 304 | "> $(genDir)/stdout.txt", |
| 305 | } |
| 306 | |
| 307 | genrule { |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 308 | name: "frameworks-base-api-module-lib-removed.txt", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 309 | srcs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 310 | ":android.net.ipsec.ike{.module-lib.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 311 | ":framework-appsearch{.module-lib.removed-api.txt}", |
Remi NGUYEN VAN | 9f223cb | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 312 | ":framework-connectivity{.module-lib.removed-api.txt}", |
Anton Hansson | d74139e | 2020-10-08 14:59:17 +0100 | [diff] [blame] | 313 | ":framework-graphics{.module-lib.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 314 | ":framework-media{.module-lib.removed-api.txt}", |
| 315 | ":framework-mediaprovider{.module-lib.removed-api.txt}", |
| 316 | ":framework-permission{.module-lib.removed-api.txt}", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 317 | ":framework-permission-s{.module-lib.removed-api.txt}", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 318 | ":framework-scheduling{.module-lib.removed-api.txt}", |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 319 | ":framework-sdkextensions{.module-lib.removed-api.txt}", |
| 320 | ":framework-statsd{.module-lib.removed-api.txt}", |
| 321 | ":framework-tethering{.module-lib.removed-api.txt}", |
| 322 | ":framework-wifi{.module-lib.removed-api.txt}", |
| 323 | ":non-updatable-module-lib-removed.txt", |
| 324 | ], |
| 325 | out: ["module-lib-removed.txt"], |
| 326 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 327 | cmd: metalava_cmd + "$(in) --api $(out)", |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 328 | dists: [ |
| 329 | { |
| 330 | targets: ["droidcore"], |
| 331 | dir: "api", |
| 332 | dest: "module-lib-removed.txt", |
| 333 | }, |
Anton Hansson | 85785fe | 2021-01-20 20:23:34 +0000 | [diff] [blame] | 334 | { |
| 335 | targets: ["sdk", "win_sdk"], |
| 336 | dir: "apistubs/android/module-lib/api", |
| 337 | dest: "removed.txt", |
| 338 | }, |
Anton Hansson | a9ced80 | 2020-10-20 19:26:18 +0100 | [diff] [blame] | 339 | ], |
Anton Hansson | 3c1aa11 | 2020-09-25 09:13:47 +0100 | [diff] [blame] | 340 | } |
Anton Hansson | a15427a | 2020-10-02 18:21:14 +0100 | [diff] [blame] | 341 | |
| 342 | genrule { |
| 343 | name: "combined-removed-dex", |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 344 | visibility: [ |
| 345 | "//frameworks/base/boot", |
| 346 | ], |
Anton Hansson | a15427a | 2020-10-02 18:21:14 +0100 | [diff] [blame] | 347 | srcs: [ |
Anton Hansson | 1c4fab4 | 2020-11-02 11:57:33 +0000 | [diff] [blame] | 348 | ":frameworks-base-api-removed.txt", |
| 349 | ":frameworks-base-api-system-removed.txt", |
Anton Hansson | a15427a | 2020-10-02 18:21:14 +0100 | [diff] [blame] | 350 | ":android.car-stubs-docs{.removed-api.txt}", |
| 351 | ":android.car-system-stubs-docs{.removed-api.txt}", |
| 352 | ], |
| 353 | tool_files: ["gen_combined_removed_dex.sh"], |
| 354 | tools: ["metalava"], |
| 355 | out: ["combined-removed-dex.txt"], |
| 356 | cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)", |
| 357 | } |
Andrei Onea | dcb5446 | 2021-02-19 16:28:30 +0000 | [diff] [blame] | 358 | |
| 359 | genrule { |
| 360 | name: "services-system-server-current.txt", |
| 361 | srcs: [ |
Andrei Onea | 7e609d4 | 2021-03-12 17:02:49 +0000 | [diff] [blame] | 362 | ":service-media-s{.system-server.api.txt}", |
Andrei Onea | dcb5446 | 2021-02-19 16:28:30 +0000 | [diff] [blame] | 363 | ":service-permission{.system-server.api.txt}", |
| 364 | ":non-updatable-system-server-current.txt", |
| 365 | ], |
| 366 | out: ["system-server-current.txt"], |
| 367 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 368 | cmd: metalava_cmd + "$(in) --api $(out)", |
Andrei Onea | dcb5446 | 2021-02-19 16:28:30 +0000 | [diff] [blame] | 369 | dists: [ |
| 370 | { |
| 371 | targets: ["droidcore"], |
| 372 | dir: "api", |
| 373 | dest: "system-server-current.txt", |
| 374 | }, |
| 375 | { |
| 376 | targets: ["sdk", "win_sdk"], |
| 377 | dir: "apistubs/android/system-server/api", |
Andrei Onea | faa271a | 2021-03-17 13:32:51 +0000 | [diff] [blame] | 378 | dest: "android.txt", |
Andrei Onea | dcb5446 | 2021-02-19 16:28:30 +0000 | [diff] [blame] | 379 | }, |
| 380 | ], |
| 381 | } |
| 382 | |
| 383 | genrule { |
| 384 | name: "services-system-server-removed.txt", |
| 385 | srcs: [ |
Andrei Onea | 7e609d4 | 2021-03-12 17:02:49 +0000 | [diff] [blame] | 386 | ":service-media-s{.system-server.removed-api.txt}", |
Andrei Onea | dcb5446 | 2021-02-19 16:28:30 +0000 | [diff] [blame] | 387 | ":service-permission{.system-server.removed-api.txt}", |
| 388 | ":non-updatable-system-server-removed.txt", |
| 389 | ], |
| 390 | out: ["system-server-removed.txt"], |
| 391 | tools: ["metalava"], |
Anton Hansson | aa26cc1 | 2021-02-15 10:52:33 +0000 | [diff] [blame] | 392 | cmd: metalava_cmd + "$(in) --api $(out)", |
Andrei Onea | dcb5446 | 2021-02-19 16:28:30 +0000 | [diff] [blame] | 393 | dists: [ |
| 394 | { |
| 395 | targets: ["droidcore"], |
| 396 | dir: "api", |
| 397 | dest: "system-server-removed.txt", |
| 398 | }, |
| 399 | { |
| 400 | targets: ["sdk", "win_sdk"], |
| 401 | dir: "apistubs/android/system-server/api", |
Andrei Onea | faa271a | 2021-03-17 13:32:51 +0000 | [diff] [blame] | 402 | dest: "removed.txt", |
Andrei Onea | dcb5446 | 2021-02-19 16:28:30 +0000 | [diff] [blame] | 403 | }, |
| 404 | ], |
| 405 | } |