diff options
author | Chris Fallin <cfallin@c1f.net> | 2014-11-18 14:19:58 -0800 |
---|---|---|
committer | Chris Fallin <cfallin@c1f.net> | 2014-12-09 16:55:59 -0800 |
commit | 973f425725f1cc18211992792f2aed83d3d73831 (patch) | |
tree | da0022d2cbe3a0700c02765a02e1be5a8b0c4f30 /src/google/protobuf/compiler/main.cc | |
parent | a0d9c59a7604139401cab78a27542b23f5724c19 (diff) | |
download | protobuf-973f425725f1cc18211992792f2aed83d3d73831.tar.gz protobuf-973f425725f1cc18211992792f2aed83d3d73831.tar.bz2 protobuf-973f425725f1cc18211992792f2aed83d3d73831.zip |
Provide a Ruby extension.
This adds a Ruby extension in ruby/ that is based on the 'upb' library
(now included as a submodule), and adds support for Ruby code generation
to the protoc compiler.
Diffstat (limited to 'src/google/protobuf/compiler/main.cc')
-rw-r--r-- | src/google/protobuf/compiler/main.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/main.cc b/src/google/protobuf/compiler/main.cc index 9f2127bb..931b8fa3 100644 --- a/src/google/protobuf/compiler/main.cc +++ b/src/google/protobuf/compiler/main.cc @@ -35,7 +35,7 @@ #include <google/protobuf/compiler/python/python_generator.h> #include <google/protobuf/compiler/java/java_generator.h> #include <google/protobuf/compiler/javanano/javanano_generator.h> - +#include <google/protobuf/compiler/ruby/ruby_generator.h> int main(int argc, char* argv[]) { @@ -63,5 +63,10 @@ int main(int argc, char* argv[]) { cli.RegisterGenerator("--javanano_out", &javanano_generator, "Generate Java Nano source file."); + // Ruby + google::protobuf::compiler::ruby::Generator rb_generator; + cli.RegisterGenerator("--ruby_out", &rb_generator, + "Generate Ruby source file."); + return cli.Run(argc, argv); } |