WORKSPACE 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. load("@com_google_protobuf//:protobuf.bzl", "check_protobuf_required_bazel_version")
  9. check_protobuf_required_bazel_version()
  10. # This com_google_protobuf_cc repository is required for cc_proto_library
  11. # rule. It provides protobuf C++ runtime. Note that it actually is the same
  12. # repo as com_google_protobuf but has to be given a different name as
  13. # required by bazel.
  14. http_archive(
  15. name = "com_google_protobuf_cc",
  16. strip_prefix = "protobuf-master",
  17. urls = ["https://github.com/google/protobuf/archive/master.zip"],
  18. )
  19. # Similar to com_google_protobuf_cc but for Java (i.e., java_proto_library).
  20. http_archive(
  21. name = "com_google_protobuf_java",
  22. strip_prefix = "protobuf-master",
  23. urls = ["https://github.com/google/protobuf/archive/master.zip"],
  24. )
  25. # Similar to com_google_protobuf_cc but for Java lite. If you are building
  26. # for Android, the lite version should be prefered because it has a much
  27. # smaller code size.
  28. http_archive(
  29. name = "com_google_protobuf_javalite",
  30. strip_prefix = "protobuf-javalite",
  31. urls = ["https://github.com/google/protobuf/archive/javalite.zip"],
  32. )