BUILD.bazel 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [],
  9. embed = [":log_go_proto"],
  10. importmap = "go-common/vendor/google.golang.org/appengine/internal/log",
  11. importpath = "google.golang.org/appengine/internal/log",
  12. tags = ["automanaged"],
  13. visibility = ["//vendor/google.golang.org/appengine:__subpackages__"],
  14. deps = ["@com_github_golang_protobuf//proto:go_default_library"],
  15. )
  16. proto_library(
  17. name = "log_proto",
  18. srcs = ["log_service.proto"],
  19. tags = ["automanaged"],
  20. )
  21. go_proto_library(
  22. name = "log_go_proto",
  23. compilers = ["@io_bazel_rules_go//proto:go_proto"],
  24. importpath = "go-common/vendor/google.golang.org/appengine/internal/log",
  25. proto = ":log_proto",
  26. tags = ["automanaged"],
  27. )
  28. filegroup(
  29. name = "package-srcs",
  30. srcs = glob(["**"]),
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:private"],
  33. )
  34. filegroup(
  35. name = "all-srcs",
  36. srcs = [":package-srcs"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )