// Copyright 2019 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.#include "third_party/protobuf/src/google/protobuf/compiler/command_line_interface.h"#include "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.h"namespacev8{namespaceinternal{intProtobufCompilerMain(intargc,char*argv[]){google::protobuf::compiler::CommandLineInterfacecli;cli.AllowPlugins("protoc-");// Proto2 C++google::protobuf::compiler::cpp::CppGeneratorcpp_generator;cli.RegisterGenerator("--cpp_out","--cpp_opt",&cpp_generator,"Generate C++ header and source.");returncli.Run(argc,argv);}}// namespace internal}// namespace v8intmain(intargc,char*argv[]){returnv8::internal::ProtobufCompilerMain(argc,argv);}