aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/grpc/BUILD
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-11-28 14:10:15 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-11-28 15:30:13 +0000
commite99df0affeeea3cce6d2b2906244a166e0b00dde (patch)
tree62ada3a28424337bcd824f5a4fcc6439fb68aa21 /third_party/grpc/BUILD
parent3b89d2d82b87b253bb29972361880e471f13f8ac (diff)
Compile grpc-java from source
...instead of using checked-in binaries. Also update the update instructions accordingly. -- Change-Id: I5a52abbdc1c34883d179b4559064c464b958714f Reviewed-on: https://cr.bazel.build/6831 MOS_MIGRATED_REVID=140348730
Diffstat (limited to 'third_party/grpc/BUILD')
-rw-r--r--third_party/grpc/BUILD21
1 files changed, 8 insertions, 13 deletions
diff --git a/third_party/grpc/BUILD b/third_party/grpc/BUILD
index 1ed06b154e..386813e52e 100644
--- a/third_party/grpc/BUILD
+++ b/third_party/grpc/BUILD
@@ -19,20 +19,15 @@ java_import(
runtime_deps = ["//third_party:netty"],
)
-filegroup(
+cc_binary(
name = "grpc-java-plugin",
- srcs = select({
- "//third_party:windows_mingw": ["protoc-gen-grpc-java-0.15.0-windows-x86_32.exe"],
- "//third_party:windows_msys64_mingw64": ["protoc-gen-grpc-java-0.15.0-windows-x86_64.exe"],
- "//third_party:windows_msys64": ["protoc-gen-grpc-java-0.15.0-windows-x86_64.exe"],
- "//third_party:windows_clang": ["protoc-gen-grpc-java-0.15.0-windows-x86_64.exe"],
- "//third_party:darwin": ["protoc-gen-grpc-java-0.15.0-osx-x86_64.exe"],
- "//third_party:k8": ["protoc-gen-grpc-java-0.15.0-linux-x86_64.exe"],
- "//third_party:piii": ["protoc-gen-grpc-java-0.15.0-linux-x86_32.exe"],
- "//third_party:arm": ["protoc-gen-grpc-java-0.15.0-linux-x86_32.exe"],
- "//third_party:freebsd": ["protoc-gen-grpc-java-0.15.0-linux-x86_32.exe"],
- "//third_party:s390x": ["protoc-gen-grpc-java-0.15.0-linux-s390x_64.exe"],
- }),
+ srcs = [
+ "compiler/src/java_plugin/cpp/java_generator.cpp",
+ "compiler/src/java_plugin/cpp/java_generator.h",
+ "compiler/src/java_plugin/cpp/java_plugin.cpp",
+ ],
+ copts = ["-w"],
+ deps = ["//third_party/protobuf:protoc_lib"],
)
cc_binary(