BUILD 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_test",
  4. "go_library",
  5. )
  6. go_test(
  7. name = "go_default_test",
  8. srcs = [
  9. "dao_test.go",
  10. "databus_test.go",
  11. "del_arc_test.go",
  12. "del_upper_test.go",
  13. "del_video_test.go",
  14. "delete_test.go",
  15. "import_test.go",
  16. "manual_test.go",
  17. "media_cache_test.go",
  18. "passed_test.go",
  19. "search_con_test.go",
  20. "sync_video_test.go",
  21. ],
  22. embed = [":go_default_library"],
  23. rundir = ".",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/job/main/tv/conf:go_default_library",
  27. "//app/job/main/tv/model/ugc:go_default_library",
  28. "//app/service/main/archive/api:go_default_library",
  29. "//library/database/sql:go_default_library",
  30. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  31. ],
  32. )
  33. go_library(
  34. name = "go_default_library",
  35. srcs = [
  36. "dao.go",
  37. "databus.go",
  38. "del_arc.go",
  39. "del_upper.go",
  40. "del_video.go",
  41. "delete.go",
  42. "import.go",
  43. "manual.go",
  44. "media_cache.go",
  45. "passed.go",
  46. "report_cid.go",
  47. "search_con.go",
  48. "sync_arc.go",
  49. "sync_video.go",
  50. ],
  51. importpath = "go-common/app/job/main/tv/dao/ugc",
  52. tags = ["automanaged"],
  53. visibility = ["//visibility:public"],
  54. deps = [
  55. "//app/job/main/tv/conf:go_default_library",
  56. "//app/job/main/tv/dao/app:go_default_library",
  57. "//app/job/main/tv/model/common:go_default_library",
  58. "//app/job/main/tv/model/pgc:go_default_library",
  59. "//app/job/main/tv/model/ugc:go_default_library",
  60. "//app/service/main/archive/api:go_default_library",
  61. "//library/cache/memcache:go_default_library",
  62. "//library/cache/redis:go_default_library",
  63. "//library/database/sql:go_default_library",
  64. "//library/ecode:go_default_library",
  65. "//library/log:go_default_library",
  66. "//library/net/http/blademaster:go_default_library",
  67. "//library/xstr: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. )