aboutsummaryrefslogtreecommitdiff
path: root/csharp/generate_protos.sh
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-07-14 14:26:31 +0100
committerJon Skeet <jonskeet@google.com>2015-07-14 14:26:31 +0100
commit739d13d5d1f93e8bf8770081d1500372758fffa1 (patch)
tree2555c21a1eb6b78575aa3e16195a597addeda05b /csharp/generate_protos.sh
parent1660c5631e798883139996ea10cba5e602779578 (diff)
downloadprotobuf-739d13d5d1f93e8bf8770081d1500372758fffa1.tar.gz
protobuf-739d13d5d1f93e8bf8770081d1500372758fffa1.tar.bz2
protobuf-739d13d5d1f93e8bf8770081d1500372758fffa1.zip
Generate the well-known types in C#
This involves: - Specifying a namespace in each proto (including ones we'd previously missed) - Updating the generation script - Changing codegen to implement IReflectedMessage.Fields explicitly (a good thing anyway) - Changing reflection tests to take account of the explicit interface implementation Non-generated code in this commit; generated code to follow
Diffstat (limited to 'csharp/generate_protos.sh')
-rwxr-xr-xcsharp/generate_protos.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/csharp/generate_protos.sh b/csharp/generate_protos.sh
index 8ec103cd..b7f837e1 100755
--- a/csharp/generate_protos.sh
+++ b/csharp/generate_protos.sh
@@ -42,6 +42,18 @@ $PROTOC -Isrc --csharp_out=csharp/src/ProtocolBuffers/Reflection \
src/google/protobuf/descriptor_proto_file.proto
rm src/google/protobuf/descriptor_proto_file.proto
+$PROTOC -Isrc --csharp_out=csharp/src/ProtocolBuffers/WellKnownTypes \
+ src/google/protobuf/any.proto \
+ src/google/protobuf/api.proto \
+ src/google/protobuf/duration.proto \
+ src/google/protobuf/empty.proto \
+ src/google/protobuf/field_mask.proto \
+ src/google/protobuf/source_context.proto \
+ src/google/protobuf/struct.proto \
+ src/google/protobuf/timestamp.proto \
+ src/google/protobuf/type.proto \
+ src/google/protobuf/wrappers.proto
+
$PROTOC -Isrc --csharp_out=csharp/src/ProtocolBuffers.Test/TestProtos \
src/google/protobuf/map_unittest_proto3.proto \
src/google/protobuf/unittest_proto3.proto \