Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 1 | /* |
| 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 Badour | 1bf6765 | 2021-02-13 11:51:55 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 21 | python_binary_host { |
Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame^] | 22 | 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 | |
| 39 | python_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 | |
| 63 | python_binary_host { |
Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 64 | 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 | |
| 78 | python_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 Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 92 | |
Paul Duffin | 2cde5f4 | 2021-07-20 18:25:20 +0100 | [diff] [blame] | 93 | python_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 Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 114 | python_library_host { |
| 115 | name: "signature_trie", |
| 116 | srcs: ["signature_trie.py"], |
| 117 | } |
| 118 | |
| 119 | python_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 Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 138 | python_binary_host { |
| 139 | name: "verify_overlaps", |
| 140 | main: "verify_overlaps.py", |
| 141 | srcs: ["verify_overlaps.py"], |
Paul Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 142 | libs: [ |
| 143 | "signature_trie", |
| 144 | ], |
Paul Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 145 | version: { |
| 146 | py2: { |
| 147 | enabled: false, |
| 148 | }, |
| 149 | py3: { |
| 150 | enabled: true, |
| 151 | embedded_launcher: true, |
| 152 | }, |
| 153 | }, |
| 154 | } |
Paul Duffin | 428c651 | 2021-07-21 15:33:22 +0100 | [diff] [blame] | 155 | |
| 156 | python_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 Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 163 | libs: [ |
| 164 | "signature_trie", |
| 165 | ], |
Paul Duffin | 428c651 | 2021-07-21 15:33:22 +0100 | [diff] [blame] | 166 | 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 Duffin | 67b9d61 | 2021-07-21 17:38:47 +0100 | [diff] [blame] | 179 | |
| 180 | python_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 | |
| 195 | python_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 | } |