WORKSPACE 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. workspace(name = "com_google_protobuf")
  2. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  3. local_repository(
  4. name = "com_google_protobuf_examples",
  5. path = "examples",
  6. )
  7. http_archive(
  8. name = "com_google_googletest",
  9. sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
  10. strip_prefix = "googletest-release-1.10.0",
  11. urls = [
  12. "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
  13. "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
  14. ],
  15. )
  16. http_archive(
  17. name = "com_github_google_benchmark",
  18. sha256 = "2a778d821997df7d8646c9c59b8edb9a573a6e04c534c01892a40aa524a7b68c",
  19. strip_prefix = "benchmark-bf585a2789e30585b4e3ce6baf11ef2750b54677",
  20. urls = [
  21. "https://github.com/google/benchmark/archive/bf585a2789e30585b4e3ce6baf11ef2750b54677.zip",
  22. ],
  23. )
  24. # Load common dependencies.
  25. load("//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS", "protobuf_deps")
  26. protobuf_deps()
  27. bind(
  28. name = "python_headers",
  29. actual = "//util/python:python_headers",
  30. )
  31. load("@rules_jvm_external//:defs.bzl", "maven_install")
  32. maven_install(
  33. artifacts = PROTOBUF_MAVEN_ARTIFACTS,
  34. # For updating instructions, see:
  35. # https://github.com/bazelbuild/rules_jvm_external#updating-maven_installjson
  36. maven_install_json = "//:maven_install.json",
  37. repositories = [
  38. "https://repo1.maven.org/maven2",
  39. "https://repo.maven.apache.org/maven2",
  40. ],
  41. )
  42. load("@maven//:defs.bzl", "pinned_maven_install")
  43. pinned_maven_install()
  44. # For `cc_proto_blacklist_test` and `build_test`.
  45. load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
  46. bazel_skylib_workspace()
  47. load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
  48. rules_pkg_dependencies()
  49. # For `kt_jvm_library`
  50. load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
  51. kotlin_repositories()
  52. load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
  53. kt_register_toolchains()