mirror of https://github.com/grpc/grpc-java.git
32 lines
525 B
Groovy
32 lines
525 B
Groovy
apply plugin: "cpp"
|
|
|
|
description = 'The protoc plugin for gRPC Java'
|
|
|
|
executables {
|
|
java_plugin {}
|
|
}
|
|
|
|
binaries.all {
|
|
if (toolChain in Gcc) {
|
|
cppCompiler.args "-std=c++11"
|
|
linker.args "-lprotoc", "-lprotobuf"
|
|
}
|
|
}
|
|
|
|
sources {
|
|
java_plugin {
|
|
// Configure an existing CppSourceSet
|
|
cpp {
|
|
source {
|
|
srcDirs "src/"
|
|
include "**/*.cc"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
task test(type: Exec, dependsOn: 'java_pluginExecutable') {
|
|
environment 'TEST_TMP_DIR', temporaryDir
|
|
commandLine './run_test.sh'
|
|
}
|