blob: 061af1981263a8a640391a175d84715bafccbcd9 [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 ],
Cole Faust65cb40a2024-10-21 15:41:42 -070030 target: {
31 windows: {
32 // go modules (bpmodify) don't support windows
33 enabled: false,
34 },
35 },
Paul Duffin4dcf6592022-02-28 19:22:12 +000036}
37
38python_test_host {
39 name: "analyze_bcpf_test",
40 main: "analyze_bcpf_test.py",
41 srcs: [
42 "analyze_bcpf.py",
43 "analyze_bcpf_test.py",
44 ],
Paul Duffin26f19912022-03-28 16:09:27 +010045 // Make sure that the bpmodify tool is built.
46 data: [":bpmodify"],
Paul Duffin4dcf6592022-02-28 19:22:12 +000047 libs: [
48 "signature_trie",
49 ],
Paul Duffin4dcf6592022-02-28 19:22:12 +000050 test_options: {
51 unit_test: true,
52 },
Cole Faust65cb40a2024-10-21 15:41:42 -070053 target: {
54 windows: {
55 // go modules (bpmodify) don't support windows
56 enabled: false,
57 },
58 },
Paul Duffin4dcf6592022-02-28 19:22:12 +000059}
60
61python_binary_host {
Paul Duffinfdada682021-02-08 18:08:09 +000062 name: "merge_csv",
63 main: "merge_csv.py",
64 srcs: ["merge_csv.py"],
Paul Duffinfdada682021-02-08 18:08:09 +000065}
66
67python_binary_host {
68 name: "generate_hiddenapi_lists",
69 main: "generate_hiddenapi_lists.py",
70 srcs: ["generate_hiddenapi_lists.py"],
Paul Duffinfdada682021-02-08 18:08:09 +000071}
Paul Duffindfa10832021-05-13 17:31:51 +010072
Paul Duffin2cde5f42021-07-20 18:25:20 +010073python_test_host {
74 name: "generate_hiddenapi_lists_test",
75 main: "generate_hiddenapi_lists_test.py",
76 srcs: [
77 "generate_hiddenapi_lists.py",
78 "generate_hiddenapi_lists_test.py",
79 ],
Paul Duffin2cde5f42021-07-20 18:25:20 +010080 test_options: {
81 unit_test: true,
82 },
83}
84
Paul Duffinb5cd5222022-02-28 19:06:49 +000085python_library_host {
86 name: "signature_trie",
87 srcs: ["signature_trie.py"],
88}
89
90python_test_host {
91 name: "signature_trie_test",
92 main: "signature_trie_test.py",
93 srcs: ["signature_trie_test.py"],
94 libs: ["signature_trie"],
Paul Duffinb5cd5222022-02-28 19:06:49 +000095 test_options: {
96 unit_test: true,
97 },
98}
99
Paul Duffindfa10832021-05-13 17:31:51 +0100100python_binary_host {
101 name: "verify_overlaps",
102 main: "verify_overlaps.py",
103 srcs: ["verify_overlaps.py"],
Paul Duffinb5cd5222022-02-28 19:06:49 +0000104 libs: [
105 "signature_trie",
106 ],
Paul Duffindfa10832021-05-13 17:31:51 +0100107}
Paul Duffin428c6512021-07-21 15:33:22 +0100108
109python_test_host {
110 name: "verify_overlaps_test",
111 main: "verify_overlaps_test.py",
112 srcs: [
113 "verify_overlaps.py",
114 "verify_overlaps_test.py",
115 ],
Paul Duffinb5cd5222022-02-28 19:06:49 +0000116 libs: [
117 "signature_trie",
118 ],
Paul Duffin428c6512021-07-21 15:33:22 +0100119 test_options: {
120 unit_test: true,
121 },
122}
Paul Duffin67b9d612021-07-21 17:38:47 +0100123
124python_binary_host {
125 name: "signature_patterns",
126 main: "signature_patterns.py",
127 srcs: ["signature_patterns.py"],
Paul Duffin67b9d612021-07-21 17:38:47 +0100128}
129
130python_test_host {
131 name: "signature_patterns_test",
132 main: "signature_patterns_test.py",
133 srcs: [
134 "signature_patterns.py",
135 "signature_patterns_test.py",
136 ],
Paul Duffin67b9d612021-07-21 17:38:47 +0100137 test_options: {
138 unit_test: true,
139 },
140}