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"], |
Paul Duffin | 26f1991 | 2022-03-28 16:09:27 +0100 | [diff] [blame] | 25 | // Make sure that the bpmodify tool is built. |
| 26 | data: [":bpmodify"], |
Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame] | 27 | libs: [ |
| 28 | "signature_trie", |
| 29 | ], |
Cole Faust | 65cb40a | 2024-10-21 15:41:42 -0700 | [diff] [blame] | 30 | target: { |
| 31 | windows: { |
| 32 | // go modules (bpmodify) don't support windows |
| 33 | enabled: false, |
| 34 | }, |
| 35 | }, |
Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | python_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 Duffin | 26f1991 | 2022-03-28 16:09:27 +0100 | [diff] [blame] | 45 | // Make sure that the bpmodify tool is built. |
| 46 | data: [":bpmodify"], |
Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame] | 47 | libs: [ |
| 48 | "signature_trie", |
| 49 | ], |
Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame] | 50 | test_options: { |
| 51 | unit_test: true, |
| 52 | }, |
Cole Faust | 65cb40a | 2024-10-21 15:41:42 -0700 | [diff] [blame] | 53 | target: { |
| 54 | windows: { |
| 55 | // go modules (bpmodify) don't support windows |
| 56 | enabled: false, |
| 57 | }, |
| 58 | }, |
Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | python_binary_host { |
Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 62 | name: "merge_csv", |
| 63 | main: "merge_csv.py", |
| 64 | srcs: ["merge_csv.py"], |
Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | python_binary_host { |
| 68 | name: "generate_hiddenapi_lists", |
| 69 | main: "generate_hiddenapi_lists.py", |
| 70 | srcs: ["generate_hiddenapi_lists.py"], |
Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 71 | } |
Paul Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 72 | |
Paul Duffin | 2cde5f4 | 2021-07-20 18:25:20 +0100 | [diff] [blame] | 73 | python_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 Duffin | 2cde5f4 | 2021-07-20 18:25:20 +0100 | [diff] [blame] | 80 | test_options: { |
| 81 | unit_test: true, |
| 82 | }, |
| 83 | } |
| 84 | |
Paul Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 85 | python_library_host { |
| 86 | name: "signature_trie", |
| 87 | srcs: ["signature_trie.py"], |
| 88 | } |
| 89 | |
| 90 | python_test_host { |
| 91 | name: "signature_trie_test", |
| 92 | main: "signature_trie_test.py", |
| 93 | srcs: ["signature_trie_test.py"], |
| 94 | libs: ["signature_trie"], |
Paul Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 95 | test_options: { |
| 96 | unit_test: true, |
| 97 | }, |
| 98 | } |
| 99 | |
Paul Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 100 | python_binary_host { |
| 101 | name: "verify_overlaps", |
| 102 | main: "verify_overlaps.py", |
| 103 | srcs: ["verify_overlaps.py"], |
Paul Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 104 | libs: [ |
| 105 | "signature_trie", |
| 106 | ], |
Paul Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 107 | } |
Paul Duffin | 428c651 | 2021-07-21 15:33:22 +0100 | [diff] [blame] | 108 | |
| 109 | python_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 Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 116 | libs: [ |
| 117 | "signature_trie", |
| 118 | ], |
Paul Duffin | 428c651 | 2021-07-21 15:33:22 +0100 | [diff] [blame] | 119 | test_options: { |
| 120 | unit_test: true, |
| 121 | }, |
| 122 | } |
Paul Duffin | 67b9d61 | 2021-07-21 17:38:47 +0100 | [diff] [blame] | 123 | |
| 124 | python_binary_host { |
| 125 | name: "signature_patterns", |
| 126 | main: "signature_patterns.py", |
| 127 | srcs: ["signature_patterns.py"], |
Paul Duffin | 67b9d61 | 2021-07-21 17:38:47 +0100 | [diff] [blame] | 128 | } |
| 129 | |
| 130 | python_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 Duffin | 67b9d61 | 2021-07-21 17:38:47 +0100 | [diff] [blame] | 137 | test_options: { |
| 138 | unit_test: true, |
| 139 | }, |
| 140 | } |