xref: /aosp_15_r20/external/grpc-grpc-java/protobuf/Android.bp (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1*e07d83d3SAndroid Build Coastguard Worker//
2*e07d83d3SAndroid Build Coastguard Worker// Copyright (C) 2018 The Android Open Source Project
3*e07d83d3SAndroid Build Coastguard Worker//
4*e07d83d3SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*e07d83d3SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*e07d83d3SAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*e07d83d3SAndroid Build Coastguard Worker//
8*e07d83d3SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*e07d83d3SAndroid Build Coastguard Worker//
10*e07d83d3SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*e07d83d3SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*e07d83d3SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*e07d83d3SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*e07d83d3SAndroid Build Coastguard Worker// limitations under the License.
15*e07d83d3SAndroid Build Coastguard Worker//
16*e07d83d3SAndroid Build Coastguard Worker//
17*e07d83d3SAndroid Build Coastguard Worker
18*e07d83d3SAndroid Build Coastguard Workerpackage {
19*e07d83d3SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
20*e07d83d3SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
21*e07d83d3SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_grpc-grpc-java_license"
22*e07d83d3SAndroid Build Coastguard Worker    // to get the below license kinds:
23*e07d83d3SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
24*e07d83d3SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_grpc-grpc-java_license"],
25*e07d83d3SAndroid Build Coastguard Worker}
26*e07d83d3SAndroid Build Coastguard Worker
27*e07d83d3SAndroid Build Coastguard Workerjava_library_host {
28*e07d83d3SAndroid Build Coastguard Worker    name: "grpc-java-protobuf",
29*e07d83d3SAndroid Build Coastguard Worker    srcs: [
30*e07d83d3SAndroid Build Coastguard Worker        "src/main/java/**/*.java",
31*e07d83d3SAndroid Build Coastguard Worker    ],
32*e07d83d3SAndroid Build Coastguard Worker    libs: [
33*e07d83d3SAndroid Build Coastguard Worker        "grpc-java-api",
34*e07d83d3SAndroid Build Coastguard Worker        "grpc-java-core",
35*e07d83d3SAndroid Build Coastguard Worker        "grpc-java-protobuf-lite",
36*e07d83d3SAndroid Build Coastguard Worker        "com.google.api.grpc_proto-google-common-protos-prebuilt-jar",
37*e07d83d3SAndroid Build Coastguard Worker        "jsr305",
38*e07d83d3SAndroid Build Coastguard Worker        "guava",
39*e07d83d3SAndroid Build Coastguard Worker        "libprotobuf-java-full",
40*e07d83d3SAndroid Build Coastguard Worker        "libprotobuf-java-util-full",
41*e07d83d3SAndroid Build Coastguard Worker    ],
42*e07d83d3SAndroid Build Coastguard Worker    // b/267831518: Pin tradefed and dependencies to Java 11.
43*e07d83d3SAndroid Build Coastguard Worker    java_version: "11",
44*e07d83d3SAndroid Build Coastguard Worker    target: {
45*e07d83d3SAndroid Build Coastguard Worker        windows: {
46*e07d83d3SAndroid Build Coastguard Worker            enabled: true,
47*e07d83d3SAndroid Build Coastguard Worker        },
48*e07d83d3SAndroid Build Coastguard Worker    },
49*e07d83d3SAndroid Build Coastguard Worker}
50