blob: cb6d448caf63c107be4f3f55007e8856afbddb36 [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)",
63}
64
65genrule {
66 name: "frameworks-base-api-system-current-merged.txt",
67 srcs: [
68 ":framework-media{.system.api.txt}",
69 ":framework-mediaprovider{.system.api.txt}",
70 ":framework-permission{.system.api.txt}",
71 ":framework-sdkextensions{.system.api.txt}",
72 ":framework-statsd{.system.api.txt}",
73 ":framework-tethering{.system.api.txt}",
74 ":framework-wifi{.system.api.txt}",
75 ":non-updatable-system-current.txt",
76 ],
77 out: ["system-current.txt"],
78 tools: ["metalava"],
79 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
80}
81
82genrule {
83 name: "frameworks-base-api-module-lib-current-merged.txt",
84 srcs: [
85 ":framework-media{.module-lib.api.txt}",
86 ":framework-mediaprovider{.module-lib.api.txt}",
87 ":framework-permission{.module-lib.api.txt}",
88 ":framework-sdkextensions{.module-lib.api.txt}",
89 ":framework-statsd{.module-lib.api.txt}",
90 ":framework-tethering{.module-lib.api.txt}",
91 ":framework-wifi{.module-lib.api.txt}",
92 ":non-updatable-module-lib-current.txt",
93 ],
94 out: ["module-lib-current.txt"],
95 tools: ["metalava"],
96 cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
97}