WORKSPACE 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
  39. protobuf_deps()
  40. load("@bazel_skylib//lib:versions.bzl", "versions")
  41. versions.check(minimum_bazel_version = "0.5.4")