xref: /aosp_15_r20/external/grpc-grpc-java/compiler/Android.bp (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1*e07d83d3SAndroid Build Coastguard Worker// Copyright (C) 2020 The Android Open Source Project
2*e07d83d3SAndroid Build Coastguard Worker//
3*e07d83d3SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*e07d83d3SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*e07d83d3SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*e07d83d3SAndroid Build Coastguard Worker//
7*e07d83d3SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*e07d83d3SAndroid Build Coastguard Worker//
9*e07d83d3SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*e07d83d3SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*e07d83d3SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*e07d83d3SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*e07d83d3SAndroid Build Coastguard Worker// limitations under the License.
14*e07d83d3SAndroid Build Coastguard Worker//
15*e07d83d3SAndroid Build Coastguard Worker//
16*e07d83d3SAndroid Build Coastguard Worker
17*e07d83d3SAndroid Build Coastguard Workerpackage {
18*e07d83d3SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
19*e07d83d3SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
20*e07d83d3SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_grpc-grpc-java_license"
21*e07d83d3SAndroid Build Coastguard Worker    // to get the below license kinds:
22*e07d83d3SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
23*e07d83d3SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_grpc-grpc-java_license"],
24*e07d83d3SAndroid Build Coastguard Worker}
25*e07d83d3SAndroid Build Coastguard Worker
26*e07d83d3SAndroid Build Coastguard Workercc_binary_host {
27*e07d83d3SAndroid Build Coastguard Worker    name: "protoc-gen-grpc-java-plugin",
28*e07d83d3SAndroid Build Coastguard Worker    srcs: [
29*e07d83d3SAndroid Build Coastguard Worker        "src/java_plugin/cpp/java_generator.cpp",
30*e07d83d3SAndroid Build Coastguard Worker        "src/java_plugin/cpp/java_plugin.cpp",
31*e07d83d3SAndroid Build Coastguard Worker    ],
32*e07d83d3SAndroid Build Coastguard Worker    static_libs: [
33*e07d83d3SAndroid Build Coastguard Worker        "libprotoc",
34*e07d83d3SAndroid Build Coastguard Worker    ],
35*e07d83d3SAndroid Build Coastguard Worker    cflags: [
36*e07d83d3SAndroid Build Coastguard Worker        "-Wno-unused-parameter",
37*e07d83d3SAndroid Build Coastguard Worker        "-DFALLTHROUGH_INTENDED=[[fallthrough]]",
38*e07d83d3SAndroid Build Coastguard Worker    ],
39*e07d83d3SAndroid Build Coastguard Worker}
40