BUILD 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. "archive_test.go",
  10. "audit_result_test.go",
  11. "dao_test.go",
  12. "full_test.go",
  13. "modules_test.go",
  14. "panel_test.go",
  15. "pgc_cond_test.go",
  16. "playurl_test.go",
  17. "region_test.go",
  18. "sear_inter_test.go",
  19. "upbfs_test.go",
  20. "upper_test.go",
  21. "user_test.go",
  22. ],
  23. embed = [":go_default_library"],
  24. rundir = ".",
  25. tags = ["automanaged"],
  26. deps = [
  27. "//app/admin/main/tv/conf:go_default_library",
  28. "//app/admin/main/tv/model:go_default_library",
  29. "//library/log:go_default_library",
  30. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  31. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  32. ],
  33. )
  34. go_library(
  35. name = "go_default_library",
  36. srcs = [
  37. "archive.go",
  38. "audit_result.go",
  39. "dao.go",
  40. "full.go",
  41. "mango.go",
  42. "modules.go",
  43. "panel.go",
  44. "pgc_cond.go",
  45. "playurl.go",
  46. "region.go",
  47. "sear_inter.go",
  48. "upbfs.go",
  49. "upper.go",
  50. "user.go",
  51. ],
  52. importpath = "go-common/app/admin/main/tv/dao",
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:public"],
  55. deps = [
  56. "//app/admin/main/tv/conf:go_default_library",
  57. "//app/admin/main/tv/model:go_default_library",
  58. "//library/cache/memcache:go_default_library",
  59. "//library/database/elastic:go_default_library",
  60. "//library/database/orm:go_default_library",
  61. "//library/ecode:go_default_library",
  62. "//library/log:go_default_library",
  63. "//library/net/http/blademaster:go_default_library",
  64. "//library/time:go_default_library",
  65. "//vendor/github.com/jinzhu/gorm:go_default_library",
  66. "//vendor/github.com/pkg/errors:go_default_library",
  67. ],
  68. )
  69. filegroup(
  70. name = "package-srcs",
  71. srcs = glob(["**"]),
  72. tags = ["automanaged"],
  73. visibility = ["//visibility:private"],
  74. )
  75. filegroup(
  76. name = "all-srcs",
  77. srcs = [":package-srcs"],
  78. tags = ["automanaged"],
  79. visibility = ["//visibility:public"],
  80. )