blob: a6a368d8807af30d760eb5f6ca30664cfa5ebbed [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"],
25 libs: [
26 "signature_trie",
27 ],
28 version: {
29 py2: {
30 enabled: false,
31 },
32 py3: {
33 enabled: true,
34 embedded_launcher: true,
35 },
36 },
37}
38
39python_test_host {
40 name: "analyze_bcpf_test",
41 main: "analyze_bcpf_test.py",
42 srcs: [
43 "analyze_bcpf.py",
44 "analyze_bcpf_test.py",
45 ],
46 libs: [
47 "signature_trie",
48 ],
49 version: {
50 py2: {
51 enabled: false,
52 },
53 py3: {
54 enabled: true,
55 embedded_launcher: true,
56 },
57 },
58 test_options: {
59 unit_test: true,
60 },
61}
62
63python_binary_host {
Paul Duffinfdada682021-02-08 18:08:09 +000064 name: "merge_csv",
65 main: "merge_csv.py",
66 srcs: ["merge_csv.py"],
67 version: {
68 py2: {
69 enabled: false,
70 },
71 py3: {
72 enabled: true,
73 embedded_launcher: true,
74 },
75 },
76}
77
78python_binary_host {
79 name: "generate_hiddenapi_lists",
80 main: "generate_hiddenapi_lists.py",
81 srcs: ["generate_hiddenapi_lists.py"],
82 version: {
83 py2: {
84 enabled: false,
85 },
86 py3: {
87 enabled: true,
88 embedded_launcher: true,
89 },
90 },
91}
Paul Duffindfa10832021-05-13 17:31:51 +010092
Paul Duffin2cde5f42021-07-20 18:25:20 +010093python_test_host {
94 name: "generate_hiddenapi_lists_test",
95 main: "generate_hiddenapi_lists_test.py",
96 srcs: [
97 "generate_hiddenapi_lists.py",
98 "generate_hiddenapi_lists_test.py",
99 ],
100 version: {
101 py2: {
102 enabled: false,
103 },
104 py3: {
105 enabled: true,
106 embedded_launcher: true,
107 },
108 },
109 test_options: {
110 unit_test: true,
111 },
112}
113
Paul Duffinb5cd5222022-02-28 19:06:49 +0000114python_library_host {
115 name: "signature_trie",
116 srcs: ["signature_trie.py"],
117}
118
119python_test_host {
120 name: "signature_trie_test",
121 main: "signature_trie_test.py",
122 srcs: ["signature_trie_test.py"],
123 libs: ["signature_trie"],
124 version: {
125 py2: {
126 enabled: false,
127 },
128 py3: {
129 enabled: true,
130 embedded_launcher: true,
131 },
132 },
133 test_options: {
134 unit_test: true,
135 },
136}
137
Paul Duffindfa10832021-05-13 17:31:51 +0100138python_binary_host {
139 name: "verify_overlaps",
140 main: "verify_overlaps.py",
141 srcs: ["verify_overlaps.py"],
Paul Duffinb5cd5222022-02-28 19:06:49 +0000142 libs: [
143 "signature_trie",
144 ],
Paul Duffindfa10832021-05-13 17:31:51 +0100145 version: {
146 py2: {
147 enabled: false,
148 },
149 py3: {
150 enabled: true,
151 embedded_launcher: true,
152 },
153 },
154}
Paul Duffin428c6512021-07-21 15:33:22 +0100155
156python_test_host {
157 name: "verify_overlaps_test",
158 main: "verify_overlaps_test.py",
159 srcs: [
160 "verify_overlaps.py",
161 "verify_overlaps_test.py",
162 ],
Paul Duffinb5cd5222022-02-28 19:06:49 +0000163 libs: [
164 "signature_trie",
165 ],
Paul Duffin428c6512021-07-21 15:33:22 +0100166 version: {
167 py2: {
168 enabled: false,
169 },
170 py3: {
171 enabled: true,
172 embedded_launcher: true,
173 },
174 },
175 test_options: {
176 unit_test: true,
177 },
178}
Paul Duffin67b9d612021-07-21 17:38:47 +0100179
180python_binary_host {
181 name: "signature_patterns",
182 main: "signature_patterns.py",
183 srcs: ["signature_patterns.py"],
184 version: {
185 py2: {
186 enabled: false,
187 },
188 py3: {
189 enabled: true,
190 embedded_launcher: true,
191 },
192 },
193}
194
195python_test_host {
196 name: "signature_patterns_test",
197 main: "signature_patterns_test.py",
198 srcs: [
199 "signature_patterns.py",
200 "signature_patterns_test.py",
201 ],
202 version: {
203 py2: {
204 enabled: false,
205 },
206 py3: {
207 enabled: true,
208 embedded_launcher: true,
209 },
210 },
211 test_options: {
212 unit_test: true,
213 },
214}