Last change
on this file since 6095 was
3857,
checked in by abeham, 15 years ago
|
#866
- Added protobuf-csharp-port project source to ExtLibs
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | echo Compiling protobufs
|
---|
4 | rm -rf tmp
|
---|
5 | mkdir tmp
|
---|
6 | PROTOS_DIR=../protos
|
---|
7 |
|
---|
8 | ./protoc --proto_path=$PROTOS_DIR --descriptor_set_out=tmp/compiled.pb \
|
---|
9 | $PROTOS_DIR/google/protobuf/descriptor.proto \
|
---|
10 | $PROTOS_DIR/google/protobuf/csharp_options.proto \
|
---|
11 | $PROTOS_DIR/google/protobuf/unittest.proto \
|
---|
12 | $PROTOS_DIR/google/protobuf/unittest_csharp_options.proto \
|
---|
13 | $PROTOS_DIR/google/protobuf/unittest_custom_options.proto \
|
---|
14 | $PROTOS_DIR/google/protobuf/unittest_embed_optimize_for.proto \
|
---|
15 | $PROTOS_DIR/google/protobuf/unittest_import.proto \
|
---|
16 | $PROTOS_DIR/google/protobuf/unittest_mset.proto \
|
---|
17 | $PROTOS_DIR/google/protobuf/unittest_optimize_for.proto \
|
---|
18 | $PROTOS_DIR/tutorial/addressbook.proto
|
---|
19 |
|
---|
20 | cd tmp
|
---|
21 | echo Generating new source
|
---|
22 | mono ../bin/ProtoGen.exe compiled.pb
|
---|
23 |
|
---|
24 | echo Copying source into place
|
---|
25 | cp DescriptorProtoFile.cs CSharpOptions.cs ../../src/ProtocolBuffers/DescriptorProtos
|
---|
26 | cp UnitTest*.cs ../../src/ProtocolBuffers.Test/TestProtos
|
---|
27 | cp AddressBookProtos.cs ../../src/AddressBook
|
---|
28 | cd ..
|
---|
29 | rm -rf tmp
|
---|
Note: See
TracBrowser
for help on using the repository browser.