blob: fd0303b31de9744931a32e7f9defd2b5e9535ce0 [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}",
51 ":framework-media{.public.api.txt}",
52 ":framework-mediaprovider{.public.api.txt}",
53 ":framework-permission{.public.api.txt}",
54 ":framework-sdkextensions{.public.api.txt}",
55 ":framework-statsd{.public.api.txt}",
56 ":framework-tethering{.public.api.txt}",
57 ":framework-wifi{.public.api.txt}",
58 ":non-updatable-current.txt",
59 ],
60 out: ["current.txt"],
61 tools: ["metalava"],
62 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
Anton Hanssonae4332d2020-10-08 13:11:47 +010063 dist: {
64 targets: ["sdk", "win_sdk"],
65 dir: "apistubs/android/public/api",
66 dest: "android.txt",
67 },
Anton Hansson85359f62020-09-21 17:02:25 +010068}
69
70genrule {
Anton Hansson3c1aa112020-09-25 09:13:47 +010071 name: "frameworks-base-api-removed-merged.txt",
72 srcs: [
73 ":conscrypt.module.public.api{.public.removed-api.txt}",
74 ":framework-media{.public.removed-api.txt}",
75 ":framework-mediaprovider{.public.removed-api.txt}",
76 ":framework-permission{.public.removed-api.txt}",
77 ":framework-sdkextensions{.public.removed-api.txt}",
78 ":framework-statsd{.public.removed-api.txt}",
79 ":framework-tethering{.public.removed-api.txt}",
80 ":framework-wifi{.public.removed-api.txt}",
81 ":non-updatable-removed.txt",
82 ],
83 out: ["removed.txt"],
84 tools: ["metalava"],
85 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
86}
87
88genrule {
Anton Hansson85359f62020-09-21 17:02:25 +010089 name: "frameworks-base-api-system-current-merged.txt",
90 srcs: [
91 ":framework-media{.system.api.txt}",
92 ":framework-mediaprovider{.system.api.txt}",
93 ":framework-permission{.system.api.txt}",
94 ":framework-sdkextensions{.system.api.txt}",
95 ":framework-statsd{.system.api.txt}",
96 ":framework-tethering{.system.api.txt}",
97 ":framework-wifi{.system.api.txt}",
98 ":non-updatable-system-current.txt",
99 ],
100 out: ["system-current.txt"],
101 tools: ["metalava"],
102 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
Anton Hanssonae4332d2020-10-08 13:11:47 +0100103 dist: {
104 targets: ["sdk", "win_sdk"],
105 dir: "apistubs/android/system/api",
106 dest: "android.txt",
107 },
Anton Hansson85359f62020-09-21 17:02:25 +0100108}
109
110genrule {
Anton Hansson3c1aa112020-09-25 09:13:47 +0100111 name: "frameworks-base-api-system-removed-merged.txt",
112 srcs: [
113 ":framework-media{.system.removed-api.txt}",
114 ":framework-mediaprovider{.system.removed-api.txt}",
115 ":framework-permission{.system.removed-api.txt}",
116 ":framework-sdkextensions{.system.removed-api.txt}",
117 ":framework-statsd{.system.removed-api.txt}",
118 ":framework-tethering{.system.removed-api.txt}",
119 ":framework-wifi{.system.removed-api.txt}",
120 ":non-updatable-system-removed.txt",
121 ],
122 out: ["system-removed.txt"],
123 tools: ["metalava"],
124 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
125}
126
127genrule {
Anton Hansson85359f62020-09-21 17:02:25 +0100128 name: "frameworks-base-api-module-lib-current-merged.txt",
129 srcs: [
130 ":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)",
Anton Hanssonae4332d2020-10-08 13:11:47 +0100142 dist: {
143 targets: ["sdk", "win_sdk"],
144 dir: "apistubs/android/module-lib/api",
145 dest: "android.txt",
146 },
Anton Hansson85359f62020-09-21 17:02:25 +0100147}
Anton Hansson3c1aa112020-09-25 09:13:47 +0100148
149genrule {
150 name: "frameworks-base-api-module-lib-removed-merged.txt",
151 srcs: [
152 ":framework-media{.module-lib.removed-api.txt}",
153 ":framework-mediaprovider{.module-lib.removed-api.txt}",
154 ":framework-permission{.module-lib.removed-api.txt}",
155 ":framework-sdkextensions{.module-lib.removed-api.txt}",
156 ":framework-statsd{.module-lib.removed-api.txt}",
157 ":framework-tethering{.module-lib.removed-api.txt}",
158 ":framework-wifi{.module-lib.removed-api.txt}",
159 ":non-updatable-module-lib-removed.txt",
160 ],
161 out: ["module-lib-removed.txt"],
162 tools: ["metalava"],
163 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
164}
Anton Hanssona15427a2020-10-02 18:21:14 +0100165
166genrule {
167 name: "combined-removed-dex",
168 srcs: [
169 ":frameworks-base-api-removed-merged.txt",
170 ":frameworks-base-api-system-removed-merged.txt",
171 ":android.car-stubs-docs{.removed-api.txt}",
172 ":android.car-system-stubs-docs{.removed-api.txt}",
173 ],
174 tool_files: ["gen_combined_removed_dex.sh"],
175 tools: ["metalava"],
176 out: ["combined-removed-dex.txt"],
177 cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
178}