BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "business_test.go",
  11. "dao_test.go",
  12. "mc_test.go",
  13. "permit_test.go",
  14. "reason_test.go",
  15. "tag_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/admin/main/manager/conf:go_default_library",
  22. "//app/admin/main/manager/model:go_default_library",
  23. "//library/ecode:go_default_library",
  24. "//library/net/http/blademaster/middleware/permit:go_default_library",
  25. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  26. ],
  27. )
  28. go_library(
  29. name = "go_default_library",
  30. srcs = [
  31. "business.go",
  32. "dao.go",
  33. "journal.go",
  34. "mc.go",
  35. "permit.go",
  36. "reason.go",
  37. "tag.go",
  38. ],
  39. importpath = "go-common/app/admin/main/manager/dao",
  40. tags = ["automanaged"],
  41. deps = [
  42. "//app/admin/main/manager/conf:go_default_library",
  43. "//app/admin/main/manager/model:go_default_library",
  44. "//library/cache/memcache:go_default_library",
  45. "//library/database/orm:go_default_library",
  46. "//library/ecode:go_default_library",
  47. "//library/log:go_default_library",
  48. "//library/net/http/blademaster:go_default_library",
  49. "//library/net/http/blademaster/middleware/permit:go_default_library",
  50. "//vendor/github.com/jinzhu/gorm:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [":package-srcs"],
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. )