Internal changes

PiperOrigin-RevId: 617628939
pull/16245/head
Protobuf Team Bot 11 months ago committed by Copybara-Service
parent 0442ed62cb
commit eec6540eef
  1. 10
      src/google/protobuf/compiler/java/plugin_main.cc
  2. 11
      src/google/protobuf/compiler/python/plugin_main.cc

@ -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…
Cancel
Save