| OLD | NEW |
| 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 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 cli.RegisterGenerator("--ruby_out", &rb_generator, | 71 cli.RegisterGenerator("--ruby_out", &rb_generator, |
| 72 "Generate Ruby source file."); | 72 "Generate Ruby source file."); |
| 73 | 73 |
| 74 // CSharp | 74 // CSharp |
| 75 google::protobuf::compiler::csharp::Generator csharp_generator; | 75 google::protobuf::compiler::csharp::Generator csharp_generator; |
| 76 cli.RegisterGenerator("--csharp_out", "--csharp_opt", &csharp_generator, | 76 cli.RegisterGenerator("--csharp_out", "--csharp_opt", &csharp_generator, |
| 77 "Generate C# source file."); | 77 "Generate C# source file."); |
| 78 | 78 |
| 79 // Objective C | 79 // Objective C |
| 80 google::protobuf::compiler::objectivec::ObjectiveCGenerator objc_generator; | 80 google::protobuf::compiler::objectivec::ObjectiveCGenerator objc_generator; |
| 81 cli.RegisterGenerator("--objc_out", &objc_generator, | 81 cli.RegisterGenerator("--objc_out", "--objc_opt", &objc_generator, |
| 82 "Generate Objective C header and source."); | 82 "Generate Objective C header and source."); |
| 83 | 83 |
| 84 // JavaScript | 84 // JavaScript |
| 85 google::protobuf::compiler::js::Generator js_generator; | 85 google::protobuf::compiler::js::Generator js_generator; |
| 86 cli.RegisterGenerator("--js_out", &js_generator, | 86 cli.RegisterGenerator("--js_out", &js_generator, |
| 87 "Generate JavaScript source."); | 87 "Generate JavaScript source."); |
| 88 | 88 |
| 89 return cli.Run(argc, argv); | 89 return cli.Run(argc, argv); |
| 90 } | 90 } |
| OLD | NEW |