BUILD 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "addit_test.go",
  11. "archive_biz_test.go",
  12. "archive_test.go",
  13. "arhive_history_test.go",
  14. "config_test.go",
  15. "dao_test.go",
  16. "video_test.go",
  17. ],
  18. embed = [":go_default_library"],
  19. rundir = ".",
  20. tags = ["automanaged"],
  21. deps = [
  22. "//app/job/main/videoup/conf:go_default_library",
  23. "//app/job/main/videoup/model/archive:go_default_library",
  24. "//library/database/sql:go_default_library",
  25. "//vendor/github.com/bouk/monkey:go_default_library",
  26. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  27. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  28. ],
  29. )
  30. go_library(
  31. name = "go_default_library",
  32. srcs = [
  33. "addit.go",
  34. "archive.go",
  35. "archive_biz.go",
  36. "archive_history.go",
  37. "config.go",
  38. "cover.go",
  39. "dao.go",
  40. "databus.go",
  41. "delay.go",
  42. "first_pass.go",
  43. "forbid.go",
  44. "new_video.go",
  45. "oper.go",
  46. "staff.go",
  47. "stat.go",
  48. "type.go",
  49. "video.go",
  50. "video_audit.go",
  51. "video_cover.go",
  52. "video_oper.go",
  53. "video_shot.go",
  54. ],
  55. importpath = "go-common/app/job/main/videoup/dao/archive",
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:public"],
  58. deps = [
  59. "//app/job/main/videoup/conf:go_default_library",
  60. "//app/job/main/videoup/model/archive:go_default_library",
  61. "//library/cache/redis:go_default_library",
  62. "//library/database/sql:go_default_library",
  63. "//library/ecode:go_default_library",
  64. "//library/log:go_default_library",
  65. "//library/net/http/blademaster:go_default_library",
  66. "//library/xstr:go_default_library",
  67. "//vendor/github.com/dgryski/go-farm:go_default_library",
  68. ],
  69. )
  70. filegroup(
  71. name = "package-srcs",
  72. srcs = glob(["**"]),
  73. tags = ["automanaged"],
  74. visibility = ["//visibility:private"],
  75. )
  76. filegroup(
  77. name = "all-srcs",
  78. srcs = [":package-srcs"],
  79. tags = ["automanaged"],
  80. visibility = ["//visibility:public"],
  81. )