OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Generates C# source files from .proto files. | 2 # Generates C# source files from .proto files. |
3 # You first need to make sure protoc has been built (see instructions on | 3 # You first need to make sure protoc has been built (see instructions on |
4 # building protoc in root of this repository) | 4 # building protoc in root of this repository) |
5 | 5 |
6 set -ex | 6 set -ex |
7 | 7 |
8 # cd to repository root | 8 # cd to repository root |
9 pushd $(dirname $0)/.. | 9 pushd $(dirname $0)/.. |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 src/google/protobuf/unittest_proto3.proto \ | 47 src/google/protobuf/unittest_proto3.proto \ |
48 src/google/protobuf/unittest_import_proto3.proto \ | 48 src/google/protobuf/unittest_import_proto3.proto \ |
49 src/google/protobuf/unittest_import_public_proto3.proto \ | 49 src/google/protobuf/unittest_import_public_proto3.proto \ |
50 src/google/protobuf/unittest_well_known_types.proto | 50 src/google/protobuf/unittest_well_known_types.proto |
51 | 51 |
52 # Different base namespace to the protos above | 52 # Different base namespace to the protos above |
53 $PROTOC -Icsharp/protos --csharp_out=csharp/src/Google.Protobuf.Test \ | 53 $PROTOC -Icsharp/protos --csharp_out=csharp/src/Google.Protobuf.Test \ |
54 --csharp_opt=base_namespace=UnitTest.Issues \ | 54 --csharp_opt=base_namespace=UnitTest.Issues \ |
55 csharp/protos/unittest_issues.proto | 55 csharp/protos/unittest_issues.proto |
56 | 56 |
57 # Don't specify a base namespace at all; we just want to make sure the | |
58 # results end up in TestProtos. | |
59 $PROTOC -Isrc --csharp_out=csharp/src/Google.Protobuf.Test/TestProtos \ | |
60 src/google/protobuf/test_messages_proto3.proto | |
61 | |
62 # AddressBook sample protos | 57 # AddressBook sample protos |
63 $PROTOC -Iexamples --csharp_out=csharp/src/AddressBook \ | 58 $PROTOC -Iexamples --csharp_out=csharp/src/AddressBook \ |
64 examples/addressbook.proto | 59 examples/addressbook.proto |
65 | 60 |
66 $PROTOC -Iconformance -Isrc --csharp_out=csharp/src/Google.Protobuf.Conformance
\ | 61 $PROTOC -Iconformance -Isrc --csharp_out=csharp/src/Google.Protobuf.Conformance
\ |
67 conformance/conformance.proto | 62 conformance/conformance.proto |
OLD | NEW |