Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
a22663ed
Commit
a22663ed
authored
Jun 25, 2009
by
Jon Skeet
Committed by
Jon Skeet
Jun 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial mono build scripts
parent
b2526215
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
buildall.sh
mono/buildall.sh
+23
-0
generatesource.sh
mono/generatesource.sh
+28
-0
No files found.
mono/buildall.sh
0 → 100755
View file @
a22663ed
#!/bin/bash
export
SRC
=
../src
export
LIB
=
../lib
echo
Building main library
gmcs
-target
:library
-out
:Google.ProtocolBuffers.dll
`
find
$SRC
/ProtocolBuffers
-name
'*.cs'
`
-keyfile
:
$SRC
/ProtocolBuffers/Properties/Google.ProtocolBuffers.snk
echo
Building main library tests
gmcs
-target
:library
-out
:Google.ProtocolBuffers.Test.dll
`
find
$SRC
/ProtocolBuffers.Test
-name
'*.cs'
`
-keyfile
:
$SRC
/ProtocolBuffers.Test/Properties/Google.ProtocolBuffers.Test.snk
-r
:Google.ProtocolBuffers.dll
-r
:
$LIB
/nunit.framework.dll
-r
:
$LIB
/Rhino.Mocks.dll
echo
Running main library tests
mono ~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe Google.ProtocolBuffers.Test.dll
-noshadow
echo
Building ProtoGen
gmcs
-target
:exe
-out
:ProtoGen.exe
`
find
$SRC
/ProtoGen
-name
'*.cs'
`
-keyfile
:
$SRC
/ProtoGen/Properties/Google.ProtocolBuffers.ProtoGen.snk
-r
:Google.ProtocolBuffers.dll
echo
Building ProtoGen tests
gmcs
-target
:library
-out
:Google.ProtocolBuffers.ProtoGen.Test.dll
`
find
$SRC
/ProtoGen.Test
-name
'*.cs'
`
-keyfile
:
$SRC
/ProtoGen.Test/Properties/Google.ProtocolBuffers.ProtoGen.Test.snk
-r
:Google.ProtocolBuffers.dll
-r
:
$LIB
/nunit.framework.dll
-r
:ProtoGen.exe
echo
Running ProtoGen tests
mono ~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe Google.ProtocolBuffers.ProtoGen.Test.dll
-noshadow
mono/generatesource.sh
0 → 100755
View file @
a22663ed
#!/bin/bash
echo
Compiling protobufs
rm
-rf
tmp
mkdir
tmp
PROTOS_DIR
=
../protos
./protoc
--proto_path
=
$PROTOS_DIR
--descriptor_set_out
=
tmp/compiled.pb
\
$PROTOS_DIR
/google/protobuf/descriptor.proto
\
$PROTOS_DIR
/google/protobuf/csharp_options.proto
\
$PROTOS_DIR
/google/protobuf/unittest.proto
\
$PROTOS_DIR
/google/protobuf/unittest_csharp_options.proto
\
$PROTOS_DIR
/google/protobuf/unittest_custom_options.proto
\
$PROTOS_DIR
/google/protobuf/unittest_embed_optimize_for.proto
\
$PROTOS_DIR
/google/protobuf/unittest_import.proto
\
$PROTOS_DIR
/google/protobuf/unittest_mset.proto
\
$PROTOS_DIR
/google/protobuf/unittest_optimize_for.proto
\
$PROTOS_DIR
/tutorial/addressbook.proto
cd
tmp
echo
Generating new
source
mono ../ProtoGen.exe compiled.pb
echo
Copying
source
into place
cp
DescriptorProtoFile.cs CSharpOptions.cs ../../src/ProtocolBuffers/DescriptorProtos
cp
UnitTest
*
.cs ../../src/ProtocolBuffers.Test/TestProtos
cp
AddressBookProtos.cs ../../src/AddressBook
cd
..
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment