WORKSPACE 964 B

12345678910111213141516171819202122232425262728293031
  1. workspace(name = "com_google_protobuf_examples")
  2. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  3. # This com_google_protobuf repository is required for proto_library rule.
  4. # It provides the protocol compiler binary (i.e., protoc).
  5. #
  6. # We declare it as local_repository so we can test changes
  7. # before they get merged. You'll want to use the following instead:
  8. #
  9. # http_archive(
  10. # name = "com_google_protobuf",
  11. # strip_prefix = "protobuf-master",
  12. # urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
  13. # )
  14. local_repository(
  15. name = "com_google_protobuf",
  16. path = "..",
  17. )
  18. # Similar to com_google_protobuf but for Java lite. If you are building
  19. # for Android, the lite version should be preferred because it has a much
  20. # smaller code size.
  21. local_repository(
  22. name = "com_google_protobuf_javalite",
  23. path = "..",
  24. )
  25. load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
  26. protobuf_deps()