1// Copyright (C) 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19python_binary_host { 20 name: "update_apn", 21 main: "python/update_apn.py", 22 srcs: [ 23 "python/update_apn.py", 24 "proto/*.proto", 25 ], 26 proto: { 27 canonical_path_from_root: false 28 }, 29 libs: [ 30 "libprotobuf-python", 31 "py-six", 32 ], 33} 34 35python_binary_host { 36 name: "update_carrier_data", 37 main: "python/update_carrier_data.py", 38 srcs: [ 39 "python/compare.py", 40 "python/update_carrier_data.py", 41 "proto/*.proto", 42 ], 43 proto: { 44 canonical_path_from_root: false 45 }, 46 libs: [ 47 "libprotobuf-python", 48 "py-six", 49 ], 50} 51 52java_binary_host { 53 name: "CarrierConfigConverterV2", 54 srcs: [ 55 "java/CarrierConfigConverterV2.java", 56 "java/CarrierProtoUtils.java", 57 "proto/*.proto", 58 ":telephonyprovider-proto-sources", 59 ], 60 java_resources: [ 61 ":telephonyprovider-assets-carrierlist", 62 ], 63 main_class: "com.google.carrier.CarrierConfigConverterV2", 64 proto: { 65 type: "full", 66 canonical_path_from_root: false, 67 }, 68 plugins: [ 69 "auto_value_plugin", 70 ], 71 libs: [ 72 "auto_value_annotations", 73 ], 74 static_libs: [ 75 "guava", 76 "jcommander", 77 "libprotobuf-java-full", 78 ], 79} 80 81java_binary_host { 82 name: "GenCarrierList", 83 srcs: [ 84 "java/CarrierProtoUtils.java", 85 "java/GenCarrierList.java", 86 "proto/*.proto", 87 ], 88 main_class: "com.google.carrier.GenCarrierList", 89 proto: { 90 type: "full", 91 canonical_path_from_root: false, 92 }, 93 static_libs: [ 94 "guava", 95 "jcommander", 96 "libprotobuf-java-full", 97 ], 98} 99 100java_binary_host { 101 name: "GenDeviceSettings", 102 srcs: [ 103 "java/CarrierProtoUtils.java", 104 "java/GenDeviceSettings.java", 105 "proto/*.proto", 106 ], 107 main_class: "com.google.carrier.GenDeviceSettings", 108 proto: { 109 type: "full", 110 canonical_path_from_root: false, 111 }, 112 static_libs: [ 113 "guava", 114 "jcommander", 115 "libprotobuf-java-full", 116 ], 117} 118