Commit Graph

2114 Commits

Author SHA1 Message Date
teboring
3af2f4d469 Add two languages (objectivec and csharp) to post_process_dist.sh 2015-05-23 10:38:56 -07:00
Paul Yang
7b27eec009 Merge pull request #416 from TeBoring/master
Update version number to 3.0.0-alpha-3
2015-05-23 10:25:03 -07:00
teboring
9839c0c2c9 Update version number to 3.0.0-alpha-3 2015-05-23 09:20:23 -07:00
Feng Xiao
55df12194f Merge pull request #341 from yukawa/fix-undef-GOOGLE_PROTOBUF_MISSING_HASH
Undef GOOGLE_PROTOBUF_MISSING_HASH after it is used.
2015-05-22 15:56:34 -07:00
Paul Yang
48f95941bc Merge pull request #410 from thomasvl/objc_alpha2_drop
Objective C Second Alpha Drop
2015-05-22 14:12:15 -07:00
Thomas Van Lenten
1dcc329427 Objective C Second Alpha Drop
- Style fixups in the code.
- map<> serialization fixes and more tests.
- Autocreation of map<> fields (to match repeated fields).
- @@protoc_insertion_point(global_scope|imports).
- Fixup proto2 syntax extension support.
- Move all startup code to +initialize so it happen on class usage and not app startup.
- Have generated headers use forward declarations and move imports into generated code, reduces what is need at compile time to speed up compiled and avoid pointless rippling of rebuilds.
2015-05-22 14:27:31 -04:00
Paul Yang
d94e65afda Merge pull request #413 from TeBoring/master
down-integrate internal changes
2015-05-21 20:11:26 -07:00
Bo Yang
5db217305f down-integrate internal changes 2015-05-21 19:32:02 -07:00
Paul Yang
e1000189bf Merge pull request #411 from xfxyjwf/master
Add default import paths for descriptor.proto and well-known protos.
2015-05-21 18:45:23 -07:00
Paul Yang
5eb73dfcce Merge pull request #412 from xfxyjwf/java_wkt
Include well-known types in Java runtime.
2015-05-21 18:34:08 -07:00
Feng Xiao
1aacb4fbbf Include well-known types in Java runtime.
Change-Id: I816fe2fac7fccbcd96dd8510c7c9b5e7996aeadc
2015-05-21 17:28:05 -07:00
Feng Xiao
e9abc404df Add default import paths for descriptor.proto and other well-known types to protoc.
Change-Id: I4afa295de4c8ed2a4cd0919cf84aedcd1327d9a5
2015-05-21 16:45:47 -07:00
Paul Yang
56095026cc Merge pull request #389 from jcanizales/add-podspec
Adds a podspec for the proto3 Objective-C runtime.
2015-05-21 14:16:34 -07:00
Paul Yang
c3480926f9 Merge pull request #402 from thomasvl/objc_on_win
Getting the ObjC generator building on Windows.
2015-05-21 11:20:15 -07:00
Jan Tattermusch
3668a224f3 Merge pull request #394 from ironhidegames/csharp-aot-ios
Solves AOT compilation issue for Unity - iOS
2015-05-21 08:48:27 -07:00
Ruben Garat
83bcfefb0b added concrete IEqualityComparer<ExtensionIntPair> implementation in ExtensionRegistryLite.cs to prevent AOT compilation issue with unity in iOS 2015-05-20 18:07:09 -03:00
Feng Xiao
08ec9dcb0b Merge pull request #406 from AustinSchuh/unsigned_has_bits
Marked compiler literal unsigned.
2015-05-20 10:23:40 -07:00
Jie Luo
f71eea8873 Merge pull request #399 from jtattermusch/csharp_travis
C# travis integration
2015-05-20 10:20:37 -07:00
Austin Schuh
e826837f7e Marked compiler literal unsigned.
When compiling a protobuf with gcc 3.3.2 for powerpc, I ran into the
following warning message:

