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.
5 # Compile a java grpc service.
8 # grpc_java_library("mylib") {
14 import("//build/config/android/rules.gni")
16 template("grpc_java_library") {
17 assert(defined(invoker.sources), "Need sources for proto_library")
18 proto_java_library(target_name) {
19 forward_variables_from(invoker, "*", TESTONLY_AND_VISIBILITY + [ "deps" ])
20 forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
21 generator_plugin_label = "//third_party/grpc-java:grpc_java_plugin"
22 deps = [ "//third_party/grpc-java:grpc_runtime_java" ]
23 if (defined(invoker.deps)) {