Skip to content

Commit 456216b

Browse files
committed
Add some details for building on Windows.
More will be necessary, as we don't describe how to build protobuf itself, but this should be a clear improvement.
1 parent 967c27d commit 456216b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ Now to build grpc-java itself:
4545
$ ./gradlew install
4646
```
4747

48+
When building on Windows and VC++, you need to specify project properties for
49+
Gradle to find protobuf:
50+
```
51+
.\gradlew install -Pprotobuf.include=C:\path\to\protobuf-3.0.0-alpha-2\src ^
52+
-Pprotobuf.libs=C:\path\to\protobuf-3.0.0-alpha-2\vsprojects\Release
53+
```
54+
55+
Since specifying those properties every build is bothersome, you can instead
56+
create %HOMEDRIVE%%HOMEPATH%\.gradle\gradle.properties with contents like:
57+
```
58+
protobuf.include=C:\\path\\to\\protobuf-3.0.0-alpha-2\\src
59+
protobuf.libs=C:\\path\\to\\protobuf-3.0.0-alpha-2\\vsprojects\\Release
60+
```
61+
4862
Navigating Around the Source
4963
----------------------------
5064

0 commit comments

Comments
 (0)