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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21python_binary_host { 22 name: "analyze_bcpf", 23 main: "analyze_bcpf.py", 24 srcs: ["analyze_bcpf.py"], 25 // Make sure that the bpmodify tool is built. 26 data: [":bpmodify"], 27 libs: [ 28 "signature_trie", 29 ], 30 target: { 31 windows: { 32 // go modules (bpmodify) don't support windows 33 enabled: false, 34 }, 35 }, 36} 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 ], 45 // Make sure that the bpmodify tool is built. 46 data: [":bpmodify"], 47 libs: [ 48 "signature_trie", 49 ], 50 test_options: { 51 unit_test: true, 52 }, 53 target: { 54 windows: { 55 // go modules (bpmodify) don't support windows 56 enabled: false, 57 }, 58 }, 59} 60 61python_binary_host { 62 name: "merge_csv", 63 main: "merge_csv.py", 64 srcs: ["merge_csv.py"], 65} 66 67python_binary_host { 68 name: "generate_hiddenapi_lists", 69 main: "generate_hiddenapi_lists.py", 70 srcs: ["generate_hiddenapi_lists.py"], 71} 72 73python_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 ], 80 test_options: { 81 unit_test: true, 82 }, 83} 84 85python_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"], 95 test_options: { 96 unit_test: true, 97 }, 98} 99 100python_binary_host { 101 name: "verify_overlaps", 102 main: "verify_overlaps.py", 103 srcs: ["verify_overlaps.py"], 104 libs: [ 105 "signature_trie", 106 ], 107} 108 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 ], 116 libs: [ 117 "signature_trie", 118 ], 119 test_options: { 120 unit_test: true, 121 }, 122} 123 124python_binary_host { 125 name: "signature_patterns", 126 main: "signature_patterns.py", 127 srcs: ["signature_patterns.py"], 128} 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 ], 137 test_options: { 138 unit_test: true, 139 }, 140} 141