BUILD 1.5 KB

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