BUILD 1.9 KB

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