blob: 43edf447ce57d261a4a786c22d0931fb4d5938db [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 ],
Paul Duffin4dcf6592022-02-28 19:22:12 +000030}
31
32python_test_host {
33 name: "analyze_bcpf_test",
34 main: "analyze_bcpf_test.py",
35 srcs: [
36 "analyze_bcpf.py",
37 "analyze_bcpf_test.py",
38 ],
Paul Duffin26f19912022-03-28 16:09:27 +010039 // Make sure that the bpmodify tool is built.
40 data: [":bpmodify"],
Paul Duffin4dcf6592022-02-28 19:22:12 +000041 libs: [
42 "signature_trie",
43 ],
Paul Duffin4dcf6592022-02-28 19:22:12 +000044 test_options: {
45 unit_test: true,
46 },
47}
48
49python_binary_host {
Paul Duffinfdada682021-02-08 18:08:09 +000050 name: "merge_csv",
51 main: "merge_csv.py",
52 srcs: ["merge_csv.py"],
Paul Duffinfdada682021-02-08 18:08:09 +000053}
54
55python_binary_host {
56 name: "generate_hiddenapi_lists",
57 main: "generate_hiddenapi_lists.py",
58 srcs: ["generate_hiddenapi_lists.py"],
Paul Duffinfdada682021-02-08 18:08:09 +000059}
Paul Duffindfa10832021-05-13 17:31:51 +010060
Paul Duffin2cde5f42021-07-20 18:25:20 +010061python_test_host {
62 name: "generate_hiddenapi_lists_test",
63 main: "generate_hiddenapi_lists_test.py",
64 srcs: [
65 "generate_hiddenapi_lists.py",
66 "generate_hiddenapi_lists_test.py",
67 ],
Paul Duffin2cde5f42021-07-20 18:25:20 +010068 test_options: {
69 unit_test: true,
70 },
71}
72
Paul Duffinb5cd5222022-02-28 19:06:49 +000073python_library_host {
74 name: "signature_trie",
75 srcs: ["signature_trie.py"],
76}
77
78python_test_host {
79 name: "signature_trie_test",
80 main: "signature_trie_test.py",
81 srcs: ["signature_trie_test.py"],
82 libs: ["signature_trie"],
Paul Duffinb5cd5222022-02-28 19:06:49 +000083 test_options: {
84 unit_test: true,
85 },
86}
87
Paul Duffindfa10832021-05-13 17:31:51 +010088python_binary_host {
89 name: "verify_overlaps",
90 main: "verify_overlaps.py",
91 srcs: ["verify_overlaps.py"],
Paul Duffinb5cd5222022-02-28 19:06:49 +000092 libs: [
93 "signature_trie",
94 ],
Paul Duffindfa10832021-05-13 17:31:51 +010095}
Paul Duffin428c6512021-07-21 15:33:22 +010096
97python_test_host {
98 name: "verify_overlaps_test",
99 main: "verify_overlaps_test.py",
100 srcs: [
101 "verify_overlaps.py",
102 "verify_overlaps_test.py",
103 ],
Paul Duffinb5cd5222022-02-28 19:06:49 +0000104 libs: [
105 "signature_trie",
106 ],
Paul Duffin428c6512021-07-21 15:33:22 +0100107 test_options: {
108 unit_test: true,
109 },
110}
Paul Duffin67b9d612021-07-21 17:38:47 +0100111
112python_binary_host {
113 name: "signature_patterns",
114 main: "signature_patterns.py",
115 srcs: ["signature_patterns.py"],
Paul Duffin67b9d612021-07-21 17:38:47 +0100116}
117
118python_test_host {
119 name: "signature_patterns_test",
120 main: "signature_patterns_test.py",
121 srcs: [
122 "signature_patterns.py",
123 "signature_patterns_test.py",
124 ],
Paul Duffin67b9d612021-07-21 17:38:47 +0100125 test_options: {
126 unit_test: true,
127 },
128}