-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
BUILD.bazel
56 lines (51 loc) · 1.53 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//:java_grpc_library.bzl", "java_rpc_toolchain")
# This should not generally be referenced. Users should use java_grpc_library
cc_binary(
name = "grpc_java_plugin",
srcs = [
"src/java_plugin/cpp/java_generator.cpp",
"src/java_plugin/cpp/java_generator.h",
"src/java_plugin/cpp/java_plugin.cpp",
],
visibility = ["//visibility:public"],
deps = [
"@com_google_protobuf//:protoc_lib",
],
)
java_library(
name = "java_grpc_library_deps__do_not_reference",
exports = [
"//api",
"//protobuf",
"//stub",
"//stub:javax_annotation",
"@com_google_code_findbugs_jsr305//jar",
"@com_google_guava_guava//jar",
"@com_google_protobuf//:protobuf_java",
],
)
java_library(
name = "java_lite_grpc_library_deps__do_not_reference",
exports = [
"//api",
"//protobuf-lite",
"//stub",
"//stub:javax_annotation",
"@com_google_code_findbugs_jsr305//jar",
"@com_google_guava_guava//jar",
],
)
java_rpc_toolchain(
name = "java_grpc_library_toolchain",
plugin = "//compiler:grpc_java_plugin",
runtime = [":java_grpc_library_deps__do_not_reference"],
visibility = ["//visibility:public"],
)
java_rpc_toolchain(
name = "java_lite_grpc_library_toolchain",
plugin = "//compiler:grpc_java_plugin",
plugin_arg = "lite",
runtime = [":java_lite_grpc_library_deps__do_not_reference"],
visibility = ["//visibility:public"],
)