BUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. load(
  7. "@io_bazel_rules_go//proto:def.bzl",
  8. "go_proto_library",
  9. )
  10. proto_library(
  11. name = "model_proto",
  12. srcs = ["dm.proto"],
  13. tags = ["automanaged"],
  14. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  15. )
  16. go_proto_library(
  17. name = "model_go_proto",
  18. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  19. importpath = "go-common/app/job/main/dm2/model",
  20. proto = ":model_proto",
  21. tags = ["manual"],
  22. deps = [
  23. "//library/time:go_default_library",
  24. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "action.go",
  31. "bnj.go",
  32. "dm.go",
  33. "dm_seg.go",
  34. "dm_special.go",
  35. "rank_list.go",
  36. "report.go",
  37. "subject.go",
  38. "subtitle.go",
  39. "task.go",
  40. "transfer.go",
  41. "videoup.go",
  42. ],
  43. embed = [":model_go_proto"],
  44. importpath = "go-common/app/job/main/dm2/model",
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. deps = [
  48. "//library/time:go_default_library",
  49. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  50. "@com_github_gogo_protobuf//proto:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [
  62. ":package-srcs",
  63. "//app/job/main/dm2/model/oplog:all-srcs",
  64. ],
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:public"],
  67. )