WORKSPACE 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
  2. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  3. # rules_cc defines rules for generating C++ code from Protocol Buffers.
  4. http_archive(
  5. name = "rules_cc",
  6. sha256 = "35f2fb4ea0b3e61ad64a369de284e4fbbdcdba71836a5555abb5e194cf119509",
  7. strip_prefix = "rules_cc-624b5d59dfb45672d4239422fa1e3de1822ee110",
  8. urls = [
  9. "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.tar.gz",
  10. "https://github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.tar.gz",
  11. ],
  12. )
  13. load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies")
  14. rules_cc_dependencies()
  15. # rules_proto defines abstract rules for building Protocol Buffers.
  16. # https://github.com/bazelbuild/rules_proto
  17. http_archive(
  18. name = "rules_proto",
  19. sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
  20. strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
  21. urls = [
  22. "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
  23. "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
  24. ],
  25. )
  26. load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
  27. rules_proto_dependencies()
  28. rules_proto_toolchains()
  29. # Install gtest.
  30. git_repository(
  31. name = "com_github_google_googletest",
  32. commit = "703bd9caab50b139428cea1aaff9974ebee5742e", # tag = "release-1.10.0"
  33. remote = "https://github.com/google/googletest.git",
  34. shallow_since = "1570114335 -0400",
  35. )
  36. # abseil-cpp
  37. http_archive(
  38. name = "com_google_absl",
  39. sha256 = "728a813291bdec2aa46eab8356ace9f75ac2ed9dfe2df5ab603c4e6c09f1c353",
  40. strip_prefix = "abseil-cpp-20200225",
  41. urls = [
  42. "https://github.com/abseil/abseil-cpp/archive/20200225.tar.gz",
  43. ],
  44. )
  45. # BoringSSL
  46. git_repository(
  47. name = "boringssl",
  48. commit = "67ffb9606462a1897d3a5edf5c06d329878ba600", # https://boringssl.googlesource.com/boringssl/+/refs/heads/master-with-bazel
  49. remote = "https://boringssl.googlesource.com/boringssl",
  50. shallow_since = "1585767053 +0000"
  51. )
  52. # Logging
  53. http_archive(
  54. name = "com_github_google_glog",
  55. urls = ["https://github.com/google/glog/archive/96a2f23dca4cc7180821ca5f32e526314395d26a.zip"],
  56. strip_prefix = "glog-96a2f23dca4cc7180821ca5f32e526314395d26a",
  57. sha256 = "6281aa4eeecb9e932d7091f99872e7b26fa6aacece49c15ce5b14af2b7ec050f",
  58. )
  59. # gflags, needed for glog
  60. http_archive(
  61. name = "com_github_gflags_gflags",
  62. urls = ["https://github.com/gflags/gflags/archive/v2.2.2.tar.gz"],
  63. sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf",
  64. strip_prefix = "gflags-2.2.2",
  65. )