1 # Copyright 2022 Google Inc. All Rights Reserved.
2 # Use of this source code is governed by a BSD - style license that can be
3 # found in the LICENSE file.
6 import("//build/config/android/rules.gni")
7 java_group("grpc_runtime_java") {
9 "//third_party/android_deps:com_google_guava_listenablefuture_java",
10 "//third_party/android_deps:io_grpc_grpc_api_java",
11 "//third_party/android_deps:io_grpc_grpc_protobuf_lite_java",
12 "//third_party/android_deps:io_grpc_grpc_stub_java",
13 "//third_party/android_deps:javax_annotation_javax_annotation_api_java",
18 # Only compile the plugin for the host architecture.
19 if (current_toolchain == host_toolchain) {
20 config("grpc_java_plugin_internal_config") {
21 cflags = [ "-Wno-implicit-fallthrough" ]
23 executable("grpc_java_plugin") {
25 "compiler_plugin/java_generator.cpp",
26 "compiler_plugin/java_generator.h",
27 "compiler_plugin/java_plugin.cpp",
29 deps = [ "//third_party/protobuf:protoc_lib" ]
31 "//third_party/protobuf:protobuf_config",
32 ":grpc_java_plugin_internal_config",