blob: 3413f8ab0eed29d0a72b821bd84bf65cd00109c4 [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)",
65}
66
67genrule {
Anton Hansson3c1aa112020-09-25 09:13:47 +010068 name: "frameworks-base-api-removed-merged.txt",
69 srcs: [
70 ":conscrypt.module.public.api{.public.removed-api.txt}",
Anton Hanssond74139e2020-10-08 14:59:17 +010071 ":framework-appsearch{.public.removed-api.txt}",
72 ":framework-graphics{.public.removed-api.txt}",
Anton Hansson3c1aa112020-09-25 09:13:47 +010073 ":framework-media{.public.removed-api.txt}",
74 ":framework-mediaprovider{.public.removed-api.txt}",
75 ":framework-permission{.public.removed-api.txt}",
76 ":framework-sdkextensions{.public.removed-api.txt}",
77 ":framework-statsd{.public.removed-api.txt}",
78 ":framework-tethering{.public.removed-api.txt}",
79 ":framework-wifi{.public.removed-api.txt}",
80 ":non-updatable-removed.txt",
81 ],
82 out: ["removed.txt"],
83 tools: ["metalava"],
84 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
85}
86
87genrule {
Anton Hansson85359f62020-09-21 17:02:25 +010088 name: "frameworks-base-api-system-current-merged.txt",
89 srcs: [
Anton Hanssond74139e2020-10-08 14:59:17 +010090 ":framework-appsearch{.system.api.txt}",
Anton Hansson0eccccb2020-09-24 12:09:25 +010091 ":framework-graphics{.system.api.txt}",
Anton Hansson85359f62020-09-21 17:02:25 +010092 ":framework-media{.system.api.txt}",
93 ":framework-mediaprovider{.system.api.txt}",
94 ":framework-permission{.system.api.txt}",
95 ":framework-sdkextensions{.system.api.txt}",
96 ":framework-statsd{.system.api.txt}",
97 ":framework-tethering{.system.api.txt}",
98 ":framework-wifi{.system.api.txt}",
99 ":non-updatable-system-current.txt",
100 ],
101 out: ["system-current.txt"],
102 tools: ["metalava"],
103 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
104}
105
106genrule {
Anton Hansson3c1aa112020-09-25 09:13:47 +0100107 name: "frameworks-base-api-system-removed-merged.txt",
108 srcs: [
Anton Hanssond74139e2020-10-08 14:59:17 +0100109 ":framework-appsearch{.system.removed-api.txt}",
110 ":framework-graphics{.system.removed-api.txt}",
Anton Hansson3c1aa112020-09-25 09:13:47 +0100111 ":framework-media{.system.removed-api.txt}",
112 ":framework-mediaprovider{.system.removed-api.txt}",
113 ":framework-permission{.system.removed-api.txt}",
114 ":framework-sdkextensions{.system.removed-api.txt}",
115 ":framework-statsd{.system.removed-api.txt}",
116 ":framework-tethering{.system.removed-api.txt}",
117 ":framework-wifi{.system.removed-api.txt}",
118 ":non-updatable-system-removed.txt",
119 ],
120 out: ["system-removed.txt"],
121 tools: ["metalava"],
122 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
123}
124
125genrule {
Anton Hansson85359f62020-09-21 17:02:25 +0100126 name: "frameworks-base-api-module-lib-current-merged.txt",
127 srcs: [
Anton Hanssond74139e2020-10-08 14:59:17 +0100128 ":framework-appsearch{.module-lib.api.txt}",
Anton Hansson0eccccb2020-09-24 12:09:25 +0100129 ":framework-graphics{.module-lib.api.txt}",
Anton Hansson85359f62020-09-21 17:02:25 +0100130 ":framework-media{.module-lib.api.txt}",
131 ":framework-mediaprovider{.module-lib.api.txt}",
132 ":framework-permission{.module-lib.api.txt}",
133 ":framework-sdkextensions{.module-lib.api.txt}",
134 ":framework-statsd{.module-lib.api.txt}",
135 ":framework-tethering{.module-lib.api.txt}",
136 ":framework-wifi{.module-lib.api.txt}",
137 ":non-updatable-module-lib-current.txt",
138 ],
139 out: ["module-lib-current.txt"],
140 tools: ["metalava"],
141 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
142}
Anton Hansson3c1aa112020-09-25 09:13:47 +0100143
144genrule {
145 name: "frameworks-base-api-module-lib-removed-merged.txt",
146 srcs: [
Anton Hanssond74139e2020-10-08 14:59:17 +0100147 ":framework-appsearch{.module-lib.removed-api.txt}",
148 ":framework-graphics{.module-lib.removed-api.txt}",
Anton Hansson3c1aa112020-09-25 09:13:47 +0100149 ":framework-media{.module-lib.removed-api.txt}",
150 ":framework-mediaprovider{.module-lib.removed-api.txt}",
151 ":framework-permission{.module-lib.removed-api.txt}",
152 ":framework-sdkextensions{.module-lib.removed-api.txt}",
153 ":framework-statsd{.module-lib.removed-api.txt}",
154 ":framework-tethering{.module-lib.removed-api.txt}",
155 ":framework-wifi{.module-lib.removed-api.txt}",
156 ":non-updatable-module-lib-removed.txt",
157 ],
158 out: ["module-lib-removed.txt"],
159 tools: ["metalava"],
160 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
161}
Anton Hanssona15427a2020-10-02 18:21:14 +0100162
163genrule {
164 name: "combined-removed-dex",
165 srcs: [
166 ":frameworks-base-api-removed-merged.txt",
167 ":frameworks-base-api-system-removed-merged.txt",
168 ":android.car-stubs-docs{.removed-api.txt}",
169 ":android.car-system-stubs-docs{.removed-api.txt}",
170 ],
171 tool_files: ["gen_combined_removed_dex.sh"],
172 tools: ["metalava"],
173 out: ["combined-removed-dex.txt"],
174 cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
175}