Merge pull request #10244 from jskeet/plugin-protos

Expose plugin protos for C#
pull/10256/head
deannagarcia 3 years ago committed by GitHub
commit 021787f265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Makefile.am
  2. 3
      csharp/generate_protos.sh
  3. 1490
      csharp/src/Google.Protobuf/Compiler/Plugin.cs
  4. 3
      src/google/protobuf/compiler/plugin.proto

@ -193,6 +193,7 @@ csharp_EXTRA_DIST= \
csharp/src/Google.Protobuf/Compatibility/RequiresUnreferencedCodeAttribute.cs \
csharp/src/Google.Protobuf/Compatibility/TypeExtensions.cs \
csharp/src/Google.Protobuf/Compatibility/UnconditionalSuppressMessageAttribute.cs \
csharp/src/Google.Protobuf/Compiler/Plugin.cs \
csharp/src/Google.Protobuf/Extension.cs \
csharp/src/Google.Protobuf/ExtensionRegistry.cs \
csharp/src/Google.Protobuf/ExtensionSet.cs \

@ -40,7 +40,8 @@ $PROTOC -Isrc --csharp_out=csharp/src/Google.Protobuf \
src/google/protobuf/struct.proto \
src/google/protobuf/timestamp.proto \
src/google/protobuf/type.proto \
src/google/protobuf/wrappers.proto
src/google/protobuf/wrappers.proto \
src/google/protobuf/compiler/plugin.proto
# Test protos
# Note that this deliberately does *not* include old_extensions1.proto

File diff suppressed because it is too large Load Diff

@ -30,9 +30,6 @@
// Author: kenton@google.com (Kenton Varda)
//
// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
// change.
//
// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
// just a program that reads a CodeGeneratorRequest from stdin and writes a
// CodeGeneratorResponse to stdout.

Loading…
Cancel
Save