BUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "archive.go",
  11. "archive_state.go",
  12. "biz_poi.go",
  13. "biz_vote.go",
  14. "desc_format.go",
  15. "flow.go",
  16. "forbid.go",
  17. "history.go",
  18. "msg.go",
  19. "param.go",
  20. "porder.go",
  21. "report.go",
  22. "staff.go",
  23. "video.go",
  24. ],
  25. importpath = "go-common/app/service/main/videoup/model/archive",
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:public"],
  28. deps = [
  29. "//library/log:go_default_library",
  30. "//library/time:go_default_library",
  31. ],
  32. )
  33. filegroup(
  34. name = "package-srcs",
  35. srcs = glob(["**"]),
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:private"],
  38. )
  39. filegroup(
  40. name = "all-srcs",
  41. srcs = [":package-srcs"],
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. )
  45. go_test(
  46. name = "go_default_test",
  47. srcs = ["video_test.go"],
  48. embed = [":go_default_library"],
  49. rundir = ".",
  50. tags = ["automanaged"],
  51. )