Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 --- protobuf-cleaned/src/google/protobuf/compiler/main.cc 2015-12-30 13:21 :46.000000000 -0800 | |
| 2 +++ protobuf-patched/src/google/protobuf/compiler/main.cc 2016-03-31 13:25 :41.548005626 -0700 | |
| 3 @@ -33,12 +33,6 @@ | |
| 4 #include <google/protobuf/compiler/command_line_interface.h> | |
| 5 #include <google/protobuf/compiler/cpp/cpp_generator.h> | |
| 6 #include <google/protobuf/compiler/python/python_generator.h> | |
| 7 -#include <google/protobuf/compiler/java/java_generator.h> | |
| 8 -#include <google/protobuf/compiler/javanano/javanano_generator.h> | |
| 9 -#include <google/protobuf/compiler/ruby/ruby_generator.h> | |
| 10 -#include <google/protobuf/compiler/csharp/csharp_generator.h> | |
| 11 -#include <google/protobuf/compiler/objectivec/objectivec_generator.h> | |
| 12 -#include <google/protobuf/compiler/js/js_generator.h> | |
| 13 | |
| 14 int main(int argc, char* argv[]) { | |
| 15 | |
| 16 @@ -50,41 +44,10 @@ | |
| 17 cli.RegisterGenerator("--cpp_out", "--cpp_opt", &cpp_generator, | |
| 18 "Generate C++ header and source."); | |
| 19 | |
| 20 - // Proto2 Java | |
|
Peter Kasting
2016/04/15 01:12:59
I wonder if the Android people might actually want
xyzzyz
2016/04/15 20:50:36
Android/iOS doesn't seem to be using it.
The dra
| |
| 21 - google::protobuf::compiler::java::JavaGenerator java_generator; | |
| 22 - cli.RegisterGenerator("--java_out", &java_generator, | |
| 23 - "Generate Java source file."); | |
| 24 - | |
| 25 - | |
| 26 // Proto2 Python | |
| 27 google::protobuf::compiler::python::Generator py_generator; | |
| 28 cli.RegisterGenerator("--python_out", &py_generator, | |
| 29 "Generate Python source file."); | |
| 30 | |
| 31 - // Java Nano | |
| 32 - google::protobuf::compiler::javanano::JavaNanoGenerator javanano_generator; | |
| 33 - cli.RegisterGenerator("--javanano_out", &javanano_generator, | |
| 34 - "Generate Java Nano source file."); | |
| 35 - | |
| 36 - // Ruby | |
| 37 - google::protobuf::compiler::ruby::Generator rb_generator; | |
| 38 - cli.RegisterGenerator("--ruby_out", &rb_generator, | |
| 39 - "Generate Ruby source file."); | |
| 40 - | |
| 41 - // CSharp | |
| 42 - google::protobuf::compiler::csharp::Generator csharp_generator; | |
| 43 - cli.RegisterGenerator("--csharp_out", "--csharp_opt", &csharp_generator, | |
| 44 - "Generate C# source file."); | |
| 45 - | |
| 46 - // Objective C | |
| 47 - google::protobuf::compiler::objectivec::ObjectiveCGenerator objc_generator; | |
| 48 - cli.RegisterGenerator("--objc_out", &objc_generator, | |
| 49 - "Generate Objective C header and source."); | |
| 50 - | |
| 51 - // JavaScript | |
| 52 - google::protobuf::compiler::js::Generator js_generator; | |
| 53 - cli.RegisterGenerator("--js_out", &js_generator, | |
| 54 - "Generate JavaScript source."); | |
| 55 - | |
| 56 return cli.Run(argc, argv); | |
| 57 } | |
| OLD | NEW |