BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. "cache.go",
  11. "tag.go",
  12. "video_types.go",
  13. ],
  14. importpath = "go-common/app/interface/main/mcn/dao/cache",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/interface/main/creative/model/tag:go_default_library",
  19. "//app/interface/main/mcn/conf:go_default_library",
  20. "//app/service/main/videoup/model/archive:go_default_library",
  21. "//library/log:go_default_library",
  22. "//library/net/http/blademaster:go_default_library",
  23. ],
  24. )
  25. filegroup(
  26. name = "package-srcs",
  27. srcs = glob(["**"]),
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:private"],
  30. )
  31. filegroup(
  32. name = "all-srcs",
  33. srcs = [":package-srcs"],
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. )
  37. go_test(
  38. name = "go_default_test",
  39. srcs = [
  40. "cache_test.go",
  41. "tag_test.go",
  42. "video_types_test.go",
  43. ],
  44. embed = [":go_default_library"],
  45. rundir = ".",
  46. tags = ["automanaged"],
  47. deps = [
  48. "//app/interface/main/creative/model/tag:go_default_library",
  49. "//app/interface/main/mcn/conf:go_default_library",
  50. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  51. ],
  52. )