Skip to content

Commit

Permalink
Update protobuf to 3.0.0
Browse files Browse the repository at this point in the history
Fixes grpc#2086
  • Loading branch information
ejona86 committed Jul 29, 2016
1 parent fccc282 commit 5e1e883
Show file tree
Hide file tree
Showing 31 changed files with 5,401 additions and 1,195 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: java
env:
global:
- GRADLE_OPTS=-Xmx512m
- PROTOBUF_VERSION=3.0.0-beta-3
- PROTOBUF_VERSION=3.0.0
- LDFLAGS=-L/tmp/protobuf/lib
- CXXFLAGS=-I/tmp/protobuf/include
- LD_LIBRARY_PATH=/tmp/protobuf/lib
Expand Down
12 changes: 6 additions & 6 deletions COMPILING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ This section is only necessary if you are making changes to the code
generation. Most users only need to use `skipCodegen=true` as discussed above.

### Build Protobuf
The codegen plugin is C++ code and requires protobuf 3.0.0-beta-3.
The codegen plugin is C++ code and requires protobuf 3.0.0.

For Linux, Mac and MinGW:
```
$ git clone https://github.com/google/protobuf.git
$ cd protobuf
$ git checkout v3.0.0-beta-3
$ git checkout v3.0.0
$ ./autogen.sh
$ ./configure
$ make
Expand Down Expand Up @@ -72,16 +72,16 @@ When building on Windows and VC++, you need to specify project properties for
Gradle to find protobuf:
```
.\gradlew install ^
-PvcProtobufInclude=C:\path\to\protobuf-3.0.0-beta-3\src ^
-PvcProtobufLibs=C:\path\to\protobuf-3.0.0-beta-3\vsprojects\Release ^
-PvcProtobufInclude=C:\path\to\protobuf-3.0.0\src ^
-PvcProtobufLibs=C:\path\to\protobuf-3.0.0\vsprojects\Release ^
-PtargetArch=x86_32
```

Since specifying those properties every build is bothersome, you can instead
create ``<project-root>\gradle.properties`` with contents like:
```
vcProtobufInclude=C:\\path\\to\\protobuf-3.0.0-beta-3\\src
vcProtobufLibs=C:\\path\\to\\protobuf-3.0.0-beta-3\\vsprojects\\Release
vcProtobufInclude=C:\\path\\to\\protobuf-3.0.0\\src
vcProtobufLibs=C:\\path\\to\\protobuf-3.0.0\\vsprojects\\Release
targetArch=x86_32
```

Expand Down
2 changes: 1 addition & 1 deletion android-interop-testing/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ android {

protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.0.0-beta-3'
artifact = 'com.google.protobuf:protoc:3.0.0'
}
plugins {
grpc {
Expand Down
Loading

0 comments on commit 5e1e883

Please sign in to comment.