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