blob: 388bb68e89998d6bbd02f3003ccb5b52be603a55 [file] [log] [blame]
Anton Hanssonfcb91d42020-09-21 16:32:14 +01001// 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
15package {
16 default_visibility: ["//visibility:private"],
17}
18
19// *-current.txt files for use by modules in other directories like cts
20filegroup {
21 name: "frameworks-base-api-current.txt",
22 srcs: ["current.txt"],
23 visibility: ["//visibility:public"],
24}
25
26filegroup {
27 name: "frameworks-base-api-system-current.txt",
28 srcs: ["system-current.txt"],
29 visibility: ["//visibility:public"],
30}
31
32filegroup {
33 name: "frameworks-base-api-system-removed.txt",
34 srcs: ["system-removed.txt"],
35 visibility: ["//visibility:public"],
36}
37
Sasha Smundak02cbff442019-08-15 08:27:51 -070038genrule {
39 name: "current-api-xml",
40 tools: ["metalava"],
41 srcs: ["current.txt"],
42 out: ["current.api"],
43 cmd: "$(location metalava) --no-banner -convert2xmlnostrip $(in) $(out)",
Anton Hanssonfcb91d42020-09-21 16:32:14 +010044 visibility: ["//visibility:public"],
Sasha Smundak02cbff442019-08-15 08:27:51 -070045}
Anton Hansson85359f62020-09-21 17:02:25 +010046
47genrule {
48 name: "frameworks-base-api-current-merged.txt",
49 srcs: [
50 ":conscrypt.module.public.api{.public.api.txt}",
Anton Hanssond74139e2020-10-08 14:59:17 +010051 ":framework-appsearch{.public.api.txt}",
Anton Hansson0eccccb2020-09-24 12:09:25 +010052 ":framework-graphics{.public.api.txt}",
Anton Hansson85359f62020-09-21 17:02:25 +010053 ":framework-media{.public.api.txt}",
54 ":framework-mediaprovider{.public.api.txt}",
55 ":framework-permission{.public.api.txt}",
56 ":framework-sdkextensions{.public.api.txt}",
57 ":framework-statsd{.public.api.txt}",
58 ":framework-tethering{.public.api.txt}",
59 ":framework-wifi{.public.api.txt}",
60 ":non-updatable-current.txt",
61 ],
62 out: ["current.txt"],
63 tools: ["metalava"],
64 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
Anton Hanssonae4332d2020-10-08 13:11:47 +010065 dist: {
66 targets: ["sdk", "win_sdk"],
67 dir: "apistubs/android/public/api",
68 dest: "android.txt",
69 },
Anton Hansson85359f62020-09-21 17:02:25 +010070}
71
72genrule {
Anton Hansson3c1aa112020-09-25 09:13:47 +010073 name: "frameworks-base-api-removed-merged.txt",
74 srcs: [
75 ":conscrypt.module.public.api{.public.removed-api.txt}",
Anton Hanssond74139e2020-10-08 14:59:17 +010076 ":framework-appsearch{.public.removed-api.txt}",
77 ":framework-graphics{.public.removed-api.txt}",
Anton Hansson3c1aa112020-09-25 09:13:47 +010078 ":framework-media{.public.removed-api.txt}",
79 ":framework-mediaprovider{.public.removed-api.txt}",
80 ":framework-permission{.public.removed-api.txt}",
81 ":framework-sdkextensions{.public.removed-api.txt}",
82 ":framework-statsd{.public.removed-api.txt}",
83 ":framework-tethering{.public.removed-api.txt}",
84 ":framework-wifi{.public.removed-api.txt}",
85 ":non-updatable-removed.txt",
86 ],
87 out: ["removed.txt"],
88 tools: ["metalava"],
89 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
90}
91
92genrule {
Anton Hansson85359f62020-09-21 17:02:25 +010093 name: "frameworks-base-api-system-current-merged.txt",
94 srcs: [
Anton Hanssond74139e2020-10-08 14:59:17 +010095 ":framework-appsearch{.system.api.txt}",
Anton Hansson0eccccb2020-09-24 12:09:25 +010096 ":framework-graphics{.system.api.txt}",
Anton Hansson85359f62020-09-21 17:02:25 +010097 ":framework-media{.system.api.txt}",
98 ":framework-mediaprovider{.system.api.txt}",
99 ":framework-permission{.system.api.txt}",
100 ":framework-sdkextensions{.system.api.txt}",
101 ":framework-statsd{.system.api.txt}",
102 ":framework-tethering{.system.api.txt}",
103 ":framework-wifi{.system.api.txt}",
104 ":non-updatable-system-current.txt",
105 ],
106 out: ["system-current.txt"],
107 tools: ["metalava"],
108 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
Anton Hanssonae4332d2020-10-08 13:11:47 +0100109 dist: {
110 targets: ["sdk", "win_sdk"],
111 dir: "apistubs/android/system/api",
112 dest: "android.txt",
113 },
Anton Hansson85359f62020-09-21 17:02:25 +0100114}
115
116genrule {
Anton Hansson3c1aa112020-09-25 09:13:47 +0100117 name: "frameworks-base-api-system-removed-merged.txt",
118 srcs: [
Anton Hanssond74139e2020-10-08 14:59:17 +0100119 ":framework-appsearch{.system.removed-api.txt}",
120 ":framework-graphics{.system.removed-api.txt}",
Anton Hansson3c1aa112020-09-25 09:13:47 +0100121 ":framework-media{.system.removed-api.txt}",
122 ":framework-mediaprovider{.system.removed-api.txt}",
123 ":framework-permission{.system.removed-api.txt}",
124 ":framework-sdkextensions{.system.removed-api.txt}",
125 ":framework-statsd{.system.removed-api.txt}",
126 ":framework-tethering{.system.removed-api.txt}",
127 ":framework-wifi{.system.removed-api.txt}",
128 ":non-updatable-system-removed.txt",
129 ],
130 out: ["system-removed.txt"],
131 tools: ["metalava"],
132 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
133}
134
135genrule {
Anton Hansson85359f62020-09-21 17:02:25 +0100136 name: "frameworks-base-api-module-lib-current-merged.txt",
137 srcs: [
Anton Hanssond74139e2020-10-08 14:59:17 +0100138 ":framework-appsearch{.module-lib.api.txt}",
Anton Hansson0eccccb2020-09-24 12:09:25 +0100139 ":framework-graphics{.module-lib.api.txt}",
Anton Hansson85359f62020-09-21 17:02:25 +0100140 ":framework-media{.module-lib.api.txt}",
141 ":framework-mediaprovider{.module-lib.api.txt}",
142 ":framework-permission{.module-lib.api.txt}",
143 ":framework-sdkextensions{.module-lib.api.txt}",
144 ":framework-statsd{.module-lib.api.txt}",
145 ":framework-tethering{.module-lib.api.txt}",
146 ":framework-wifi{.module-lib.api.txt}",
147 ":non-updatable-module-lib-current.txt",
148 ],
149 out: ["module-lib-current.txt"],
150 tools: ["metalava"],
151 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
Anton Hanssonae4332d2020-10-08 13:11:47 +0100152 dist: {
153 targets: ["sdk", "win_sdk"],
154 dir: "apistubs/android/module-lib/api",
155 dest: "android.txt",
156 },
Anton Hansson85359f62020-09-21 17:02:25 +0100157}
Anton Hansson3c1aa112020-09-25 09:13:47 +0100158
159genrule {
160 name: "frameworks-base-api-module-lib-removed-merged.txt",
161 srcs: [
Anton Hanssond74139e2020-10-08 14:59:17 +0100162 ":framework-appsearch{.module-lib.removed-api.txt}",
163 ":framework-graphics{.module-lib.removed-api.txt}",
Anton Hansson3c1aa112020-09-25 09:13:47 +0100164 ":framework-media{.module-lib.removed-api.txt}",
165 ":framework-mediaprovider{.module-lib.removed-api.txt}",
166 ":framework-permission{.module-lib.removed-api.txt}",
167 ":framework-sdkextensions{.module-lib.removed-api.txt}",
168 ":framework-statsd{.module-lib.removed-api.txt}",
169 ":framework-tethering{.module-lib.removed-api.txt}",
170 ":framework-wifi{.module-lib.removed-api.txt}",
171 ":non-updatable-module-lib-removed.txt",
172 ],
173 out: ["module-lib-removed.txt"],
174 tools: ["metalava"],
175 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
176}
Anton Hanssona15427a2020-10-02 18:21:14 +0100177
178genrule {
179 name: "combined-removed-dex",
180 srcs: [
181 ":frameworks-base-api-removed-merged.txt",
182 ":frameworks-base-api-system-removed-merged.txt",
183 ":android.car-stubs-docs{.removed-api.txt}",
184 ":android.car-system-stubs-docs{.removed-api.txt}",
185 ],
186 tool_files: ["gen_combined_removed_dex.sh"],
187 tools: ["metalava"],
188 out: ["combined-removed-dex.txt"],
189 cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
190}