blob: 07878f9f108c78d480d24931b927190f03f751b4 [file] [log] [blame]
Paul Duffinfdada682021-02-08 18:08:09 +00001/*
2 * Copyright (C) 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Bob Badour1bf67652021-02-13 11:51:55 -080017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Paul Duffinfdada682021-02-08 18:08:09 +000021python_binary_host {
Paul Duffin4dcf6592022-02-28 19:22:12 +000022 name: "analyze_bcpf",
23 main: "analyze_bcpf.py",
24 srcs: ["analyze_bcpf.py"],
Paul Duffin26f19912022-03-28 16:09:27 +010025 // Make sure that the bpmodify tool is built.
26 data: [":bpmodify"],
Paul Duffin4dcf6592022-02-28 19:22:12 +000027 libs: [
28 "signature_trie",
29 ],
30 version: {
31 py2: {
32 enabled: false,
33 },
34 py3: {
35 enabled: true,
36 embedded_launcher: true,
37 },
38 },
39}
40
41python_test_host {
42 name: "analyze_bcpf_test",
43 main: "analyze_bcpf_test.py",
44 srcs: [
45 "analyze_bcpf.py",
46 "analyze_bcpf_test.py",
47 ],
Paul Duffin26f19912022-03-28 16:09:27 +010048 // Make sure that the bpmodify tool is built.
49 data: [":bpmodify"],
Paul Duffin4dcf6592022-02-28 19:22:12 +000050 libs: [
51 "signature_trie",
52 ],
53 version: {
54 py2: {
55 enabled: false,
56 },
57 py3: {
58 enabled: true,
59 embedded_launcher: true,
60 },
61 },
62 test_options: {
63 unit_test: true,
64 },
65}
66
67python_binary_host {
Paul Duffinfdada682021-02-08 18:08:09 +000068 name: "merge_csv",
69 main: "merge_csv.py",
70 srcs: ["merge_csv.py"],
71 version: {
72 py2: {
73 enabled: false,
74 },
75 py3: {
76 enabled: true,
77 embedded_launcher: true,
78 },
79 },
80}
81
82python_binary_host {
83 name: "generate_hiddenapi_lists",
84 main: "generate_hiddenapi_lists.py",
85 srcs: ["generate_hiddenapi_lists.py"],
86 version: {
87 py2: {
88 enabled: false,
89 },
90 py3: {
91 enabled: true,
92 embedded_launcher: true,
93 },
94 },
95}
Paul Duffindfa10832021-05-13 17:31:51 +010096
Paul Duffin2cde5f42021-07-20 18:25:20 +010097python_test_host {
98 name: "generate_hiddenapi_lists_test",
99 main: "generate_hiddenapi_lists_test.py",
100 srcs: [
101 "generate_hiddenapi_lists.py",
102 "generate_hiddenapi_lists_test.py",
103 ],
104 version: {
105 py2: {
106 enabled: false,
107 },
108 py3: {
109 enabled: true,
110 embedded_launcher: true,
111 },
112 },
113 test_options: {
114 unit_test: true,
115 },
116}
117
Paul Duffinb5cd5222022-02-28 19:06:49 +0000118python_library_host {
119 name: "signature_trie",
120 srcs: ["signature_trie.py"],
121}
122
123python_test_host {
124 name: "signature_trie_test",
125 main: "signature_trie_test.py",
126 srcs: ["signature_trie_test.py"],
127 libs: ["signature_trie"],
128 version: {
129 py2: {
130 enabled: false,
131 },
132 py3: {
133 enabled: true,
134 embedded_launcher: true,
135 },
136 },
137 test_options: {
138 unit_test: true,
139 },
140}
141
Paul Duffindfa10832021-05-13 17:31:51 +0100142python_binary_host {
143 name: "verify_overlaps",
144 main: "verify_overlaps.py",
145 srcs: ["verify_overlaps.py"],
Paul Duffinb5cd5222022-02-28 19:06:49 +0000146 libs: [
147 "signature_trie",
148 ],
Paul Duffindfa10832021-05-13 17:31:51 +0100149 version: {
150 py2: {
151 enabled: false,
152 },
153 py3: {
154 enabled: true,
155 embedded_launcher: true,
156 },
157 },
158}
Paul Duffin428c6512021-07-21 15:33:22 +0100159
160python_test_host {
161 name: "verify_overlaps_test",
162 main: "verify_overlaps_test.py",
163 srcs: [
164 "verify_overlaps.py",
165 "verify_overlaps_test.py",
166 ],
Paul Duffinb5cd5222022-02-28 19:06:49 +0000167 libs: [
168 "signature_trie",
169 ],
Paul Duffin428c6512021-07-21 15:33:22 +0100170 version: {
171 py2: {
172 enabled: false,
173 },
174 py3: {
175 enabled: true,
176 embedded_launcher: true,
177 },
178 },
179 test_options: {
180 unit_test: true,
181 },
182}
Paul Duffin67b9d612021-07-21 17:38:47 +0100183
184python_binary_host {
185 name: "signature_patterns",
186 main: "signature_patterns.py",
187 srcs: ["signature_patterns.py"],
188 version: {
189 py2: {
190 enabled: false,
191 },
192 py3: {
193 enabled: true,
194 embedded_launcher: true,
195 },
196 },
197}
198
199python_test_host {
200 name: "signature_patterns_test",
201 main: "signature_patterns_test.py",
202 srcs: [
203 "signature_patterns.py",
204 "signature_patterns_test.py",
205 ],
206 version: {
207 py2: {
208 enabled: false,
209 },
210 py3: {
211 enabled: true,
212 embedded_launcher: true,
213 },
214 },
215 test_options: {
216 unit_test: true,
217 },
218}