BUILD.bazel.in 703 B

1234567891011121314151617181920212223
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
  3. proto_library(
  4. name = "routeguide_proto",
  5. srcs = ["route_guide.proto"],
  6. visibility = ["//visibility:public"],
  7. )
  8. go_proto_library(
  9. name = "routeguide_go_proto",
  10. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  11. importpath = "google.golang.org/grpc/examples/route_guide/routeguide",
  12. proto = ":routeguide_proto",
  13. visibility = ["//visibility:public"],
  14. )
  15. go_library(
  16. name = "go_default_library",
  17. embed = [":routeguide_go_proto"],
  18. importpath = "google.golang.org/grpc/examples/route_guide/routeguide",
  19. visibility = ["//visibility:public"],
  20. )