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
6678a73b
Commit
6678a73b
authored
Mar 05, 2009
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For some reason the build file didn't get pushed last time
parent
bceed3c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
30 deletions
+70
-30
ProtocolBuffers.build
ProtocolBuffers.build
+70
-30
No files found.
ProtocolBuffers.build
View file @
6678a73b
...
...
@@ -40,7 +40,17 @@
<property
name=
"tmp-dir"
value=
"${path::combine(project::get-base-directory(), 'tmp')}"
overwrite=
"false"
/>
<!-- Directory to build and run benchmarks in -->
<property
name=
"benchmark-run-dir"
value=
"${path::combine(tmp-dir, 'benchmark')}"
overwrite=
"false"
/>
<!-- Directory to find benchmark data in -->
<property
name=
"benchmark-data-dir"
value=
"${path::combine(project::get-base-directory(), 'benchmarks')}"
overwrite=
"false"
/>
<!-- Which version of protogen to use when regenerating source -->
<property
name=
"tools-protogen-config"
value=
"${build-configuration}"
...
...
@@ -50,9 +60,6 @@
value=
"${src}/ProtoGen/bin/${tools-protogen-config}/protogen.exe"
overwrite=
"false"
/>
<property
name=
"tools-protobench"
value=
"${src}/ProtoBench/bin/${build-configuration}/protobench.exe"
overwrite=
"false"
/>
<target
name=
"clean-build"
description=
"Rebuilds all source and binaries, including distribution"
>
...
...
@@ -104,8 +111,6 @@
workingdir=
"${tmp-dir}"
>
<arg
value=
"--proto_path=${protos-dir}"
/>
<arg
value=
"--descriptor_set_out=compiled.pb"
/>
<arg
file=
"${protos-dir}/google/protobuf/benchmark.proto"
/>
<arg
file=
"${protos-dir}/google/protobuf/benchmark_speed.proto"
/>
<arg
file=
"${protos-dir}/google/protobuf/descriptor.proto"
/>
<arg
file=
"${protos-dir}/google/protobuf/csharp_options.proto"
/>
<arg
file=
"${protos-dir}/google/protobuf/unittest.proto"
/>
...
...
@@ -148,13 +153,6 @@
<include
name=
"AddressBookProtos.cs"
/>
</fileset>
</copy>
<copy
todir=
"${src}/ProtoBench"
>
<fileset
basedir=
"${tmp-dir}"
>
<include
name=
"BenchmarkProtoFile.cs"
/>
<include
name=
"BenchmarkSpeedProtoFile.cs"
/>
</fileset>
</copy>
</target>
<target
name=
"build"
...
...
@@ -165,6 +163,64 @@
</msbuild>
</target>
<target
name=
"benchmark"
description=
"Builds and runs benchmarks"
>
<delete
dir=
"${benchmark-run-dir}"
/>
<mkdir
dir=
"${benchmark-run-dir}"
/>
<!-- Generate benchmark source files -->
<exec
program=
"${tools-protoc}"
workingdir=
"${benchmark-run-dir}"
>
<arg
value=
"--proto_path=${benchmark-data-dir};${protos-dir}"
/>
<arg
value=
"--include_imports=compiled.pb"
/>
<arg
value=
"--descriptor_set_out=compiled.pb"
/>
<arg
file=
"${benchmark-data-dir}/google_size.proto"
/>
<arg
file=
"${benchmark-data-dir}/google_speed.proto"
/>
</exec>
<exec
program=
"${tools-protogen}"
workingdir=
"${benchmark-run-dir}"
>
<arg
value=
"compiled.pb"
/>
</exec>
<!-- Build them into a library -->
<csc
target=
"library"
output=
"${benchmark-run-dir}/BenchmarkTypes.dll"
optimize=
"true"
>
<sources>
<include
name=
"${benchmark-run-dir}/GoogleSizeProtoFile.cs"
/>
<include
name=
"${benchmark-run-dir}/GoogleSpeedProtoFile.cs"
/>
</sources>
<references>
<include
name=
"${src}/ProtocolBuffers/bin/${build-configuration}/Google.ProtocolBuffers.dll"
/>
</references>
</csc>
<!-- Copy everything we need into the same directory -->
<copy
todir=
"${benchmark-run-dir}"
flatten=
"true"
>
<fileset>
<include
name=
"${src}/ProtocolBuffers/bin/${build-configuration}/Google.ProtocolBuffers.dll"
/>
<include
name=
"${src}/ProtoBench/bin/${build-configuration}/ProtoBench.exe"
/>
<include
name=
"${benchmark-data-dir}/google_message1.dat"
/>
<include
name=
"${benchmark-data-dir}/google_message2.dat"
/>
</fileset>
</copy>
<!-- Run! -->
<exec
program=
"${benchmark-run-dir}/ProtoBench.exe"
workingdir=
"${benchmark-run-dir}"
output=
"${benchmark-run-dir}/results.txt"
>
<arg
value=
"Google.ProtocolBuffers.ProtoBench.SizeMessage1,BenchmarkTypes"
/>
<arg
value=
"google_message1.dat"
/>
<arg
value=
"Google.ProtocolBuffers.ProtoBench.SpeedMessage1,BenchmarkTypes"
/>
<arg
value=
"google_message1.dat"
/>
<arg
value=
"Google.ProtocolBuffers.ProtoBench.SizeMessage2,BenchmarkTypes"
/>
<arg
value=
"google_message2.dat"
/>
<arg
value=
"Google.ProtocolBuffers.ProtoBench.SpeedMessage2,BenchmarkTypes"
/>
<arg
value=
"google_message2.dat"
/>
</exec>
</target>
<target
name=
"test"
description=
"Runs all unit tests"
>
<nunit2>
...
...
@@ -174,21 +230,6 @@
</nunit2>
</target>
<target
name=
"perf-test"
description=
"Runs all performance tests"
>
<exec
program=
"${tools-protobench}"
workingdir=
"${testdata-dir}"
>
<arg
value=
"Google.ProtocolBuffers.ProtoBench.Message1,ProtoBench"
/>
<arg
value=
"benchmark_message1.dat"
/>
<arg
value=
"Google.ProtocolBuffers.ProtoBench.SpeedMessage1,ProtoBench"
/>
<arg
value=
"benchmark_message1.dat"
/>
<arg
value=
"Google.ProtocolBuffers.ProtoBench.Message3,ProtoBench"
/>
<arg
value=
"benchmark_message3.dat"
/>
<arg
value=
"Google.ProtocolBuffers.ProtoBench.SpeedMessage3,ProtoBench"
/>
<arg
value=
"benchmark_message3.dat"
/>
</exec>
</target>
<target
name=
"dist"
description=
"Copies compiled binaries into the output directory"
>
<delete
dir=
"${output-dir}"
/>
...
...
@@ -202,8 +243,7 @@
<include
name=
"ProtoDump/bin/${build-configuration}/ProtoDump.exe"
/>
<include
name=
"ProtoBench/bin/${build-configuration}/ProtoBench.exe"
/>
</fileset>
</copy>
</copy>
</target>
...
...
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