WORKSPACE 1.6 KB

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