aboutsummaryrefslogtreecommitdiff
path: root/BUILD
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3757 from spinorx/masterJisi Liu2017-10-201-43/+2
|\ | | | | Fix iOS cc_library build for protobuf.
| * Fix iOS cc_library build for protobuf.Param Reddy2017-10-151-43/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SDK and os versions were hard coded. Archs were mixed up. Because of this, Was getting errors with latest SDK: clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/' [-Wmissing-sysroot] clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/' [-Wmissing-sysroot] clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/' [-Wmissing-sysroot] In file included from external/com_google_protobuf/src/google/protobuf/io/printer.cc:35: In file included from external/com_google_protobuf/src/google/protobuf/io/printer.h:40: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:470: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:171: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:638: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61:15: fatal error: 'string.h' file not found ^~~~~~~~~~ 1 error generated. Currently none of these are needed when using bazel with https://github.com/bazelbuild/rules_apple. -target arm64-apple-ios is passed properly to clang. So -arch armv7 etc are not needed. OS_IOS is not used anywhere. Sources have: GOOGLE_PROTOBUF_NO_THREADLOCAL defined in src/google/protobuf/stubs/platform_macros.h for iOS. So __thread= is not needed. In fact now that bazel is using C++11 by default, __thread should ideally be moved to thread_local. -miphoneos-version-min is passed by rules_apple.
* | Fix bazel buildJisi Liu2017-10-181-0/+1
|/
* Don't pass -lpthread and -lm on WindowsSeth Greenstein2017-10-101-1/+3
| | | These flags are ignored by cl.exe and have no effect, but add noise to the build logs.
* Integrated internal changes from GoogleAdam Cozzette2017-09-141-0/+1
|
* Exclude addressbook.proto from C# boostrap test.Feng Xiao2017-09-111-1/+0
| | | | | This addressbook.proto now belongs to its own bazel pacakge and can't be accessed in bazel protobuf_test target.
* bazel: Add proto_library rules for well known types. Fixes #2763Jakob Buchgraber2017-09-051-15/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a proto_library rule for each well known type proto: $ bazel query "filter(\".*_proto$\", \"...\")" //:wrappers_proto //:timestamp_proto //:struct_proto //:field_mask_proto //:empty_proto //:duration_proto //:compiler_plugin_proto //:descriptor_proto //:api_proto //:type_proto //:source_context_proto //:any_proto Bazel users can reference these proto_library rules for their own language specific rules i.e. java_proto_library( name = "any_java_proto", deps = ["@com_google_protobuf//:any_proto"], ) Also set the workspace name to "com_google_protobuf", as proto_library rules reference protobuf that way.
* Fix makefile.amJisi Liu2017-07-251-0/+1
|
* Fix build filesJisi Liu2017-07-251-2/+0
|
* Merge from masterJisi Liu2017-07-251-0/+15
|
* update build file listJisi Liu2017-07-191-2/+1
|
* bazel: Make compiled jars java 6 binary compatible.Jakob Buchgraber2017-06-161-1/+2
| | | | See: https://github.com/bazelbuild/bazel/issues/3198
* Refactor cc options in BUILD file for WindowsYun Peng2017-05-311-12/+32
| | | | | Don't put gcc warnings options in copts, so that protobuf is able to build by MSVC toolchain without python wrappers.
* Merge pull request #3024 from acozzette/merge-3.3-to-masterAdam Cozzette2017-05-011-0/+10
|\ | | | | Merged 3.3.x branch to master
| * Update BUILD file for C# tests.Feng Xiao2017-03-291-0/+4
| |
| * Fix C++ build for down-integration.Feng Xiao2017-03-291-0/+6
| |
* | added "objectivec" build target (#3033)makdharma2017-05-011-0/+81
|/ | | This target will be used by gRPC iOS bazel build system.
* Compile the Java proto runtime with Java 6cgrushko2017-03-221-0/+1
| | | | in order to avoid errors related to generics when building user code in newer versions of Java.
* Update BUILDBairen Yi2017-03-211-0/+1
|
* migrate delimited messages functions to util packageByron Yi2017-03-161-0/+1
|
* Merge pull request #2751 from keveman/masterFeng Xiao2017-03-061-9/+21
|\ | | | | Added a header only cc_library target for the protobuf library.
| * Added comment explaining the protobuf_headers target.Manjunath Kudlur2017-03-021-0/+4
| |
| * Added a header only cc_library target for the protobuf library.Manjunath Kudlur2017-02-231-9/+17
| |
* | Merge pull request #2630 from blodan/masterJisi Liu2017-02-241-1/+1
|\ \ | |/ |/| FreeBSD compatibility
| * FreeBSD compatibilityDaniel Ylitalo2017-01-251-1/+1
| |
* | Update load() statement to latest stylecgrushko2017-02-081-1/+1
|/ | | | The first argument is currently implicitly a .bzl file. Change this to be explicit.
* Add a proto_lang_toolchain for Javacgrushko2017-01-121-1/+8
| | | This allows easy use of Bazel's java_proto_library native rule.
* Added Bazel genrule for generating well_known_types_embed.ccAdam Cozzette2016-12-201-0/+18
| | | | | In pull request #2517 I made this change for the CMake and autotools builds but forgot to do it for the Bazel build.
* Add missing files.Jisi Liu2016-12-051-0/+1
|
* Add a proto_lang_toolchain() for cc_proto_librarycgrushko2016-12-021-0/+7
| | | | | | | | | Bazel's built-in cc_proto_library rule uses a proto_lang_toolchain to learn how to invoke proto-compiler. To use Bazel's cc_proto_library, add the following to your project's WORKSPACE file: local_repository( name = "com_google_protobuf_cc", path = "/path/to/protobuf-distribution/" )
* Place Python extensions correctly in Bazel build.Richard Shin2016-10-181-4/+4
|
* update files to include php generatorsJisi Liu2016-10-101-0/+2
|
* 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
| |\