Commit Graph

1158 Commits

Author SHA1 Message Date
Bo Yang
3edcbaf57a Clean code 2015-02-04 13:42:16 -08:00
Bo Yang
2e32b8b569 Remove "include sstream" from command_line_interface.cc 2015-02-04 10:27:52 -08:00
Bo Yang
a1b351c55b Change flag for generating dependency file to "dependency_out". Delete
test-driver
2015-02-04 10:20:20 -08:00
Bo Yang
5fa3956ede Fix comments. 2015-02-03 21:51:29 -08:00
Bo Yang
5914ce7a16 Implement a feature to generate a dependency file. By giving protoc the flag
"--dependency_manifest_out=FILE", protoc will write dependencies of
input proto files into FILE. In FILE, the format will be
<full path to FILE>: <full path to 1st proto>\\\n <full path to 2nd proto> ...
This cl is based on https://github.com/google/protobuf/pull/178
2015-02-03 21:35:50 -08:00
Richard Geary
532c94145b Add support for outputting dependency manifest files, used by ninja and make
Use --manifest-file=somefile.d to output the dependency manifest.
This file will contain a list of files which were read by protoc as part
of creating the output files.  It doesn't include the plugin inputs if
plugins are used, that could be a later extension.
The manifest file is in the format <output file>: <input files>.  The
manifest file format only allows you to specify one output file, which
isn't a problem as it's used to detect input changes in order to detect
when to rerun the protoc command.  The output file used in the manifest
is the manifest filename itself; to use this in ninja you should declare
the manifest file as the first output as well as the depfile input.
2015-01-23 12:52:31 -05:00
Joshua Haberman
5446deaea7 Merge pull request #155 from cfallin/ruby-maps
Support for maps in the MRI C Ruby extension.
2015-01-13 13:50:11 -08:00
Chris Fallin
ace4212e60 Line-wraps at 80 chars. 2015-01-13 13:47:58 -08:00
Feng Xiao
052e0205a7 Merge pull request #160 from zhangkun83/master
Include names.h as java_names.h in the opensource tree
2015-01-12 16:18:07 -08:00
Chris Fallin
addd26cbb3 Addressed code-review comments. 2015-01-12 16:09:35 -08:00
zhangkun83
a6b3ab09e8 Align backslash vertically 2015-01-12 15:56:07 -08:00
zhangkun83
aa1713d9a4 Include names.h as java_names.h in the opensource tree 2015-01-12 15:38:59 -08:00
Chris Fallin
97b663a8be Update upb amalgamation. 2015-01-09 16:15:22 -08:00
Chris Fallin
4c92289766 Addressed code-review comments. 2015-01-09 15:37:55 -08:00
Chris Fallin
80276ac021 Addressed code-review comments. 2015-01-06 18:01:32 -08:00
Chris Fallin
fd1a3ff11d Support for maps in the MRI C Ruby extension.
This adds the Map container and support for parsing and serializing maps
in the protobuf wire format (as defined by the C++ implementation, with
MapEntry submessages in a repeated field). JSON map
serialization/parsing are not yet supported as these will require some
changes to upb as well.
2015-01-06 15:44:09 -08:00
Feng Xiao
644a6a1da7 Merge pull request #143 from Ivoz/patch-1
Update python version / setuptools instructions
2014-12-22 09:52:00 -08:00
Feng Xiao
b60a6df9ae Merge pull request #46 from adalq/version
Add __version__
2014-12-20 17:46:35 -08:00
Feng Xiao
bc3af606a7 Merge pull request #139 from c0nk/master
Improved little endian byte order detection
2014-12-20 17:43:04 -08:00
Matt Iversen
4186d4c9c9 Update python version / setuptools instructions
Reflect the change that protobuf should now only be supporting 2.6+ (I'd guess note python 3.x+ when its supported in implementation)

Refer to the Python Packaging User Guide for installing setuptools (and pip) instead of out of date telecommunity guide.
2014-12-17 20:11:08 +11:00
Kal Conley
c3e928021f Improved little endian byte order detection
Including <sys/param.h> on Mac/iOS doesn't define __BYTE_ORDER so
PROTOBUF_LITTLE_ENDIAN was never being defined. This commit adds a check
for the __LITTLE_ENDIAN__ macro which is defined by clang and Apple gcc on
little endian architectures.
2014-12-16 02:30:45 +01:00
Adal Chiriliuc
4f0170d465 Updated __version__ 2014-12-14 20:42:46 +02:00
Joshua Haberman
59692c3fc0 Merge pull request #136 from cfallin/ruby-proto3-only
Support Ruby code generation only for proto3.
2014-12-12 22:10:03 -08:00
Chris Fallin
5ce69e991a Support Ruby code generation only for proto3. 2014-12-12 18:27:19 -08:00
Feng Xiao
044e095a9b Add missing header files in src/Makefile.am 2014-12-12 17:50:43 -08:00
Feng Xiao
e7d562a242 Update ruby DIST_FILES. 2014-12-12 17:41:34 -08:00
Feng Xiao
0c7f6241e5 Adds Travis Cl support to test the code automatically. 2014-12-12 17:22:35 -08:00
Joshua Haberman
ed52203481 Merge pull request #134 from cfallin/master
Update Ruby build setup to produce gems successfully. Include upb as a single .c / .h file.
2014-12-12 16:49:45 -08:00
Chris Fallin
91473dcebf Rename protobuf Ruby module to google/protobuf and rework its build
system. The Ruby module build now uses an amalgamated distribution of
upb, and successfully builds a Ruby gem called 'google-protobuf' with
module 'google/protobuf'.
2014-12-12 15:58:26 -08:00
Feng Xiao
f473bb9903 Merge pull request #128 from krishnanm86/master
Source code refactoring. Extracted common functionality in cpp_helpers.c...
2014-12-12 11:13:15 -08:00
Krishna
2e9f5e3bac Reverting the space at the end for both files changed 2014-12-12 10:26:25 +01:00
Krishna
91552adb77 Reverting the space at the end 2014-12-12 10:25:06 +01:00
Krishna
22f96a713c Returned print_indent and print_outdent back to printservicestub and printserviceclass in python generator 2014-12-12 10:22:48 +01:00
Feng Xiao
001e82a7e0 Merge pull request #113 from nsuke/oneof-c++11
Make C++ code generation of string oneof field compatible with C++11
2014-12-11 16:05:06 -08:00
Feng Xiao
78c8200655 Describe how to get gtest source for Visual Studio users. 2014-12-11 15:36:08 -08:00
Feng Xiao
5fd12b84da Update gtest version to v1.7.0. 2014-12-11 15:17:04 -08:00
Krishna
060a2096a3 Reverted changes to cpp_helpers.cc and made code reviews to python_geenerator.cc 2014-12-11 07:45:32 +01:00
Feng Xiao
cb0ba5f04c Update version number to v3.0.0-pre 2014-12-10 21:05:46 -08:00
Feng Xiao
52909485d1 Merge branch v3.0.0-alpha-1 into master.
Conflicts:
	configure.ac
2014-12-10 20:56:13 -08:00
Krishna
7654f78029 Fixed bugs 2014-12-10 21:02:12 +01:00
Krishna
a761f061f4 Source code refactoring. Extracted common functionality in cpp_helpers.cc and python/python_generator.cc 2014-12-10 20:39:34 +01:00
Joshua Haberman
261fe97a63 Merge pull request #121 from cfallin/master
Provide a Ruby extension.
2014-12-09 17:27:54 -08:00
Feng Xiao
8d5d7cc6d0 Fix LIBPROTOBUF_PROTOBUF annotations for buliding protobuf as DLLs. 2014-12-09 17:05:10 -08:00
Chris Fallin
973f425725 Provide a Ruby extension.
This adds a Ruby extension in ruby/ that is based on the 'upb' library
(now included as a submodule), and adds support for Ruby code generation
to the protoc compiler.
2014-12-09 16:55:59 -08:00
Feng Xiao
496d47c27f Remove map_field.cc from lite-runtime. 2014-12-09 15:47:25 -08:00
Feng Xiao
fe3be0bea1 Fix vsprojects/extract_includes.bat 2014-12-09 14:47:30 -08:00
Feng Xiao
7da8121771 Fix the intermediate directory of vc project files. 2014-12-09 14:47:29 -08:00
Feng Xiao
9104da3261 Down-integrate from internal code base. 2014-12-09 11:57:52 -08:00
Feng Xiao
a0d9c59a76 Merge pull request #127 from tseaver/ignore-autogen-artifacts
Ignore artifacts from autogen.sh
2014-12-09 11:38:37 -08:00
Tres Seaver
2c495e402d Ignore artifacts from autogen.sh 2014-12-09 13:01:42 -05:00