BUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. go_library(
  11. name = "go_default_library",
  12. srcs = ["archive.go"],
  13. embed = [":archive_go_proto"],
  14. importpath = "go-common/app/interface/main/app-player/model/archive",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = ["@com_github_golang_protobuf//proto:go_default_library"],
  18. )
  19. filegroup(
  20. name = "package-srcs",
  21. srcs = glob(["**"]),
  22. tags = ["automanaged"],
  23. visibility = ["//visibility:private"],
  24. )
  25. filegroup(
  26. name = "all-srcs",
  27. srcs = [":package-srcs"],
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. )
  31. proto_library(
  32. name = "archive_proto",
  33. srcs = ["model.proto"],
  34. tags = ["automanaged"],
  35. )
  36. go_proto_library(
  37. name = "archive_go_proto",
  38. compilers = ["@io_bazel_rules_go//proto:go_proto"],
  39. importpath = "go-common/app/interface/main/app-player/model/archive",
  40. proto = ":archive_proto",
  41. tags = ["automanaged"],
  42. )