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
343d9f54
Commit
343d9f54
authored
Jan 16, 2009
by
Jon Skeet
Committed by
unknown
Jan 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgraded to protoc.exe 2.0.3. Added new build target of clean-build
parent
8f8186a3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
123 additions
and
116 deletions
+123
-116
ProtocolBuffers.build
ProtocolBuffers.build
+23
-0
protoc.exe
lib/protoc.exe
+0
-0
benchmark.proto
protos/google/protobuf/benchmark.proto
+0
-1
unittest.proto
protos/google/protobuf/unittest.proto
+0
-1
unittest_embed_optimize_for.proto
protos/google/protobuf/unittest_embed_optimize_for.proto
+0
-1
unittest_import.proto
protos/google/protobuf/unittest_import.proto
+0
-1
unittest_mset.proto
protos/google/protobuf/unittest_mset.proto
+0
-1
unittest_optimize_for.proto
protos/google/protobuf/unittest_optimize_for.proto
+0
-1
BenchmarkProtoFile.cs
src/ProtoBench/BenchmarkProtoFile.cs
+57
-59
DescriptorsTest.cs
src/ProtocolBuffers.Test/DescriptorsTest.cs
+3
-3
ReflectionTester.cs
src/ProtocolBuffers.Test/ReflectionTester.cs
+2
-2
UnitTestEmbedOptimizeForProtoFile.cs
...fers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
+7
-9
UnitTestImportProtoFile.cs
...rotocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
+5
-7
UnitTestMessageSetProtoFile.cs
...colBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
+14
-16
UnitTestOptimizeForProtoFile.cs
...olBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
+12
-14
UnitTestProtoFile.cs
src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
+0
-0
No files found.
ProtocolBuffers.build
View file @
343d9f54
...
...
@@ -44,6 +44,29 @@
value=
"${src}/ProtoGen/bin/${tools-protogen-config}/protogen.exe"
overwrite=
"false"
/>
<target
name=
"clean-build"
description=
"Rebuilds all source and binaries, including distribution"
>
<!--
- Use call instead of dependencies to make it clear what's going on: we
- need to call some targets multiple times.
-->
<call
target=
"clean"
/>
<call
target=
"build"
/>
<call
target=
"generate-source"
/>
<call
target=
"copy-generated-source"
/>
<!-- Now we've got fresh source, build again -->
<call
target=
"clean"
/>
<call
target=
"build"
/>
<!--
- In particularly insane situations we should possibly do another
- round of generating source and building, but it gets silly.
-->
<call
target=
"test"
/>
<call
target=
"dist"
/>
</target>
<target
name=
"clean"
description=
"Removes built binaries (of all configurations) and the source generation directory"
>
<delete>
...
...
lib/protoc.exe
View file @
343d9f54
No preview for this file type
protos/google/protobuf/benchmark.proto
View file @
343d9f54
import
"google/protobuf/csharp_options.proto"
;
import
"google/protobuf/descriptor.proto"
;
option
(
google.protobuf.csharp_file_options
)
.
namespace
=
"Google.ProtocolBuffers.BenchmarkProtos"
;
option
(
google.protobuf.csharp_file_options
)
.
umbrella_classname
=
"BenchmarkProtoFile"
;
...
...
protos/google/protobuf/unittest.proto
View file @
343d9f54
// Additional options required for C# generation. File from copyright
// line onwards is as per original distribution.
import
"google/protobuf/csharp_options.proto"
;
import
"google/protobuf/descriptor.proto"
;
option
(
google.protobuf.csharp_file_options
)
.
namespace
=
"Google.ProtocolBuffers.TestProtos"
;
option
(
google.protobuf.csharp_file_options
)
.
umbrella_classname
=
"UnitTestProtoFile"
;
...
...
protos/google/protobuf/unittest_embed_optimize_for.proto
View file @
343d9f54
// Additional options required for C# generation. File from copyright
// line onwards is as per original distribution.
import
"google/protobuf/csharp_options.proto"
;
import
"google/protobuf/descriptor.proto"
;
option
(
google.protobuf.csharp_file_options
)
.
namespace
=
"Google.ProtocolBuffers.TestProtos"
;
option
(
google.protobuf.csharp_file_options
)
.
umbrella_classname
=
"UnitTestEmbedOptimizeForProtoFile"
;
...
...
protos/google/protobuf/unittest_import.proto
View file @
343d9f54
// Additional options required for C# generation. File from copyright
// line onwards is as per original distribution.
import
"google/protobuf/csharp_options.proto"
;
import
"google/protobuf/descriptor.proto"
;
option
(
google.protobuf.csharp_file_options
)
.
namespace
=
"Google.ProtocolBuffers.TestProtos"
;
option
(
google.protobuf.csharp_file_options
)
.
umbrella_classname
=
"UnitTestImportProtoFile"
;
...
...
protos/google/protobuf/unittest_mset.proto
View file @
343d9f54
// Additional options required for C# generation. File from copyright
// line onwards is as per original distribution.
import
"google/protobuf/csharp_options.proto"
;
import
"google/protobuf/descriptor.proto"
;
option
(
google.protobuf.csharp_file_options
)
.
namespace
=
"Google.ProtocolBuffers.TestProtos"
;
option
(
google.protobuf.csharp_file_options
)
.
umbrella_classname
=
"UnitTestMessageSetProtoFile"
;
...
...
protos/google/protobuf/unittest_optimize_for.proto
View file @
343d9f54
// Additional options required for C# generation. File from copyright
// line onwards is as per original distribution.
import
"google/protobuf/csharp_options.proto"
;
import
"google/protobuf/descriptor.proto"
;
option
(
google.protobuf.csharp_file_options
)
.
namespace
=
"Google.ProtocolBuffers.TestProtos"
;
option
(
google.protobuf.csharp_file_options
)
.
umbrella_classname
=
"UnitTestOptimizeForProtoFile"
;
...
...
src/ProtoBench/BenchmarkProtoFile.cs
View file @
343d9f54
...
...
@@ -16,67 +16,65 @@ namespace Google.ProtocolBuffers.BenchmarkProtos {
global
::
System
.
Convert
.
FromBase64String
(
"Ch9nb29nbGUvcHJvdG9idWYvYmVuY2htYXJrLnByb3RvEhdwcm90bzIuYmVu"
+
"Y2htYXJrLnYyX2FwaRokZ29vZ2xlL3By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olBuffers
.
DescriptorProtos
.
CSharpOptions
.
Descriptor
,
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
});
#
endregion
...
...
src/ProtocolBuffers.Test/DescriptorsTest.cs
View file @
343d9f54
...
...
@@ -54,9 +54,9 @@ namespace Google.ProtocolBuffers {
Assert
.
AreEqual
(
"UnittestProto"
,
file
.
Options
.
JavaOuterClassname
);
Assert
.
AreEqual
(
"google/protobuf/unittest.proto"
,
file
.
Proto
.
Name
);
// TODO(jonskeet): Either change to expect
3
dependencies, or don't emit them.
// Assert.AreEqual(
1
, file.Dependencies.Count);
Assert
.
AreEqual
(
UnitTestImportProtoFile
.
Descriptor
,
file
.
Dependencies
[
2
]);
// TODO(jonskeet): Either change to expect
2
dependencies, or don't emit them.
// Assert.AreEqual(
2
, file.Dependencies.Count);
Assert
.
AreEqual
(
UnitTestImportProtoFile
.
Descriptor
,
file
.
Dependencies
[
1
]);
MessageDescriptor
messageType
=
TestAllTypes
.
Descriptor
;
Assert
.
AreEqual
(
messageType
,
file
.
MessageTypes
[
0
]);
...
...
src/ProtocolBuffers.Test/ReflectionTester.cs
View file @
343d9f54
...
...
@@ -87,10 +87,10 @@ namespace Google.ProtocolBuffers {
this
.
extensionRegistry
=
extensionRegistry
;
this
.
file
=
baseDescriptor
.
File
;
// TODO(jonskeet): We've got
3
dependencies, not 1 - because of the C# options. Hmm.
// TODO(jonskeet): We've got
2
dependencies, not 1 - because of the C# options. Hmm.
// Assert.AreEqual(1, file.Dependencies.Count);
// TODO(jonskeet): Find dependency by name instead of number?
this
.
importFile
=
file
.
Dependencies
[
2
];
this
.
importFile
=
file
.
Dependencies
[
1
];
MessageDescriptor
testAllTypes
;
if
(
extensionRegistry
==
null
)
{
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
View file @
343d9f54
...
...
@@ -16,17 +16,15 @@ namespace Google.ProtocolBuffers.TestProtos {
global
::
System
.
Convert
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pbd
::
FileDescriptor
[]
{
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpOptions
.
Descriptor
,
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestOptimizeForProtoFile
.
Descriptor
,
});
#
endregion
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
View file @
343d9f54
...
...
@@ -16,15 +16,13 @@ namespace Google.ProtocolBuffers.TestProtos {
global
::
System
.
Convert
.
FromBase64String
(
"CiVnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0LnByb3RvEhhwcm90"
+
"b2J1Zl91bml0dGVzdF9pbXBvcnQaJGdvb2dsZS9wcm90b2J1Zi9jc2hhcnBf"
+
"b3B0aW9ucy5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJv"
+
"dG8iGgoNSW1wb3J0TWVzc2FnZRIJCgFkGAEgASgFKjwKCkltcG9ydEVudW0S"
+
"DgoKSU1QT1JUX0ZPTxAHEg4KCklNUE9SVF9CQVIQCBIOCgpJTVBPUlRfQkFa"
+
"EAlCWwoYY29tLmdvb2dsZS5wcm90b2J1Zi50ZXN0SAHCPjwKIUdvb2dsZS5Q"
+
"cm90b2NvbEJ1ZmZlcnMuVGVzdFByb3RvcxIXVW5pdFRlc3RJbXBvcnRQcm90"
+
"b0ZpbGU="
),
"b3B0aW9ucy5wcm90byIaCg1JbXBvcnRNZXNzYWdlEgkKAWQYASABKAUqPAoK"
+
"SW1wb3J0RW51bRIOCgpJTVBPUlRfRk9PEAcSDgoKSU1QT1JUX0JBUhAIEg4K"
+
"CklNUE9SVF9CQVoQCUJbChhjb20uZ29vZ2xlLnByb3RvYnVmLnRlc3RIAcI+"
+
"PAohR29vZ2xlLlByb3RvY29sQnVmZmVycy5UZXN0UHJvdG9zEhdVbml0VGVz"
+
"dEltcG9ydFByb3RvRmlsZQ=="
),
new
pbd
::
FileDescriptor
[]
{
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpOptions
.
Descriptor
,
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
});
#
endregion
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
View file @
343d9f54
...
...
@@ -16,24 +16,22 @@ namespace Google.ProtocolBuffers.TestProtos {
global
::
System
.
Convert
.
FromBase64String
(
"CiNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfbXNldC5wcm90bxIRcHJvdG9i"
+
"dWZfdW5pdHRlc3QaJGdvb2dsZS9wcm90b2J1Zi9jc2hhcnBfb3B0aW9ucy5w"
+
"cm90bxogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8iHgoOVGVz"
+
"dE1lc3NhZ2VTZXQqCAgEEICAgIACOgIIASJRChdUZXN0TWVzc2FnZVNldENv"
+
"bnRhaW5lchI2CgttZXNzYWdlX3NldBgBIAEoCzIhLnByb3RvYnVmX3VuaXR0"
+
"ZXN0LlRlc3RNZXNzYWdlU2V0IpYBChhUZXN0TWVzc2FnZVNldEV4dGVuc2lv"
+
"bjESCQoBaRgPIAEoBTJvChVtZXNzYWdlX3NldF9leHRlbnNpb24SIS5wcm90"
+
"b2J1Zl91bml0dGVzdC5UZXN0TWVzc2FnZVNldBiwpl4gASgLMisucHJvdG9i"
+
"dWZfdW5pdHRlc3QuVGVzdE1lc3NhZ2VTZXRFeHRlbnNpb24xIpgBChhUZXN0"
+
"TWVzc2FnZVNldEV4dGVuc2lvbjISCwoDc3RyGBkgASgJMm8KFW1lc3NhZ2Vf"
+
"c2V0X2V4dGVuc2lvbhIhLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RNZXNzYWdl"
+
"U2V0GPm7XiABKAsyKy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWVzc2FnZVNl"
+
"dEV4dGVuc2l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C"
+
"RUgBwj5ACiFHb29nbGUuUHJvdG9jb2xCdWZmZXJzLlRlc3RQcm90b3MSG1Vu"
+
"aXRUZXN0TWVzc2FnZVNldFByb3RvRmlsZQ=="
),
new
pbd
::
FileDescriptor
[]
{
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpOptions
.
Descriptor
,
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
});
#
endregion
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
View file @
343d9f54
...
...
@@ -16,22 +16,20 @@ namespace Google.ProtocolBuffers.TestProtos {
global
::
System
.
Convert
.
FromBase64String
(
"Citnb29nbGUvcHJvdG9idWYvdW5pdHRlc3Rfb3B0aW1pemVfZm9yLnByb3Rv"
+
"EhFwcm90b2J1Zl91bml0dGVzdBokZ29vZ2xlL3Byb3RvYnVmL2NzaGFycF9v"
+
"cHRpb25zLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90"
+
"bxoeZ29vZ2xlL3Byb3RvYnVmL3VuaXR0ZXN0LnByb3RvIpICChRUZXN0T3B0"
+
"aW1pemVkRm9yU2l6ZRIJCgFpGAEgASgFEi4KA21zZxgTIAEoCzIhLnByb3Rv"
+
"YnVmX3VuaXR0ZXN0LkZvcmVpZ25NZXNzYWdlKgkI6AcQgICAgAIyQAoOdGVz"
+
"dF9leHRlbnNpb24SJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0T3B0aW1pemVk"
+
"Rm9yU2l6ZRjSCSABKAUycgoPdGVzdF9leHRlbnNpb24yEicucHJvdG9idWZf"
+
"dW5pdHRlc3QuVGVzdE9wdGltaXplZEZvclNpemUY0wkgASgLMi8ucHJvdG9i"
+
"dWZfdW5pdHRlc3QuVGVzdFJlcXVpcmVkT3B0aW1pemVkRm9yU2l6ZSIpChxU"
+
"ZXN0UmVxdWlyZWRPcHRpbWl6ZWRGb3JTaXplEgkKAX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
DescriptorProtos
.
CSharpOptions
.
Descriptor
,
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestProtoFile
.
Descriptor
,
});
#
endregion
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
View file @
343d9f54
This diff is collapsed.
Click to expand it.
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