BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. go_library(
  11. name = "go_default_library",
  12. srcs = [
  13. "associate.go",
  14. "coupon.go",
  15. "databus.go",
  16. "handler.go",
  17. "http.go",
  18. "model.go",
  19. "oldVip.go",
  20. "query.go",
  21. "vip.go",
  22. ],
  23. embed = [":model_go_proto"],
  24. importpath = "go-common/app/job/main/vip/model",
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:public"],
  27. deps = [
  28. "//library/time:go_default_library",
  29. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  30. "@com_github_golang_protobuf//proto:go_default_library",
  31. ],
  32. )
  33. filegroup(
  34. name = "package-srcs",
  35. srcs = glob(["**"]),
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:private"],
  38. )
  39. filegroup(
  40. name = "all-srcs",
  41. srcs = [":package-srcs"],
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. )
  45. proto_library(
  46. name = "model_proto",
  47. srcs = ["vip.proto"],
  48. tags = ["automanaged"],
  49. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  50. )
  51. go_proto_library(
  52. name = "model_go_proto",
  53. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  54. importpath = "go-common/app/job/main/vip/model",
  55. proto = ":model_proto",
  56. tags = ["automanaged"],
  57. deps = [
  58. "//library/time:go_default_library",
  59. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  60. ],
  61. )