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