1// Copyright (C) 2019 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
15genrule_defaults {
16    name: "signature-cts-api-api-gz",
17    cmd: "$(location metalava) --no-banner --compatible-output=no -convert2xmlnostrip $(in) $(genDir)/api.xml && gzip -c $(genDir)/api.xml > $(out)",
18    tools: ["metalava"],
19    visibility: [
20        "//cts/tests/signature/api-check:__subpackages__",
21        "//cts/tests/signature/intent-check",
22    ],
23}
24
25genrule {
26    name: "cts-current-api-gz",
27    defaults: ["signature-cts-api-api-gz"],
28    srcs: [
29        ":frameworks-base-api-current.txt",
30    ],
31    out: [
32        "current.api.gz",
33    ],
34}
35
36genrule {
37    name: "cts-system-current-api-gz",
38    defaults: ["signature-cts-api-api-gz"],
39    srcs: [
40        ":frameworks-base-api-system-current.txt",
41    ],
42    out: [
43        "system-current.api.gz",
44    ],
45}
46
47genrule {
48    name: "cts-system-removed-api-gz",
49    defaults: ["signature-cts-api-api-gz"],
50    srcs: [
51        ":frameworks-base-api-system-removed.txt",
52    ],
53    out: [
54        "system-removed.api.gz",
55    ],
56}
57
58genrule {
59    name: "cts-android-test-base-current-api-gz",
60    defaults: ["signature-cts-api-api-gz"],
61    srcs: [
62        ":android-test-base-current.txt",
63    ],
64    out: [
65        "android-test-base-current.api.gz",
66    ],
67}
68
69genrule {
70    name: "cts-android-test-mock-current-api-gz",
71    defaults: ["signature-cts-api-api-gz"],
72    srcs: [
73        ":android-test-mock-current.txt",
74    ],
75    out: [
76        "android-test-mock-current.api.gz",
77    ],
78}
79
80genrule {
81    name: "cts-android-test-runner-current-api-gz",
82    defaults: ["signature-cts-api-api-gz"],
83    srcs: [
84        ":android-test-runner-current.txt",
85    ],
86    out: [
87        "android-test-runner-current.api.gz",
88    ],
89}
90
91genrule {
92    name: "cts-apache-http-legacy-current-api-gz",
93    defaults: ["signature-cts-api-api-gz"],
94    srcs: [
95        ":apache-http-legacy-current.txt",
96    ],
97    out: [
98        "apache-http-legacy-current.api.gz",
99    ],
100}
101
102genrule {
103    name: "cts-car-system-current-api-gz",
104    defaults: ["signature-cts-api-api-gz"],
105    srcs: [
106        ":car-api-system-current.txt",
107    ],
108    out: [
109        "car-system-current.api.gz",
110    ],
111}
112
113genrule {
114    name: "cts-car-system-removed-api-gz",
115    defaults: ["signature-cts-api-api-gz"],
116    srcs: [
117        ":car-api-system-removed.txt",
118    ],
119    out: [
120        "car-system-removed.api.gz",
121    ],
122}
123