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} 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 ], 39 // Make sure that the bpmodify tool is built. 40 data: [":bpmodify"], 41 libs: [ 42 "signature_trie", 43 ], 44 test_options: { 45 unit_test: true, 46 }, 47} 48 49python_binary_host { 50 name: "merge_csv", 51 main: "merge_csv.py", 52 srcs: ["merge_csv.py"], 53} 54 55python_binary_host { 56 name: "generate_hiddenapi_lists", 57 main: "generate_hiddenapi_lists.py", 58 srcs: ["generate_hiddenapi_lists.py"], 59} 60 61python_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 ], 68 test_options: { 69 unit_test: true, 70 }, 71} 72 73python_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"], 83 test_options: { 84 unit_test: true, 85 }, 86} 87 88python_binary_host { 89 name: "verify_overlaps", 90 main: "verify_overlaps.py", 91 srcs: ["verify_overlaps.py"], 92 libs: [ 93 "signature_trie", 94 ], 95} 96 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 ], 104 libs: [ 105 "signature_trie", 106 ], 107 test_options: { 108 unit_test: true, 109 }, 110} 111 112python_binary_host { 113 name: "signature_patterns", 114 main: "signature_patterns.py", 115 srcs: ["signature_patterns.py"], 116} 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 ], 125 test_options: { 126 unit_test: true, 127 }, 128} 129