1# Copyright 2017 gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15licenses(["notice"])  # 3-clause BSD
16
17package(default_visibility = ["//visibility:public"])
18
19load("//bazel:grpc_build_system.bzl", "grpc_proto_library")
20
21grpc_proto_library(
22    name = "auth_sample",
23    srcs = ["protos/auth_sample.proto"],
24)
25
26grpc_proto_library(
27    name = "hellostreamingworld",
28    srcs = ["protos/hellostreamingworld.proto"],
29)
30
31grpc_proto_library(
32    name = "helloworld",
33    srcs = ["protos/helloworld.proto"],
34)
35
36grpc_proto_library(
37    name = "route_guide",
38    srcs = ["protos/route_guide.proto"],
39)
40
41cc_binary(
42    name = "greeter_client",
43    srcs = ["cpp/helloworld/greeter_client.cc"],
44    defines = ["BAZEL_BUILD"],
45    deps = [":helloworld", "//:grpc++"],
46)
47
48cc_binary(
49    name = "greeter_server",
50    srcs = ["cpp/helloworld/greeter_server.cc"],
51    defines = ["BAZEL_BUILD"],
52    deps = [":helloworld", "//:grpc++"],
53)
54