BUILD.bazel 978 B

12345678910111213141516171819202122232425262728293031323334353637
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "oauth2.go",
  6. "token.go",
  7. "transport.go",
  8. ],
  9. importmap = "go-common/vendor/golang.org/x/oauth2",
  10. importpath = "golang.org/x/oauth2",
  11. visibility = ["//visibility:public"],
  12. deps = [
  13. "//vendor/golang.org/x/oauth2/internal:go_default_library",
  14. "@org_golang_x_net//context:go_default_library",
  15. ],
  16. )
  17. filegroup(
  18. name = "package-srcs",
  19. srcs = glob(["**"]),
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:private"],
  22. )
  23. filegroup(
  24. name = "all-srcs",
  25. srcs = [
  26. ":package-srcs",
  27. "//vendor/golang.org/x/oauth2/google:all-srcs",
  28. "//vendor/golang.org/x/oauth2/internal:all-srcs",
  29. "//vendor/golang.org/x/oauth2/jws:all-srcs",
  30. "//vendor/golang.org/x/oauth2/jwt:all-srcs",
  31. ],
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:public"],
  34. )