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        ":telephonyprovider-proto-sources",
26    ],
27    proto: {
28        canonical_path_from_root: false
29    },
30    libs: [
31        "libprotobuf-python",
32        "py-six",
33    ],
34}
35
36python_binary_host {
37    name: "update_carrier_data",
38    main: "python/update_carrier_data.py",
39    srcs: [
40        "python/compare.py",
41        "python/update_carrier_data.py",
42        "proto/*.proto",
43    ],
44    proto: {
45        canonical_path_from_root: false
46    },
47    libs: [
48        "libprotobuf-python",
49        "py-six",
50    ],
51}
52
53java_binary_host {
54    name: "CarrierConfigConverterV2",
55    srcs: [
56        "java/CarrierConfigConverterV2.java",
57        "java/CarrierProtoUtils.java",
58        "proto/*.proto",
59        ":telephonyprovider-proto-sources",
60    ],
61    java_resources: [
62      ":telephonyprovider-assets-carrierlist",
63    ],
64    main_class: "com.google.carrier.CarrierConfigConverterV2",
65    proto: {
66        type: "full",
67        canonical_path_from_root: false,
68    },
69    plugins: [
70        "auto_value_plugin",
71    ],
72    libs: [
73        "auto_value_annotations",
74    ],
75    static_libs: [
76        "guava",
77        "jcommander",
78        "libprotobuf-java-full",
79    ],
80}
81
82java_binary_host {
83    name: "GenCarrierList",
84    srcs: [
85        "java/CarrierProtoUtils.java",
86        "java/GenCarrierList.java",
87        "proto/*.proto",
88    ],
89    main_class: "com.google.carrier.GenCarrierList",
90    proto: {
91        type: "full",
92        canonical_path_from_root: false,
93    },
94    static_libs: [
95        "guava",
96        "jcommander",
97        "libprotobuf-java-full",
98    ],
99}
100
101java_binary_host {
102    name: "GenDeviceSettings",
103    srcs: [
104        "java/CarrierProtoUtils.java",
105        "java/GenDeviceSettings.java",
106        "proto/*.proto",
107    ],
108    main_class: "com.google.carrier.GenDeviceSettings",
109    proto: {
110        type: "full",
111        canonical_path_from_root: false,
112    },
113    static_libs: [
114        "guava",
115        "jcommander",
116        "libprotobuf-java-full",
117    ],
118}
119