• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15licenses(["notice"])
16
17cc_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        "@com_google_absl//absl/log",
28    ],
29)
30
31cc_binary(
32    name = "route_guide_client",
33    srcs = [
34        "route_guide_client.cc",
35    ],
36    data = ["route_guide_db.json"],
37    defines = ["BAZEL_BUILD"],
38    deps = [
39        ":route_guide_helper",
40        "//:grpc++",
41        "//examples/protos:route_guide",
42        "@com_google_absl//absl/flags:parse",
43    ],
44)
45
46cc_binary(
47    name = "route_guide_server",
48    srcs = [
49        "route_guide_server.cc",
50    ],
51    data = ["route_guide_db.json"],
52    defines = ["BAZEL_BUILD"],
53    deps = [
54        ":route_guide_helper",
55        "//:grpc++",
56        "//examples/protos:route_guide",
57        "@com_google_absl//absl/flags:parse",
58    ],
59)
60
61cc_binary(
62    name = "route_guide_callback_client",
63    srcs = [
64        "route_guide_callback_client.cc",
65    ],
66    data = ["route_guide_db.json"],
67    defines = ["BAZEL_BUILD"],
68    deps = [
69        ":route_guide_helper",
70        "//:grpc++",
71        "//examples/protos:route_guide",
72    ],
73)
74
75cc_binary(
76    name = "route_guide_callback_server",
77    srcs = [
78        "route_guide_callback_server.cc",
79    ],
80    data = ["route_guide_db.json"],
81    defines = ["BAZEL_BUILD"],
82    deps = [
83        ":route_guide_helper",
84        "//:grpc++",
85        "//examples/protos:route_guide",
86        "@com_google_absl//absl/flags:parse",
87        "@com_google_absl//absl/log",
88        "@com_google_absl//absl/log:globals",
89        "@com_google_absl//absl/log:initialize",
90    ],
91)
92