BUILD.bazel 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "helpers.go",
  6. "raw.go",
  7. ],
  8. importmap = "go-common/vendor/github.com/mailru/easyjson",
  9. importpath = "github.com/mailru/easyjson",
  10. visibility = ["//visibility:public"],
  11. deps = [
  12. "//vendor/github.com/mailru/easyjson/jlexer:go_default_library",
  13. "//vendor/github.com/mailru/easyjson/jwriter:go_default_library",
  14. ],
  15. )
  16. filegroup(
  17. name = "package-srcs",
  18. srcs = glob(["**"]),
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:private"],
  21. )
  22. filegroup(
  23. name = "all-srcs",
  24. srcs = [
  25. ":package-srcs",
  26. "//vendor/github.com/mailru/easyjson/benchmark:all-srcs",
  27. "//vendor/github.com/mailru/easyjson/bootstrap:all-srcs",
  28. "//vendor/github.com/mailru/easyjson/buffer:all-srcs",
  29. "//vendor/github.com/mailru/easyjson/easyjson:all-srcs",
  30. "//vendor/github.com/mailru/easyjson/gen:all-srcs",
  31. "//vendor/github.com/mailru/easyjson/jlexer:all-srcs",
  32. "//vendor/github.com/mailru/easyjson/jwriter:all-srcs",
  33. "//vendor/github.com/mailru/easyjson/opt:all-srcs",
  34. "//vendor/github.com/mailru/easyjson/parser:all-srcs",
  35. ],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )