Revert "Upgrade NodeJS binary to v16.13.0"
[platform/framework/web/chromium-efl.git] / third_party / grpc-java / grpc_java_library.gni
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.
4
5 # Compile a java grpc service.
6 #
7 # Example:
8 #  grpc_java_library("mylib") {
9 #    sources = [
10 #      "foo.proto",
11 #    ]
12 #  }
13
14 import("//build/config/android/rules.gni")
15
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)) {
24       deps += invoker.deps
25     }
26   }
27 }