parent
0442ed62cb
commit
eec6540eef
2 changed files with 21 additions and 0 deletions
@ -0,0 +1,10 @@ |
||||
#include "google/protobuf/compiler/java/generator.h" |
||||
#include "google/protobuf/compiler/plugin.h" |
||||
|
||||
int main(int argc, char *argv[]) { |
||||
::google::protobuf::compiler::java::JavaGenerator generator; |
||||
#ifdef GOOGLE_PROTOBUF_RUNTIME_INCLUDE_BASE |
||||
generator.set_opensource_runtime(true); |
||||
#endif |
||||
return ::google::protobuf::compiler::PluginMain(argc, argv, &generator); |
||||
} |
@ -0,0 +1,11 @@ |
||||
#include "google/protobuf/compiler/plugin.h" |
||||
#include "google/protobuf/compiler/python/generator.h" |
||||
|
||||
int main(int argc, char *argv[]) { |
||||
::google::protobuf::compiler::python::Generator generator; |
||||
#ifdef GOOGLE_PROTOBUF_RUNTIME_INCLUDE_BASE |
||||
generator.set_opensource_runtime(true); |
||||
generator.set_runtime_include_base(GOOGLE_PROTOBUF_RUNTIME_INCLUDE_BASE); |
||||
#endif |
||||
return ::google::protobuf::compiler::PluginMain(argc, argv, &generator); |
||||
} |
Loading…
Reference in new issue