BUILD 1.6 KB

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