mirror of https://github.com/grpc/grpc-java.git
Have Gradle observe LDFLAGS/CXXFLAGS/CPPFLAGS
This allows building with a private proto installation (one in home directory or elsewhere) by specifying -I and -L.
This commit is contained in:
parent
0f1e24a7ea
commit
2049e0d618
|
|
@ -9,7 +9,16 @@ executables {
|
||||||
binaries.all {
|
binaries.all {
|
||||||
if (toolChain in Gcc) {
|
if (toolChain in Gcc) {
|
||||||
cppCompiler.args "-std=c++11"
|
cppCompiler.args "-std=c++11"
|
||||||
|
if (System.env.CXXFLAGS) {
|
||||||
|
cppCompiler.args System.env.CXXFLAGS
|
||||||
|
}
|
||||||
|
if (System.env.CPPFLAGS) {
|
||||||
|
cppCompiler.args System.env.CPPFLAGS
|
||||||
|
}
|
||||||
linker.args "-lprotoc", "-lprotobuf"
|
linker.args "-lprotoc", "-lprotobuf"
|
||||||
|
if (System.env.LDFLAGS) {
|
||||||
|
linker.args System.env.LDFLAGS
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue