WORKSPACE 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. )