blob: 0f18cfa9ba721dad289ec2aa488a44bd29a992e1 [file] [log] [blame]
Jan Tattermusch7897ae92017-06-07 22:57:36 +02001# Copyright 2017 gRPC authors.
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +01002#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003# 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
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +01006#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02007# http://www.apache.org/licenses/LICENSE-2.0
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +01008#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009# 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.
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +010014
Craig Tillera7533712017-05-16 13:09:33 -070015licenses(["notice"]) # 3-clause BSD
16
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +010017package(default_visibility = ["//visibility:public"])
18
Nicolas "Pixel" Nobled2ac59f2017-05-12 17:17:05 +020019load("//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
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +010041cc_binary(
42 name = "greeter_client",
Nicolas "Pixel" Nobled2ac59f2017-05-12 17:17:05 +020043 srcs = ["cpp/helloworld/greeter_client.cc"],
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +010044 defines = ["BAZEL_BUILD"],
Vijay Paidd0f0062017-11-28 11:53:55 -080045 deps = [":helloworld", "//:grpc++"],
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +010046)
47
48cc_binary(
49 name = "greeter_server",
Nicolas "Pixel" Nobled2ac59f2017-05-12 17:17:05 +020050 srcs = ["cpp/helloworld/greeter_server.cc"],
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +010051 defines = ["BAZEL_BUILD"],
Vijay Paidd0f0062017-11-28 11:53:55 -080052 deps = [":helloworld", "//:grpc++"],
Nicolas "Pixel" Noble24263c32017-01-11 01:03:09 +010053)