BUILD.bazel.in 736 B

123456789101112131415161718192021222324
  1. load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = ["main.go"],
  5. importpath = "google.golang.org/grpc/examples/oauth/server",
  6. visibility = ["//visibility:private"],
  7. deps = [
  8. "//:go_default_library",
  9. "//codes:go_default_library",
  10. "//credentials:go_default_library",
  11. "//examples/helloworld/helloworld:go_default_library",
  12. "//metadata:go_default_library",
  13. "//status:go_default_library",
  14. "//testdata:go_default_library",
  15. "@org_golang_x_net//context:go_default_library",
  16. ],
  17. )
  18. go_binary(
  19. name = "server",
  20. embed = [":go_default_library"],
  21. visibility = ["//visibility:public"],
  22. )