WORKSPACE 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  2. # This com_google_protobuf repository is required for proto_library rule.
  3. # It provides the protocol compiler binary (i.e., protoc).
  4. http_archive(
  5. name = "com_google_protobuf",
  6. strip_prefix = "protobuf-master",
  7. urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
  8. )
  9. # This com_google_protobuf_cc repository is required for cc_proto_library
  10. # rule. It provides protobuf C++ runtime. Note that it actually is the same
  11. # repo as com_google_protobuf but has to be given a different name as
  12. # required by bazel.
  13. http_archive(
  14. name = "com_google_protobuf_cc",
  15. strip_prefix = "protobuf-master",
  16. urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
  17. )
  18. # Similar to com_google_protobuf_cc but for Java (i.e., java_proto_library).
  19. http_archive(
  20. name = "com_google_protobuf_java",
  21. strip_prefix = "protobuf-master",
  22. urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
  23. )
  24. # Similar to com_google_protobuf_cc but for Java lite. If you are building
  25. # for Android, the lite version should be prefered because it has a much
  26. # smaller code size.
  27. http_archive(
  28. name = "com_google_protobuf_javalite",
  29. strip_prefix = "protobuf-javalite",
  30. urls = ["https://github.com/protocolbuffers/protobuf/archive/javalite.zip"],
  31. )
  32. http_archive(
  33. name = "bazel_skylib",
  34. sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
  35. strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
  36. urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
  37. )
  38. http_archive(
  39. name = "net_zlib",
  40. build_file = "//:third_party/zlib.BUILD",
  41. sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
  42. strip_prefix = "zlib-1.2.11",
  43. urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
  44. )
  45. bind(
  46. name = "zlib",
  47. actual = "@net_zlib//:zlib",
  48. )
  49. load("@bazel_skylib//lib:versions.bzl", "versions")
  50. versions.check(minimum_bazel_version = "0.5.4")