BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. load(
  7. "@io_bazel_rules_go//proto:def.bzl",
  8. "go_proto_library",
  9. )
  10. go_library(
  11. name = "go_default_library",
  12. srcs = [
  13. "bigdata.go",
  14. "dynamic.go",
  15. "rpc.go",
  16. ],
  17. embed = [":model_go_proto"],
  18. importpath = "go-common/app/service/main/dynamic/model",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/service/main/archive/api:go_default_library",
  22. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  23. "@com_github_golang_protobuf//proto:go_default_library",
  24. ],
  25. )
  26. proto_library(
  27. name = "model_proto",
  28. srcs = ["dynamic.proto"],
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  32. )
  33. go_proto_library(
  34. name = "model_go_proto",
  35. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  36. importpath = "go-common/app/service/main/dynamic/model",
  37. proto = ":model_proto",
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  41. )
  42. filegroup(
  43. name = "package-srcs",
  44. srcs = glob(["**"]),
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:private"],
  47. )
  48. filegroup(
  49. name = "all-srcs",
  50. srcs = [":package-srcs"],
  51. tags = ["automanaged"],
  52. visibility = ["//visibility:public"],
  53. )