| 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 | ], | 
| Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame] | 30 | } | 
|  | 31 |  | 
|  | 32 | python_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 Duffin | 26f1991 | 2022-03-28 16:09:27 +0100 | [diff] [blame] | 39 | // Make sure that the bpmodify tool is built. | 
|  | 40 | data: [":bpmodify"], | 
| Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame] | 41 | libs: [ | 
|  | 42 | "signature_trie", | 
|  | 43 | ], | 
| Paul Duffin | 4dcf659 | 2022-02-28 19:22:12 +0000 | [diff] [blame] | 44 | test_options: { | 
|  | 45 | unit_test: true, | 
|  | 46 | }, | 
|  | 47 | } | 
|  | 48 |  | 
|  | 49 | python_binary_host { | 
| Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 50 | name: "merge_csv", | 
|  | 51 | main: "merge_csv.py", | 
|  | 52 | srcs: ["merge_csv.py"], | 
| Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 53 | } | 
|  | 54 |  | 
|  | 55 | python_binary_host { | 
|  | 56 | name: "generate_hiddenapi_lists", | 
|  | 57 | main: "generate_hiddenapi_lists.py", | 
|  | 58 | srcs: ["generate_hiddenapi_lists.py"], | 
| Paul Duffin | fdada68 | 2021-02-08 18:08:09 +0000 | [diff] [blame] | 59 | } | 
| Paul Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 60 |  | 
| Paul Duffin | 2cde5f4 | 2021-07-20 18:25:20 +0100 | [diff] [blame] | 61 | python_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 Duffin | 2cde5f4 | 2021-07-20 18:25:20 +0100 | [diff] [blame] | 68 | test_options: { | 
|  | 69 | unit_test: true, | 
|  | 70 | }, | 
|  | 71 | } | 
|  | 72 |  | 
| Paul Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 73 | python_library_host { | 
|  | 74 | name: "signature_trie", | 
|  | 75 | srcs: ["signature_trie.py"], | 
|  | 76 | } | 
|  | 77 |  | 
|  | 78 | python_test_host { | 
|  | 79 | name: "signature_trie_test", | 
|  | 80 | main: "signature_trie_test.py", | 
|  | 81 | srcs: ["signature_trie_test.py"], | 
|  | 82 | libs: ["signature_trie"], | 
| Paul Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 83 | test_options: { | 
|  | 84 | unit_test: true, | 
|  | 85 | }, | 
|  | 86 | } | 
|  | 87 |  | 
| Paul Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 88 | python_binary_host { | 
|  | 89 | name: "verify_overlaps", | 
|  | 90 | main: "verify_overlaps.py", | 
|  | 91 | srcs: ["verify_overlaps.py"], | 
| Paul Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 92 | libs: [ | 
|  | 93 | "signature_trie", | 
|  | 94 | ], | 
| Paul Duffin | dfa1083 | 2021-05-13 17:31:51 +0100 | [diff] [blame] | 95 | } | 
| Paul Duffin | 428c651 | 2021-07-21 15:33:22 +0100 | [diff] [blame] | 96 |  | 
|  | 97 | python_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 Duffin | b5cd522 | 2022-02-28 19:06:49 +0000 | [diff] [blame] | 104 | libs: [ | 
|  | 105 | "signature_trie", | 
|  | 106 | ], | 
| Paul Duffin | 428c651 | 2021-07-21 15:33:22 +0100 | [diff] [blame] | 107 | test_options: { | 
|  | 108 | unit_test: true, | 
|  | 109 | }, | 
|  | 110 | } | 
| Paul Duffin | 67b9d61 | 2021-07-21 17:38:47 +0100 | [diff] [blame] | 111 |  | 
|  | 112 | python_binary_host { | 
|  | 113 | name: "signature_patterns", | 
|  | 114 | main: "signature_patterns.py", | 
|  | 115 | srcs: ["signature_patterns.py"], | 
| Paul Duffin | 67b9d61 | 2021-07-21 17:38:47 +0100 | [diff] [blame] | 116 | } | 
|  | 117 |  | 
|  | 118 | python_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 Duffin | 67b9d61 | 2021-07-21 17:38:47 +0100 | [diff] [blame] | 125 | test_options: { | 
|  | 126 | unit_test: true, | 
|  | 127 | }, | 
|  | 128 | } |