Commit Graph

5598 Commits

Author SHA1 Message Date
Jozef Izso
b1fecd0dea Include file information in all DLL and EXE outputs 2018-04-28 00:12:38 +02:00
Jozef Izso
3415201d1d Add file information to Windows binaries 2018-04-27 23:44:38 +02:00
Feng Xiao
fc922d16ed
Merge pull request #4568 from hectim/master
fixed typo
2018-04-27 12:21:15 -07:00
Feng Xiao
7f2c3cec63
Merge pull request #4550 from Mizux/master
CMake: Update CXX Standard management
2018-04-27 12:11:25 -07:00
Jon Skeet
1b219a174c Fix to allow AOT compilers to play nicely with reflection
With this fix, Unity using IL2CPP should work with one of two
approaches:

- Call `FileDescriptor.ForceReflectionInitialization<T>` for every
  enum present in generated code (including oneof case enums)
- Ensure that IL2CPP uses the same code for int and any int-based
  enums

The former approach is likely to be simpler, unless IL2CPP changes
its default behavior. We *could* potentially generate the code
automatically, but that makes me slightly uncomfortable in terms of
generating code that's only relevant in one specific scenario. It
would be reasonably easy to write a tool (separate from protoc) to
generate the code required for any specific set of assemblies, so
that Unity users can include it in their application. We can always
decide to change to generate it automatically later.
2018-04-27 16:47:46 +01:00
Brady Killeen
9ba2fd3039 typo 2018-04-26 18:27:03 -06:00
Jisi Liu
a21f225824
Merge pull request #4553 from pherl/ruby
Set ext.no_native = true for non mac platform
2018-04-25 14:16:13 -07:00
Jisi Liu
9972e1608e Set ext.no_native = true for non mac platform
From:
https://github.com/rake-compiler/rake-compiler/issues/146#issuecomment-368539245
2018-04-25 09:52:30 -07:00
Corentin Le Molgat
c3b152c7e0 CMake: Update CXX Standard management 2018-04-24 17:21:16 +02:00
Thomas Van Lenten
8417871a71 Move to Xcode 9.3 which also means a High Sierra image. 2018-04-21 12:04:03 -04:00
Thomas Van Lenten
b59da6d099 Remove the iOS Test App.
The tests can run as what Apple calls a Logic Test (under xctest), which means
it doesn't have to load an full UI App under the simulator, which speeds things
up a fair amount.
2018-04-20 17:26:38 -04:00
Yilun Chong
c36eeed07a
Merge pull request #4520 from BSBandme/fix_kokoro_benchmark_build
Fix benchmark build
2018-04-20 10:08:01 -07:00
Sydney Acksman
4ca46ede5c Write messages to backing field in generated C# cloning code (#4440)
* Edited MessageFieldGenerator to clone to backing field instead of property

