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