tree: adbeea52ad8f4e2a4fd96060248c313138cf403f [path history] [tgz]
  1. python/
  2. src/
  3. BUILD
  4. LICENSE
  5. msys-protobuf-10.dll
  6. msys-protobuf-lite-10.dll
  7. msys-protoc-10.dll
  8. protobuf-java-3.0.0-beta-1.jar
  9. protobuf.bzl
  10. protoc-linux-x86_32.exe
  11. protoc-linux-x86_64.exe
  12. protoc-mingw.exe
  13. protoc-osx-x86_32.exe
  14. protoc-osx-x86_64.exe
  15. protoc-windows-x86_32.exe
  16. protoc-windows-x86_64.exe
  17. README.md
third_party/protobuf/README.md

How to update these files:

  1. Go to http://search.maven.org/
  2. Search for g:“com.google.protobuf”
  3. Download the “jar” link from protobuf-java.
  4. Download all binaries from “protoc”.
  5. Strip version number from protoc files: for i in *.exe; do mv $i $(echo $i | sed s/3.0.0-alpha-3-//); done
  6. Set executable bit: chmod +x *.exe
  7. Update third_party/BUILD to point to the new jar file.
  8. Done.

Because maven.org doesn't have a prebuilt binary for linux on ARM, you need to build the binary yourself on the target system. Follow the build steps of protocol buffer to create the binary, copy it to this directory and rename it to “protoc-linux-arm32.exe”.

For example:

$ cp /usr/bin/protoc $BAZEL/third_party/protobuf/protoc-linux-arm32.exe

This should be done before you run ./compile.sh.