* Generated C# proto code
2018-04-19 11:57:31 -07:00
Feng Xiao
0dc4d75da7
Merge pull request #4504 from xfxyjwf/lite
Cleanup + documentation for Java Lite runtime.
2018-04-18 16:42:24 -07:00
Feng Xiao
a29e2bfb3b Update Makefile.am for Java lite files. 2018-04-18 12:18:38 -07:00
Yilun Chong
8f3507360c Fix benchmark build 2018-04-16 17:01:18 -07:00
Adam Cozzette
9497a657d5
Merge pull request #4517 from rcane/feature/vc2017_build_fix
Fixed a Visual Studio 2017 build error. (#4488)
2018-04-16 16:08:30 -07:00
Yilun Chong
a9d9326ab2
Merge pull request #4510 from BSBandme/fix_kokoro_benchmark_build
fix java benchmark, fix dashboard build
2018-04-16 15:27:15 -07:00
Ronny Krüger
7d6d5f9132 Fixed a Visual Studio 2017 build error. (#4488)
The current 15.6.x versions of Visual Studio 2017 contain a bug that
prevent them from compiling the following construct under certain
conditions:

std::unique_ptr<std::unique_ptr<Foo> []> foos;

This will fail to compile if Foo is an abstract class. To work-around
the problem the whole construct was change into:

std::vector<std::unique_ptr<Foo>> foos;

This not only fixes the compiler error but is also more readable than
previous version.
2018-04-16 09:58:24 +02:00
Yilun Chong
092134593d fix java benchmark, fix dashboard build 2018-04-13 14:54:58 -07:00
Feng Xiao
7d55040eeb Cleanup + documentation for Java Lite runtime. 2018-04-12 17:58:55 -07:00
Yilun Chong
320d56c833
Merge pull request #4478 from BSBandme/proto2_to_proto3_tools
Add gogo benchmark
2018-04-10 15:56:11 -07:00
Yilun Chong
e3af02303a fix python 2018-04-10 14:48:03 -07:00
Yilun Chong
76d76ae39c fix conflicts 2018-04-10 14:37:33 -07:00
Yilun Chong
c703061d49 Add gogo benchmark 2018-04-10 14:32:28 -07:00
Yilun Chong
5fb73f80f2
Merge pull request #4415 from BSBandme/experiement
Add dashboard support
2018-04-10 14:23:07 -07:00
Yilun Chong
805174eda2 Add script for run and upload the benchmark result to bq 2018-04-10 13:26:17 -07:00
urfinjuezz
d7d863ea07 fix json_decode call parameters (#4381) 2018-04-09 14:14:31 -07:00
Brent Shaffer
13e627ad69 includes the expected class in the exception, otherwise the error is harder to track down (#3371) 2018-04-09 14:08:58 -07:00
Thomas Hisch
451e0446ab Add __init__.py files to compiler and util subpackages (#4117)
The compiler and util subpackages are created by the build_py class in
setup.py. This has caused an issue in the protobuf package in
conda-forge (https://github.com/conda-forge/protobuf-feedstock/issues/40),
which is fixed by this commit.
2018-04-09 12:43:10 -07:00
Paul Yang
3b6d027ba2
For windows, all python version should use /MT (#4468) 2018-04-06 15:43:32 -07:00
Thomas Van Lenten
dce8229a38 Add the files added in #4485. 2018-04-06 10:52:31 -04:00
Sergio Campama
ce24b8a224 Update Xcode settings 2018-04-06 10:37:14 -04:00
Jon Skeet
da3ce67171 Deliberately call simple code to avoid Unity linker pruning
The SampleEnumMethod method was previously only called via
reflection, so the Unity linker thought it could be removed. Ditto
the parameterless constructor in ReflectionHelper.

This PR should avoid that issue, reducing the work needed by
customers to use Google.Protobuf from Unity.
2018-04-06 08:05:32 +01:00
Feng Xiao
a72da27f5a
Merge pull request #4475 from chenchuanyin/patch-1
Fix problem: cmake build failed in c++11  by clang
2018-04-05 16:46:06 -07:00
Feng Xiao
e7e6c6b8d1
Merge pull request #4283 from ObsidianMinor/csharp/better-test-runners
[C#] Update test project to be used with dotnet test and Visual Studio Test Explorer
2018-04-04 17:01:09 -07:00
ObsidianMinor
f72ac9f987 Updated csharp/README.md to reflect testing changes 2018-04-04 16:04:12 -05:00
Silver Chan
d3e8a54020
Fix problem: cmake build failed in c++11 by clang
CMakeLists.txt adds c++11 flags for clang
2018-04-04 10:31:05 +08:00
Paul Yang
c931743461
Merge branch (#4466)
* Fix setup.py for windows build.

* Bump version number to 3.5.2

* Cat the test-suite.log on errors for presubits
2018-04-02 15:55:28 -07:00
Charlie Moad
579f81e1c6 js message support for jstype string on integers (#4332) 2018-04-02 15:44:28 -07:00
Feng Xiao
40d6eca832
Merge pull request #4467 from xfxyjwf/error
Improve error message when googletest is missing.
2018-04-02 14:46:58 -07:00
Feng Xiao
8f88a507ee Improve error message when googletest is missing. 2018-04-02 14:28:25 -07:00
Feng Xiao
7f92711085
Merge pull request #4411 from pravin-dsilva/protobuf-ppc64le
Add support for Power (ppc64le) arch
2018-04-02 13:56:22 -07:00
Feng Xiao
4274e6af2d
Merge pull request #4447 from ejona86/cleaner-protoc-artifacts
Cleaner protoc artifacts
2018-04-02 13:55:12 -07:00
Feng Xiao
c934d1d185
Merge pull request #4452 from xfxyjwf/doc
Update instructions about getting protobuf source.
2018-04-02 11:18:26 -07:00
Thomas Van Lenten
aab0f898c9
Merge pull request #4464 from thomasvl/includes3
Move ObjC WKTs to minimal imports to avoid import cycle.
2018-04-02 14:09:19 -04:00
Thomas Van Lenten
bd941d5d69 Don't generate imports for the WKTs unless generating the WKTs.
Since the generated header import GPBProtocolBuffers.h, there is no need
to generate imports for the WKTs as they will have already been imported.
2018-04-02 09:54:29 -04:00
Thomas Van Lenten
e998b8ff66 Add compile test sources for to test include order.
To ensure all headers aren't dependent on other things being imported
before/after them, make a source that just imports each header and add
it to the unittesting target, that way we ensure it can be included on
its own with ordering issues.

Also do this testing with a few generated headers that aren't part of
the library to help ensure the different generated imports needed are
complete.
2018-04-02 09:54:29 -04:00
Thomas Van Lenten
bca797dac9 Trim imports for bundled generated protos.
To avoid a cycle between headers, have the WKTs use minimal imports instead
of using the helper to get everything from the library.

Fixes https://github.com/google/protobuf/issues/4301
Fixes https://github.com/google/protobuf/issues/4403
2018-04-02 09:54:29 -04:00
Feng Xiao
014e76e2cd Update instructions about getting protobuf source. 2018-03-29 13:14:00 -07:00