Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.4 KiB
38 lines
1.4 KiB
16 years ago
|
#!/bin/bash
|
||
|
|
||
16 years ago
|
# Adjust these to reflect the location of NUnit in your system,
|
||
|
# and how you want NUnit to run
|
||
|
NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe
|
||
|
NUNIT_OPTIONS=-noshadow
|
||
|
|
||
|
# The rest should be okay.
|
||
|
|
||
|
SRC=../src
|
||
|
LIB=../lib
|
||
14 years ago
|
KEYFILE=../keys/Google.ProtocolBuffers.snk
|
||
16 years ago
|
|
||
|
rm -rf bin
|
||
|
mkdir bin
|
||
|
|
||
|
# Running the unit tests requires the dependencies are
|
||
|
# in the bin directory too
|
||
|
cp -f $LIB/{Rhino.Mocks.dll,nunit.framework.dll} bin
|
||
16 years ago
|
|
||
|
echo Building main library
|
||
14 years ago
|
gmcs -target:library -out:bin/Google.ProtocolBuffers.dll `find $SRC/ProtocolBuffers -name '*.cs'` -keyfile:$KEYFILE
|
||
16 years ago
|
|
||
|
echo Building main library tests
|
||
14 years ago
|
gmcs -target:library -out:bin/Google.ProtocolBuffers.Test.dll `find $SRC/ProtocolBuffers.Test -name '*.cs'` -keyfile:$KEYFILE -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:$LIB/Rhino.Mocks.dll
|
||
16 years ago
|
|
||
|
echo Running main library tests
|
||
16 years ago
|
mono $NUNIT bin/Google.ProtocolBuffers.Test.dll $NUNIT_OPTIONS
|
||
16 years ago
|
|
||
|
echo Building ProtoGen
|
||
14 years ago
|
gmcs -target:exe -out:bin/ProtoGen.exe `find $SRC/ProtoGen -name '*.cs'` -keyfile:$KEYFILE -r:bin/Google.ProtocolBuffers.dll
|
||
16 years ago
|
|
||
|
echo Building ProtoGen tests
|
||
14 years ago
|
gmcs -target:library -out:bin/Google.ProtocolBuffers.ProtoGen.Test.dll `find $SRC/ProtoGen.Test -name '*.cs'` -keyfile:$KEYFILE -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:bin/ProtoGen.exe
|
||
16 years ago
|
|
||
|
echo Running ProtoGen tests
|
||
16 years ago
|
mono $NUNIT bin/Google.ProtocolBuffers.ProtoGen.Test.dll $NUNIT_OPTIONS
|