aboutsummaryrefslogtreecommitdiff
path: root/BUILD
Commit message (Collapse)AuthorAgeFilesLines
...
* Silence compile warnings in bazelAndy Hochhaus2016-10-091-1/+1
|
* Remove inexist files from build.Feng Xiao2016-10-061-2/+0
|
* update files to include php generators (#2165)Jisi Liu2016-10-061-0/+3
|
* Bazel: export LICENSE file.Piotr Sikora2016-08-041-0/+2
| | | | Signed-off-by: Piotr Sikora <piotrsikora@google.com>
* Bazel build: Keep generated sources and Python runtime in the same directory.David Z. Chen2016-05-251-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users often encounter a Python import error when trying to build Python protos if protobuf is installed locally on the machine. In this case, Python ends up looking in the wrong directory when importing files (see bazelbuild/bazel#1209 and tensorflow/tensorflow#2021). It seems that the problem is caused by Python getting confused when there are Python source files that are meant to be part of the same package but are in separate directories. Prior to #1233, the Bazel build setup would copy the Python runtime sources and all generated sources for the builtin protos into the root directory (assuming that the protobuf tree is vendored in a google/protobuf directory). With #1233, the two sets of sources are kept in their respective directories but both `src/` and `python/` are added to the `PYTHONPATH` using the new `imports` attribute of the Bazel Python rules. However, both the runtime sources and the generated sources are under the same package: `google.protobuf`, causing Python to become confused when trying to import modules that are in the other directory. This patch adds a workaround to the Bazel build to add a modified version of the original `internal_copied_filegroup` macro to copy the `.proto` files under `src/` to `python/` before building the `py_proto_library` targets for the builtin protos. This ensures that the generated sources for the builtin protos will be in the same directory as the corresponding runtime sources. This patch was tested with the following: * All Python tests in protobuf * All Python tests in tensorflow * All tests in [Skydoc](https://github.com/bazelbuild/skydoc) * Importing protobuf as `//google/protobuf` * Importing and binding targets under `//external` * Importing protobuf as `//third_party/protobuf`
* Update file lists.Jisi Liu2016-04-281-1/+1
|
* Merge pull request #1416 from cwhipkey/masterFeng Xiao2016-04-201-0/+4
|\ | | | | Change protobuf CPP proto generator to support the 'lite' option in
| * Change protobuf CPP proto generator to support the 'lite' option inChad Whipkey2016-04-151-0/+4
| | | | | | | | | | | | | | | | | | proto3. Added a couple unit test proto3 files, for arena_lite and lite. Cloned the proto3_arena_unittest to test some of the basics of generated code (and to ensure that the generated proto3 test files are used by some test).
* | Merge pull request #1402 from davidzchen/py2and3Feng Xiao2016-04-191-3/+6
|\ \ | | | | | | Add missing PY2AND3 srcs_versions attributes to Python Bazel build targets
| * | Add missing PY2AND3 srcs_versions attributes to Python Bazel build targets.David Z. Chen2016-04-081-3/+6
| |/
* / Update file list to include the missing extension lite file.Jisi Liu2016-04-181-0/+2
|/
* Update BUILDAndrew Harp2016-04-041-1/+1
|
* Do not link in pthread library for Android builds.Andrew Harp2016-04-041-2/+12
| | | This is required to allow Tensorflow to build on Android without hacks. Currently we create a dummy pthread library just to satisfy this dependency for a library that does not exist on Android. See https://github.com/google/protobuf/issues/1373 for more context.
* export well known protosSteven Parkes2016-03-221-0/+6
|
* Merge pull request #1318 from smparkes/smparkes/grpcFeng Xiao2016-03-141-0/+13
|\ | | | | add java/util support based on java/util/pom.xml
| * add java/util support based on java/util/pom.xmlSteven Parkes2016-03-111-0/+13
| |
* | Merge pull request #1312 from petewarden/masterJisi Liu2016-03-121-2/+43
|\ \ | |/ |/| Bazel iOS build settings
| * Merge remote-tracking branch 'upstream/master'Pete Warden2016-03-091-37/+15
| |\
| * | Added iOS settings to Bazel buildPete Warden2016-03-091-3/+19
| | |
| * | Updated library generation with iOS optionsPete Warden2016-02-231-2/+27
| | |
* | | pass correct args to protoc for java wellknown protos when used as an ↵Steven Parkes2016-03-101-9/+2
| |/ |/| | | | | external repository
* | Remove hack for building Python support with Bazel.David Z. Chen2016-02-251-37/+15
|/ | | | | | | | | | | | | | | | This change makes use of new imports attribute for Bazel's Python rules, which enable adding directories to the PYTHONPATH. This allows us to remove the hack for building protobuf's Python support with Bazel and now allows projects to include protobuf using a Bazel external repository rather than requiring it to be imported directly into the source tree as //google/protobuf. This change also updates the protobuf BUILD file to use a named repository, @python//, for including Python headers rather than //util/python. This allows projects to specify their own package for Python headers when including protobuf with an external repository. Fixes #1230
* Added PROTOBUF_PYTHON_ALLOW_OVERSIZE_PROTOS macro and setting it whenManjunath Kudlur2016-02-161-4/+14
| | | | | | --allow_oversize_protos=true is passed to bazel build. When this macro is set, SetTotalBytesLimit is called to remove the 64MB limit on binary protos when during ParseFromString.
* Fix bazel BUILD for Java.Ming Zhao2016-01-211-6/+10
|
* Update BUILD/cmake files.Feng Xiao2015-12-281-0/+4
| | | | Change-Id: I6fa9f1b65d6c06b891aabf3f3d868364d74d727d
* Made targets relative to google/protobufManjunath Kudlur2015-12-081-4/+4
| | | | Fixes #1029
* Made building the python extension configurable via ↵Manjunath Kudlur2015-12-081-7/+24
| | | | --define=use_fast_cpp_protos=true
* Enable fast cpp protos in the python interface.Manjunath Kudlur2015-12-071-7/+41
|
* Add srcs_version = "PY2AND3" in BUILD filesGeoffrey Irving2015-12-031-0/+2
| | | | The sources themselves appear to already be Python 3 clean.
* Merge pull request #989 from jskeet/rename-umbrellaJan Tattermusch2015-11-191-1/+1
|\ | | | | Rename "umbrella" to "reflection" consistently.
| * Rename "umbrella" to "reflection" consistently.Jon Skeet2015-11-191-1/+1
| | | | | | | | This changes csharp_names.h, which will require a corresponding change in GRPC.
* | Merge pull request #977 from lberki/masterJisi Liu2015-11-191-0/+2
|\ \ | |/ |/| add headers
| * add headersLukacs T. Berki2015-11-161-0/+2
| |
* | Make the cc wkt proto target public.Jisi Liu2015-11-171-0/+1
|/
* add default_runtime attribute to cc|py rules.Jisi Liu2015-10-271-1/+5
| | | | This adds implicit dependencies to the coressponding runtime libraries.
* Update comments.Jisi Liu2015-10-221-3/+4
|
* Add six as an external dep.Jisi Liu2015-10-221-0/+1
|
* Enable python tests with testdata.Jisi Liu2015-10-221-4/+10
|
* Add runfiles to make the protobuf_test pass.Jisi Liu2015-10-211-2/+4
|
* Rename python and java bazel rules.Jisi Liu2015-10-211-4/+4
|
* avoid name duplication.Jisi Liu2015-10-201-1/+1
|
* Rename copeid_src to internal_copied_filegroupJisi Liu2015-10-201-3/+3
|
* Uncomment objc testsJisi Liu2015-10-201-7/+9
|
* Change the impl rule include to includes.Jisi Liu2015-10-201-7/+7
| | | | | We need to use the list to indicate field presense. The field must only contain 0 or 1 string element.
* Change default value of protoc on xx_proto_library rules.Jisi Liu2015-10-201-2/+12
|
* Support python for bazel.Jisi Liu2015-10-191-0/+15
|
* Python bazel support.Jisi Liu2015-10-191-29/+120
|
* Change prefix to include, and add docsJisi Liu2015-10-161-2/+2
|
* Rename deps/proto_deps to cc_libs/depsJisi Liu2015-10-161-2/+2
|
* Extract protoc action into .bzl for cc.Jisi Liu2015-10-141-25/+24
| | | | This is needed to support python bazel build.