Free cookie consent management tool by TermsFeed Policy Generator

source: tags/3.3.3/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/mono/buildall.sh @ 13398

Last change on this file since 13398 was 3857, checked in by abeham, 14 years ago

#866

  • Added protobuf-csharp-port project source to ExtLibs
File size: 1.6 KB
Line 
1#!/bin/bash
2
3# Adjust these to reflect the location of NUnit in your system,
4# and how you want NUnit to run
5NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe
6NUNIT_OPTIONS=-noshadow
7
8# The rest should be okay.
9
10SRC=../src
11LIB=../lib
12
13rm -rf bin
14mkdir bin
15
16# Running the unit tests requires the dependencies are
17# in the bin directory too
18cp -f $LIB/{Rhino.Mocks.dll,nunit.framework.dll} bin
19
20echo Building main library
21gmcs -target:library -out:bin/Google.ProtocolBuffers.dll `find $SRC/ProtocolBuffers -name '*.cs'` -keyfile:$SRC/ProtocolBuffers/Properties/Google.ProtocolBuffers.snk
22
23echo Building main library tests
24gmcs -target:library -out:bin/Google.ProtocolBuffers.Test.dll `find $SRC/ProtocolBuffers.Test -name '*.cs'` -keyfile:$SRC/ProtocolBuffers.Test/Properties/Google.ProtocolBuffers.Test.snk -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:$LIB/Rhino.Mocks.dll
25
26echo Running main library tests
27mono $NUNIT bin/Google.ProtocolBuffers.Test.dll $NUNIT_OPTIONS
28
29echo Building ProtoGen
30gmcs -target:exe -out:bin/ProtoGen.exe `find $SRC/ProtoGen -name '*.cs'` -keyfile:$SRC/ProtoGen/Properties/Google.ProtocolBuffers.ProtoGen.snk -r:bin/Google.ProtocolBuffers.dll
31
32echo Building ProtoGen tests
33gmcs -target:library -out:bin/Google.ProtocolBuffers.ProtoGen.Test.dll `find $SRC/ProtoGen.Test -name '*.cs'` -keyfile:$SRC/ProtoGen.Test/Properties/Google.ProtocolBuffers.ProtoGen.Test.snk -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:bin/ProtoGen.exe
34
35echo Running ProtoGen tests
36mono $NUNIT bin/Google.ProtocolBuffers.ProtoGen.Test.dll $NUNIT_OPTIONS
Note: See TracBrowser for help on using the repository browser.