aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf
diff options
context:
space:
mode:
authorGravatar Julio Merino <jmmv@google.com>2016-02-10 15:37:02 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-02-10 16:34:50 +0000
commit63b856f79629a91ed041c1385d8a9bcf8a258c33 (patch)
treedd1e96d2622e7b43d9c97a0e4ab521f62922d986 /third_party/protobuf
parent18eed30723f5c73850737a693001ca02ecd7717b (diff)
Restore third_party/bazel/README.md in the exported Bazel tree.
-- MOS_MIGRATED_REVID=114324917
Diffstat (limited to 'third_party/protobuf')
-rw-r--r--third_party/protobuf/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/protobuf/README.md b/third_party/protobuf/README.md
new file mode 100644
index 0000000000..8e200e7da7
--- /dev/null
+++ b/third_party/protobuf/README.md
@@ -0,0 +1,22 @@
+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.
+