BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 = "v2_proto",
  12. srcs = ["index.proto"],
  13. tags = ["automanaged"],
  14. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  15. )
  16. go_proto_library(
  17. name = "v2_go_proto",
  18. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  19. importpath = "go-common/app/interface/live/app-interface/api/http/v2",
  20. proto = ":v2_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 = ["index.bm.go"],
  27. embed = [":v2_go_proto"],
  28. importpath = "go-common/app/interface/live/app-interface/api/http/v2",
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. deps = [
  32. "//library/net/http/blademaster:go_default_library",
  33. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  34. "@com_github_gogo_protobuf//proto:go_default_library",
  35. ],
  36. )
  37. filegroup(
  38. name = "package-srcs",
  39. srcs = glob(["**"]),
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:private"],
  42. )
  43. filegroup(
  44. name = "all-srcs",
  45. srcs = [":package-srcs"],
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. )