BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. "appUcenter.bm.go",
  14. "service.bm.go",
  15. ],
  16. embed = [":v1_go_proto"],
  17. importpath = "go-common/app/interface/live/app-ucenter/api/http/v1",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//library/net/http/blademaster:go_default_library",
  22. "//library/net/http/blademaster/binding:go_default_library",
  23. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  24. "@com_github_gogo_protobuf//proto: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 = [":package-srcs"],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )
  39. proto_library(
  40. name = "v1_proto",
  41. srcs = [
  42. "appUcenter.proto",
  43. "service.proto",
  44. ],
  45. tags = ["automanaged"],
  46. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  47. )
  48. go_proto_library(
  49. name = "v1_go_proto",
  50. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  51. importpath = "go-common/app/interface/live/app-ucenter/api/http/v1",
  52. proto = ":v1_proto",
  53. tags = ["automanaged"],
  54. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  55. )