INFO: From Compiling my_proto.pb.cc powerpc-603e-linux-gcc:
bazel-out/local_linux-dbg/genfiles/my_proto.pb.cc: In member
   function `virtual void MyProto::Clear()':
   bazel-out/local_linux-dbg/genfiles/my_proto.pb.cc:223: warning: this
      decimal constant is unsigned only in ISO C90

The line in the proto file that was triggering it was:

  if (_has_bits_[24 / 32] & 4278190080) {
    ZR_(field1_, field2_);
  }

_has_bits_ is a uint32.  The constant mask should therefore be
unsigned.  This change updates the constant to be generated as
unsigned.
2015-05-19 23:22:20 -07:00
Thomas Van Lenten
ce55ff9441 Getting the ObjC generator building on Windows.
Remove the ClassList support (maybe bring it back in the future).
Trim the includes to hopefully get a working Window build.
Add some more returns after switches for compilers that warn even when all values of the enum are handled.
Use ghtonl instead of htonl.
Change the use of [u]int(8,32)_t within the ObjC generator code to [u]int(8,32) to match the rest of the compiler.
Add objective-c generator files to Visual Studio project.
2015-05-19 20:25:19 -04:00
Joshua Haberman
4324bf6bf2 Merge pull request #405 from cfallin/ruby-speed
Ruby C extension speedup: don't re-intern constant string needlessly.
2015-05-19 16:59:22 -07:00
Chris Fallin
231886f632 Ruby C extension speedup: don't re-intern constant string needlessly.
Also fixed lines with > 80 char length.
2015-05-19 16:19:00 -07:00
Jan Tattermusch
ddb36efe18 csharp travis integration 2015-05-18 20:28:48 -07:00
Jan Tattermusch
a8b38c598d Merge pull request #397 from jskeet/csharp
Generate *all* protos in the script, applying fixups.
2015-05-18 17:13:50 -07:00
Joshua Haberman
202f87f8de Merge pull request #387 from cfallin/ruby-upb-update
Update MRI C Ruby extension to use new version of upb (with upb_env).
2015-05-18 14:07:21 -07:00
Paul Yang
96bf11be8f Merge pull request #398 from thomasvl/post_csharp_quick_updates
Post csharp landing fixup.
2015-05-18 13:23:51 -07:00
Thomas Van Lenten
ffa2e377f3 Post csharp landing fixup.
Re-add the objc prefix that got removed by accident.
Regenerate the generated descriptors (C++ and ObjC).
2015-05-18 12:57:33 -04:00
Jon Skeet
b1a395ce07 Generate *all* protos in the script, applying fixups.
We still have some protos which aren't generated how we want them to be:

- Until we have an option to specify the "umbrella" class, DescriptorProtoFile
  will be broken. (The change of name here affects the reflection descriptor,
  which accounts for most of the change. That's easier than trying to work out
  exactly which occurrences of Descriptor need changing though.)
- That change affects UnittestCustomOptions
- Issue #307 breaks Unittest.cs

After this commit, we don't have the record of the fixups in the files themselves
any more, but one centralized record in the shell script.
2015-05-16 11:38:27 +01:00
Joshua Haberman
17ca0fee20 Merge pull request #351 from tamird/remove-manifest-fix-dist
[PYTHON] Only generate protos in development
2015-05-15 15:14:32 -07:00
Tamir Duberstein
e4f4d9fe83 Only generate protos in development
Fixes #333.
2015-05-15 17:53:00 -04:00
Tamir Duberstein
c91d9ab0fd Allow tests to run on OS X 2015-05-15 17:52:59 -04:00
Tamir Duberstein
e54c14552f Don't hardcode bash 2015-05-15 17:41:04 -04:00
Tamir Duberstein
5018c433ed Use glob to simplify 2015-05-15 17:41:04 -04:00
Chris Fallin
d326277397 Update MRI C Ruby extension to use new version of upb.
- Alter encode/decode paths to use the `upb_env` (environment)
  abstraction.
- Update upb amalgamation to upstream `93791bfe`.
- Fix a compilation warning (void*->char* cast).
- Modify build flags so that upb doesn't produce warnings -- the Travis
  build logs were pretty cluttered previously.
2015-05-15 11:36:12 -07:00
Chris Fallin
a526605aec Merge pull request #338 from skippy/encode-decode-helpers
ruby: Encode decode cleanup and behavior normalization
2015-05-15 10:52:56 -07:00
Jie Luo
09e584b57a Merge pull request #391 from jtattermusch/generate_protos_windows_friendly
Make generate_protos.sh Windows-friendly.
2015-05-15 10:07:04 -07:00
Jorge Canizales
46b0a65702 Adds the podspec to objectivec_EXTRA_DIST in Makefile.am 2015-05-14 22:38:52 -07:00
Jorge Canizales
244366f8a8 Undo previous commit: Make all headers public instead.
Apparently, in Cocoapods, all recursive #imports of public headers need
to be public.
2015-05-14 16:29:40 -07:00
Jorge Canizales
56ffef9f33 Restricts public headers to GPBProtocolBuffers.h and GPBProtocolBuffers_RuntimeSupport.h 2015-05-14 16:07:49 -07:00
Chris Fallin
e96b5b6b7b Merge pull request #385 from cfallin/travis-refactor
Refactor Travis tests: split configs and run in parallel.
2015-05-14 15:05:08 -07:00
Jie Luo
aa8c951ef5 Merge pull request #384 from google/csharp
Merge protobuf C# into master (only C# proto2 is supported)
2015-05-14 14:54:36 -07:00
Jorge Canizales
592c44f3ea Makes _PackagePrivate.h files private 2015-05-14 14:16:40 -07:00
Jorge Canizales
687a5fef9d Adds the initial version of the podspec for the proto3 Objective-C runtime. 2015-05-14 13:50:04 -07:00
Chris Fallin
20e94b24dd Refactor Travis tests: split configs and run in parallel. 2015-05-14 11:48:21 -07:00
Chris Fallin
b481a4f920 Merge pull request #340 from skippy/add-array-like-methods
ruby: make repeated_field quack like an array
2015-05-14 10:55:35 -07:00
Adam Greene
cd7ebbe54f make repeated_field quack like an array 2015-05-14 10:38:11 -07:00
Jon Skeet
734393d0f9 Make generate_protos.sh Windows-friendly.
To my surprise, executing generate_protos.sh used the version of Bash installed with Git for Windows by default.
After a few modifications to detect the most appropriate protoc to use, this worked pretty simply.
This change also:
- adds generation of the address book tutorial proto,
- fixes the addressbook.proto to specify proto2 explicitly (to avoid a warning from protoc; I don't think we want warnings...)
- fixes the addressbook.proto C# namespace (which I thought I'd done before, but apparently hadn't)
- includes the regenerated UnittestCustomOptions.cs apart from the DescriptorProtoFIle => Descriptor change
2015-05-14 09:11:57 +01:00
Feng Xiao
5bd8b680ba Merge branch 'gerrit' 2015-05-13 16:18:56 -07:00
Chris Fallin
2fe0483848 Merge pull request #383 from cfallin/ruby-travis
Add Ruby to Travis testing
2015-05-13 15:39:45 -07:00
Jie Luo
2d9b1c592f Merge pull request #382 from jtattermusch/integrate_from_master
Integrate changes from latest master branch into csharp branch.
2015-05-13 15:24:42 -07:00