2008-08-22 20:38:05 +00:00
|
|
|
#include <google/protobuf/compiler/command_line_interface.h>
|
2013-11-16 17:11:48 -05:00
|
|
|
#include <protoc-c/c_generator.h>
|
2008-08-22 20:38:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
google::protobuf::compiler::CommandLineInterface cli;
|
|
|
|
|
|
|
|
// Support generation of Foo code.
|
|
|
|
google::protobuf::compiler::c::CGenerator c_generator;
|
|
|
|
cli.RegisterGenerator("--c_out", &c_generator,
|
|
|
|
"Generate C/H files.");
|
2013-11-19 00:11:05 -08:00
|
|
|
|
|
|
|
// Add version info generated by automake
|
|
|
|
cli.SetVersionInfo(PACKAGE_STRING);
|
2008-08-22 20:38:05 +00:00
|
|
|
|
|
|
|
return cli.Run(argc, argv);
|
|
|
|
}
|