Make Java codegen ready for open-source. It can be built with the Github HEAD
of opensource protobuf.
- Moved to third_party under GRPC Java directory
- Using Gradle to build
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=84053803
diff --git a/compiler/build.gradle b/compiler/build.gradle
new file mode 100644
index 0000000..f80658b
--- /dev/null
+++ b/compiler/build.gradle
@@ -0,0 +1,25 @@
+apply plugin: "cpp"
+
+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"
+ }
+ }
+ }
+}
+