Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/protobuf/src/google/protobuf/compiler/main.cc

Issue 21208003: Update protobuf to r428, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // http://code.google.com/p/protobuf/ 3 // http://code.google.com/p/protobuf/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 25 matching lines...) Expand all
36 #include <google/protobuf/compiler/java/java_generator.h> 36 #include <google/protobuf/compiler/java/java_generator.h>
37 37
38 38
39 int main(int argc, char* argv[]) { 39 int main(int argc, char* argv[]) {
40 40
41 google::protobuf::compiler::CommandLineInterface cli; 41 google::protobuf::compiler::CommandLineInterface cli;
42 cli.AllowPlugins("protoc-"); 42 cli.AllowPlugins("protoc-");
43 43
44 // Proto2 C++ 44 // Proto2 C++
45 google::protobuf::compiler::cpp::CppGenerator cpp_generator; 45 google::protobuf::compiler::cpp::CppGenerator cpp_generator;
46 cli.RegisterGenerator("--cpp_out", &cpp_generator, 46 cli.RegisterGenerator("--cpp_out", "--cpp_opt", &cpp_generator,
47 "Generate C++ header and source."); 47 "Generate C++ header and source.");
48 48
49 // Proto2 Java 49 // Proto2 Java
50 google::protobuf::compiler::java::JavaGenerator java_generator; 50 google::protobuf::compiler::java::JavaGenerator java_generator;
51 cli.RegisterGenerator("--java_out", &java_generator, 51 cli.RegisterGenerator("--java_out", &java_generator,
52 "Generate Java source file."); 52 "Generate Java source file.");
53 53
54 54
55 // Proto2 Python 55 // Proto2 Python
56 google::protobuf::compiler::python::Generator py_generator; 56 google::protobuf::compiler::python::Generator py_generator;
57 cli.RegisterGenerator("--python_out", &py_generator, 57 cli.RegisterGenerator("--python_out", &py_generator,
58 "Generate Python source file."); 58 "Generate Python source file.");
59 59
60 return cli.Run(argc, argv); 60 return cli.Run(argc, argv);
61 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698