BUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 = ["service.bm.go"],
  13. embed = [":v1_go_proto"],
  14. importpath = "go-common/app/interface/live/web-ucenter/api/http/v1",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//library/net/http/blademaster:go_default_library",
  19. "//library/net/http/blademaster/binding:go_default_library",
  20. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  21. "@com_github_gogo_protobuf//proto:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [":package-srcs"],
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:public"],
  35. )
  36. proto_library(
  37. name = "v1_proto",
  38. srcs = ["service.proto"],
  39. tags = ["automanaged"],
  40. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  41. )
  42. go_proto_library(
  43. name = "v1_go_proto",
  44. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  45. importpath = "go-common/app/interface/live/web-ucenter/api/http/v1",
  46. proto = ":v1_proto",
  47. tags = ["automanaged"],
  48. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  49. )