| Index: third_party/protobuf/src/google/protobuf/compiler/main.cc
|
| diff --git a/third_party/protobuf/src/google/protobuf/compiler/main.cc b/third_party/protobuf/src/google/protobuf/compiler/main.cc
|
| index 680d642857bd9341c8f1924f9a2b6f3ce0a30617..66ad13b749c8c2eeb2c7d7e51d9a49cc3671912f 100644
|
| --- a/third_party/protobuf/src/google/protobuf/compiler/main.cc
|
| +++ b/third_party/protobuf/src/google/protobuf/compiler/main.cc
|
| @@ -32,20 +32,13 @@
|
|
|
| #include <google/protobuf/compiler/command_line_interface.h>
|
| #include <google/protobuf/compiler/cpp/cpp_generator.h>
|
| -
|
| -#ifndef OPENSOURCE_PROTOBUF_CPP_BOOTSTRAP
|
| #include <google/protobuf/compiler/python/python_generator.h>
|
| #include <google/protobuf/compiler/java/java_generator.h>
|
| -#endif // ! OPENSOURCE_PROTOBUF_CPP_BOOTSTRAP
|
| -
|
| -#ifndef OPENSOURCE_PROTOBUF_CPP_BOOTSTRAP
|
| -#include <google/protobuf/compiler/csharp/csharp_generator.h>
|
| #include <google/protobuf/compiler/javanano/javanano_generator.h>
|
| -#include <google/protobuf/compiler/js/js_generator.h>
|
| -#include <google/protobuf/compiler/objectivec/objectivec_generator.h>
|
| -#include <google/protobuf/compiler/php/php_generator.h>
|
| #include <google/protobuf/compiler/ruby/ruby_generator.h>
|
| -#endif // ! OPENSOURCE_PROTOBUF_CPP_BOOTSTRAP
|
| +#include <google/protobuf/compiler/csharp/csharp_generator.h>
|
| +#include <google/protobuf/compiler/objectivec/objectivec_generator.h>
|
| +#include <google/protobuf/compiler/js/js_generator.h>
|
|
|
| int main(int argc, char* argv[]) {
|
|
|
| @@ -57,15 +50,12 @@ int main(int argc, char* argv[]) {
|
| cli.RegisterGenerator("--cpp_out", "--cpp_opt", &cpp_generator,
|
| "Generate C++ header and source.");
|
|
|
| -#ifndef OPENSOURCE_PROTOBUF_CPP_BOOTSTRAP
|
| // Proto2 Java
|
| google::protobuf::compiler::java::JavaGenerator java_generator;
|
| - cli.RegisterGenerator("--java_out", "--java_opt", &java_generator,
|
| + cli.RegisterGenerator("--java_out", &java_generator,
|
| "Generate Java source file.");
|
| -#endif // !OPENSOURCE_PROTOBUF_CPP_BOOTSTRAP
|
|
|
|
|
| -#ifndef OPENSOURCE_PROTOBUF_CPP_BOOTSTRAP
|
| // Proto2 Python
|
| google::protobuf::compiler::python::Generator py_generator;
|
| cli.RegisterGenerator("--python_out", &py_generator,
|
| @@ -76,11 +66,6 @@ int main(int argc, char* argv[]) {
|
| cli.RegisterGenerator("--javanano_out", &javanano_generator,
|
| "Generate Java Nano source file.");
|
|
|
| - // PHP
|
| - google::protobuf::compiler::php::Generator php_generator;
|
| - cli.RegisterGenerator("--php_out", &php_generator,
|
| - "Generate PHP source file.");
|
| -
|
| // Ruby
|
| google::protobuf::compiler::ruby::Generator rb_generator;
|
| cli.RegisterGenerator("--ruby_out", &rb_generator,
|
| @@ -100,7 +85,6 @@ int main(int argc, char* argv[]) {
|
| google::protobuf::compiler::js::Generator js_generator;
|
| cli.RegisterGenerator("--js_out", &js_generator,
|
| "Generate JavaScript source.");
|
| -#endif // !OPENSOURCE_PROTOBUF_CPP_BOOTSTRAP
|
|
|
| return cli.Run(argc, argv);
|
| }
|
|
|