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