Debian Codegraph @

examples/cpp/route_guide/BUILD

raw
1 # Copyright 2020 the 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
15 licenses(["notice"])
16
17 cc_library(
18 name = "route_guide_helper",
19 srcs = [
20 "helper.cc",
21 "helper.h",
22 ],
23 defines = ["BAZEL_BUILD"],
24 deps = [
25 "//:grpc++",
26 "//examples/protos:route_guide",
27 ],
28 )
29
30 cc_binary(
31 name = "route_guide_client",
32 srcs = [
33 "route_guide_client.cc",
34 ],
35 data = ["route_guide_db.json"],
36 defines = ["BAZEL_BUILD"],
37 deps = [
38 ":route_guide_helper",
39 "//:grpc++",
40 "//examples/protos:route_guide",
41 ],
42 )
43
44 cc_binary(
45 name = "route_guide_server",
46 srcs = [
47 "route_guide_server.cc",
48 ],
49 data = ["route_guide_db.json"],
50 defines = ["BAZEL_BUILD"],
51 deps = [
52 ":route_guide_helper",
53 "//:grpc++",
54 "//examples/protos:route_guide",
55 ],
56 )
57
58 cc_binary(
59 name = "route_guide_callback_client",
60 srcs = [
61 "route_guide_callback_client.cc",
62 ],
63 data = ["route_guide_db.json"],
64 defines = ["BAZEL_BUILD"],
65 deps = [
66 ":route_guide_helper",
67 "//:grpc++",
68 "//examples/protos:route_guide",
69 ],
70 )
71
72 cc_binary(
73 name = "route_guide_callback_server",
74 srcs = [
75 "route_guide_callback_server.cc",
76 ],
77 data = ["route_guide_db.json"],
78 defines = ["BAZEL_BUILD"],
79 deps = [
80 ":route_guide_helper",
81 "//:grpc++",
82 "//examples/protos:route_guide",
83 ],
84 )