aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf/README.md
blob: bdeeb5210ded84bc2408b162a3431190a8949c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.

How to update the `src/` directory:
1. Run `git clone http://github.com/google/protobuf.git` in a convenient directory.
2. `mkdir third_party/protobuf/src/google` in the root of the Bazel tree.
3. `cp -R <root of protobuf tree>/src/google/protobuf third_party/protobuf/src/google`
4. Done.

The current version comes from commit `698fa8ee22`.