BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. "engine.go",
  11. "log.go",
  12. "report.go",
  13. ],
  14. importpath = "go-common/app/admin/main/aegis/model",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/admin/main/aegis/model/common:go_default_library",
  19. "//app/admin/main/aegis/model/net:go_default_library",
  20. "//app/admin/main/aegis/model/resource:go_default_library",
  21. "//app/admin/main/aegis/model/task:go_default_library",
  22. "//app/service/main/account/api:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/time:go_default_library",
  25. ],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [
  36. ":package-srcs",
  37. "//app/admin/main/aegis/model/business:all-srcs",
  38. "//app/admin/main/aegis/model/common:all-srcs",
  39. "//app/admin/main/aegis/model/databus:all-srcs",
  40. "//app/admin/main/aegis/model/middleware:all-srcs",
  41. "//app/admin/main/aegis/model/monitor:all-srcs",
  42. "//app/admin/main/aegis/model/net:all-srcs",
  43. "//app/admin/main/aegis/model/resource:all-srcs",
  44. "//app/admin/main/aegis/model/svg:all-srcs",
  45. "//app/admin/main/aegis/model/task:all-srcs",
  46. ],
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:public"],
  49. )
  50. go_test(
  51. name = "go_default_test",
  52. srcs = ["model_test.go"],
  53. embed = [":go_default_library"],
  54. rundir = ".",
  55. tags = ["automanaged"],
  56. deps = [
  57. "//app/admin/main/aegis/model/common:go_default_library",
  58. "//app/admin/main/aegis/model/resource:go_default_library",
  59. "//library/time:go_default_library",
  60. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  61. ],
  62. )