blob: f0218b84a58a1017a8ef84cc65328648ade4b14a [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 Hansson0eccccb2020-09-24 12:09:25 +010051 ":framework-graphics{.public.api.txt}",
Anton Hansson85359f62020-09-21 17:02:25 +010052 ":framework-media{.public.api.txt}",
53 ":framework-mediaprovider{.public.api.txt}",
54 ":framework-permission{.public.api.txt}",
55 ":framework-sdkextensions{.public.api.txt}",
56 ":framework-statsd{.public.api.txt}",
57 ":framework-tethering{.public.api.txt}",
58 ":framework-wifi{.public.api.txt}",
59 ":non-updatable-current.txt",
60 ],
61 out: ["current.txt"],
62 tools: ["metalava"],
63 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
64}
65
66genrule {
Anton Hansson3c1aa112020-09-25 09:13:47 +010067 name: "frameworks-base-api-removed-merged.txt",
68 srcs: [
69 ":conscrypt.module.public.api{.public.removed-api.txt}",
70 ":framework-media{.public.removed-api.txt}",
71 ":framework-mediaprovider{.public.removed-api.txt}",
72 ":framework-permission{.public.removed-api.txt}",
73 ":framework-sdkextensions{.public.removed-api.txt}",
74 ":framework-statsd{.public.removed-api.txt}",
75 ":framework-tethering{.public.removed-api.txt}",
76 ":framework-wifi{.public.removed-api.txt}",
77 ":non-updatable-removed.txt",
78 ],
79 out: ["removed.txt"],
80 tools: ["metalava"],
81 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
82}
83
84genrule {
Anton Hansson85359f62020-09-21 17:02:25 +010085 name: "frameworks-base-api-system-current-merged.txt",
86 srcs: [
Anton Hansson0eccccb2020-09-24 12:09:25 +010087 ":framework-graphics{.system.api.txt}",
Anton Hansson85359f62020-09-21 17:02:25 +010088 ":framework-media{.system.api.txt}",
89 ":framework-mediaprovider{.system.api.txt}",
90 ":framework-permission{.system.api.txt}",
91 ":framework-sdkextensions{.system.api.txt}",
92 ":framework-statsd{.system.api.txt}",
93 ":framework-tethering{.system.api.txt}",
94 ":framework-wifi{.system.api.txt}",
95 ":non-updatable-system-current.txt",
96 ],
97 out: ["system-current.txt"],
98 tools: ["metalava"],
99 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
100}
101
102genrule {
Anton Hansson3c1aa112020-09-25 09:13:47 +0100103 name: "frameworks-base-api-system-removed-merged.txt",
104 srcs: [
105 ":framework-media{.system.removed-api.txt}",
106 ":framework-mediaprovider{.system.removed-api.txt}",
107 ":framework-permission{.system.removed-api.txt}",
108 ":framework-sdkextensions{.system.removed-api.txt}",
109 ":framework-statsd{.system.removed-api.txt}",
110 ":framework-tethering{.system.removed-api.txt}",
111 ":framework-wifi{.system.removed-api.txt}",
112 ":non-updatable-system-removed.txt",
113 ],
114 out: ["system-removed.txt"],
115 tools: ["metalava"],
116 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
117}
118
119genrule {
Anton Hansson85359f62020-09-21 17:02:25 +0100120 name: "frameworks-base-api-module-lib-current-merged.txt",
121 srcs: [
Anton Hansson0eccccb2020-09-24 12:09:25 +0100122 ":framework-graphics{.module-lib.api.txt}",
Anton Hansson85359f62020-09-21 17:02:25 +0100123 ":framework-media{.module-lib.api.txt}",
124 ":framework-mediaprovider{.module-lib.api.txt}",
125 ":framework-permission{.module-lib.api.txt}",
126 ":framework-sdkextensions{.module-lib.api.txt}",
127 ":framework-statsd{.module-lib.api.txt}",
128 ":framework-tethering{.module-lib.api.txt}",
129 ":framework-wifi{.module-lib.api.txt}",
130 ":non-updatable-module-lib-current.txt",
131 ],
132 out: ["module-lib-current.txt"],
133 tools: ["metalava"],
134 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
135}
Anton Hansson3c1aa112020-09-25 09:13:47 +0100136
137genrule {
138 name: "frameworks-base-api-module-lib-removed-merged.txt",
139 srcs: [
140 ":framework-media{.module-lib.removed-api.txt}",
141 ":framework-mediaprovider{.module-lib.removed-api.txt}",
142 ":framework-permission{.module-lib.removed-api.txt}",
143 ":framework-sdkextensions{.module-lib.removed-api.txt}",
144 ":framework-statsd{.module-lib.removed-api.txt}",
145 ":framework-tethering{.module-lib.removed-api.txt}",
146 ":framework-wifi{.module-lib.removed-api.txt}",
147 ":non-updatable-module-lib-removed.txt",
148 ],
149 out: ["module-lib-removed.txt"],
150 tools: ["metalava"],
151 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
152}
Anton Hanssona15427a2020-10-02 18:21:14 +0100153
154genrule {
155 name: "combined-removed-dex",
156 srcs: [
157 ":frameworks-base-api-removed-merged.txt",
158 ":frameworks-base-api-system-removed-merged.txt",
159 ":android.car-stubs-docs{.removed-api.txt}",
160 ":android.car-system-stubs-docs{.removed-api.txt}",
161 ],
162 tool_files: ["gen_combined_removed_dex.sh"],
163 tools: ["metalava"],
164 out: ["combined-removed-dex.txt"],
165 cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
166}