aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/BUILD
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2017-05-12 17:17:05 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2017-05-12 17:19:46 +0200
commitd2ac59f1aa90eae44049e9b93152e7b360762cce (patch)
tree0422111361f2a33cbdb215423c82f4eb83391ba7 /examples/BUILD
parentba54a1c95eb9dbcc236f36556352355596cb4e16 (diff)
Merge failure: mangled the examples BUILD file.
Diffstat (limited to 'examples/BUILD')
-rw-r--r--examples/BUILD30
1 files changed, 26 insertions, 4 deletions
diff --git a/examples/BUILD b/examples/BUILD
index c954d03c50..bd2d3c3150 100644
--- a/examples/BUILD
+++ b/examples/BUILD
@@ -29,16 +29,38 @@
package(default_visibility = ["//visibility:public"])
+load("//bazel:grpc_build_system.bzl", "grpc_proto_library")
+
+grpc_proto_library(
+ name = "auth_sample",
+ srcs = ["protos/auth_sample.proto"],
+)
+
+grpc_proto_library(
+ name = "hellostreamingworld",
+ srcs = ["protos/hellostreamingworld.proto"],
+)
+
+grpc_proto_library(
+ name = "helloworld",
+ srcs = ["protos/helloworld.proto"],
+)
+
+grpc_proto_library(
+ name = "route_guide",
+ srcs = ["protos/route_guide.proto"],
+)
+
cc_binary(
name = "greeter_client",
- srcs = ["greeter_client.cc"],
+ srcs = ["cpp/helloworld/greeter_client.cc"],
defines = ["BAZEL_BUILD"],
- deps = ["//examples/protos:helloworld"],
+ deps = [":helloworld"],
)
cc_binary(
name = "greeter_server",
- srcs = ["greeter_server.cc"],
+ srcs = ["cpp/helloworld/greeter_server.cc"],
defines = ["BAZEL_BUILD"],
- deps = ["//examples/protos:helloworld"],
+ deps = [":helloworld"],
)