BUILD.bazel 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. )
  5. load(
  6. "@io_bazel_rules_go//proto:def.bzl",
  7. "go_proto_library",
  8. )
  9. proto_library(
  10. name = "tests_proto",
  11. srcs = ["test.proto"],
  12. tags = ["automanaged"],
  13. visibility = ["//visibility:public"],
  14. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  15. )
  16. go_proto_library(
  17. name = "tests_go_proto",
  18. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  19. importpath = "go-common/library/net/http/blademaster/tests",
  20. proto = ":tests_proto",
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:public"],
  23. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  24. )
  25. go_library(
  26. name = "go_default_library",
  27. srcs = [],
  28. embed = [":tests_go_proto"],
  29. importpath = "go-common/library/net/http/blademaster/tests",
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. deps = [
  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. )