BUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. "adv_danmu.go",
  11. "assist.go",
  12. "dao.go",
  13. "dm.go",
  14. "protect.go",
  15. "report.go",
  16. ],
  17. importpath = "go-common/app/interface/main/creative/dao/danmu",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/interface/main/creative/conf:go_default_library",
  22. "//app/interface/main/creative/dao/tool:go_default_library",
  23. "//app/interface/main/creative/model/danmu:go_default_library",
  24. "//app/interface/main/dm/model:go_default_library",
  25. "//library/ecode:go_default_library",
  26. "//library/log:go_default_library",
  27. "//library/net/http/blademaster:go_default_library",
  28. "//library/xstr:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [":package-srcs"],
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. )
  43. go_test(
  44. name = "go_default_test",
  45. srcs = [
  46. "adv_danmu_test.go",
  47. "assist_test.go",
  48. "dao_test.go",
  49. "dm_test.go",
  50. "protect_test.go",
  51. "report_test.go",
  52. ],
  53. embed = [":go_default_library"],
  54. rundir = ".",
  55. tags = ["automanaged"],
  56. deps = [
  57. "//app/interface/main/creative/conf:go_default_library",
  58. "//app/interface/main/creative/model/danmu:go_default_library",
  59. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  60. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  61. ],
  62. )