aboutsummaryrefslogtreecommitdiff
path: root/BUILD
Commit message (Collapse)AuthorAgeFilesLines
* use flag_values = {"@bazel_tools//tools/cpp:compiler": "x"} for compiler ↵scentini2018-08-281-4/+3
| | | | config_settings
* Update build files.Feng Xiao2018-08-131-2/+6
| | | | | * Fixes https://github.com/google/protobuf/issues/5031 * Fixes https://github.com/google/protobuf/issues/5037
* Delete unused files. (#4942)Feng Xiao2018-07-191-2/+0
| | | * Delete unused files.
* objectivec: Quash -Wself-assign and -Wvla (#4897)Benjamin Barenblat2018-07-111-0/+3
| | | | | | | | | * objectivec: Quash -Wself-assign * objectivec: Set -Wno-vla when building Objective-C protobuf uses VLAs for performance reasons. Ensure Clang doesn’t complain about them.
* Merge pull request #3981 from fahhem/patch-3Adam Cozzette2018-07-021-0/+29
|\ | | | | Handle srcs in generated files by cd'ing in and out
| * Fix generated_protos_proto depsFahrzin Hemmati2018-05-071-2/+4
| |
| * Add unittest build rulesFahrzin Hemmati2018-05-071-0/+27
| |
* | Remove unclear comment.mdepristo2018-06-301-1/+0
| |
* | Remove write-strings warning from COPTs.depristo2018-06-281-1/+2
| | | | | | | | This change reduces the excessive warnings when compiling C++ protobufs like "external/protobuf_archive/python/google/protobuf/pyext/message.cc:2629:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]"
* | Make proto_api target visibleCory McLean2018-06-111-0/+1
| |
* | Merge pull request #4725 from ThomasColthurst/patch-2Feng Xiao2018-06-091-1/+0
|\ \ | | | | | | Remove cycle in dependency graph
| * | Remove cycle in dependency graphThomas Colthurst2018-06-041-1/+0
| | |
* | | Align Bazel on Windows with CMake's MSVC flags (#4720)Loo Rong Jie2018-06-051-12/+34
|/ / | | | | | | * Align Bazel on Windows with CMake's MSVC flags
* | Merge pull request #4698 from ThomasColthurst/proto_c_apiFeng Xiao2018-06-031-0/+10
|\ \ | | | | | | Introduce Proto C API; based on cl/198113115 by amauryfa
| * | Introduce Proto C API; based on cl/198113115 by amauryfaThomas Colthurst2018-05-301-0/+10
| | |
* | | Remove js_embed binary. (#4709)Feng Xiao2018-06-011-18/+0
|/ / | | | | | | * Remove js_embed binary.
* | Merge pull request #4659 from calder/bazel-python-namespace-fixFeng Xiao2018-05-241-0/+1
|\ \ | | | | | | Declare 'google' namespace when importing Python protobuf via Bazel
| * | Declare 'google' namespace when importing Python protobuf via Bazel.Calder Coalson2018-05-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `python/google/__init__.py` declares the top-level 'google' namespace so that `google.protobuf` can be imported alongside other Google Python modules like `google.auth`. This works well when installing protobuf via Pip, but the Bazel `//:python_srcs` rule doesn't include this file in its `srcs`. Bazel implicitly creates an empty `google/__init__.py`, which does *not* set up a namespace. The result is that consuming Python protobuf via Bazel breaks all other Google Python libraries. This fixes #4658.
* | | fix syntax error in BUILD fileJan Tattermusch2018-05-241-1/+1
|/ /
* / Windows: expand wildcard argumentsLaszlo Csomor2018-05-221-1/+13
|/ | | | Fixes https://github.com/google/protobuf/issues/3957
* Merge pull request #4431 from xfxyjwf/rmnanoFeng Xiao2018-03-261-11/+0
|\ | | | | Remove javanano.
| * Remove javanano.Feng Xiao2018-03-261-11/+3
| |
* | Merge pull request #4413 from pmuetschard/msvcAdam Cozzette2018-03-231-13/+6
|\ \ | | | | | | Don't assume Windows builds use MSVC.
| * | Don't assume Windows builds use MSVC.Pascal Muetschard2018-03-221-13/+6
| | | | | | | | | | | | | | | | | | Switch to using the MSVC options, not based on the cpu, but based on the compiler name. This allows building on Windows with MSYS or MinGW's gcc.
* | | Added missing .inc files to BUILDAdam Cozzette2018-03-231-0/+3
| |/ |/| | | | | This fixes the Bazel build.
* | Removed some unused C++ source filesAdam Cozzette2018-03-221-5/+0
|/
* Merge pull request #4347 from xfxyjwf/pluginpbFeng Xiao2018-03-091-1/+1
|\ | | | | Revert "Move `compiler/plugin.pb.cc` to libprotobuf with the other WKT sources."
| * Revert "Move `compiler/plugin.pb.cc` to libprotobuf with the other WKT sources."Feng Xiao2018-03-011-1/+1
| | | | | | | | This reverts commit 724f0be33d0eb42055ebe81ce0c8c7bf88ea666c.
* | Replace //:protoc and similar default macro arguments withJames O'Kane2018-03-081-1/+1
|/ | | | | | | @com_google_protobuf prefixed versions. This allows them to work in 3rd party repositories. Fix a bad visibility rule. :hidden does not exist, but :private does.
* Blacklist all WELL_KNOWN_PROTOS from Bazel C++ code generation.John Millikin2018-02-241-0/+1
| | | | | | | | | This prevents the Bazel `CcProtoAspect` from generating and linking C++ object code for these files. Without this blacklist, symbols for protobuf types depended on by `libprotobuf` may be defined multiple times and violate the ODR rule. Fixes https://github.com/google/protobuf/issues/4311
* Move `compiler/plugin.pb.cc` to libprotobuf with the other WKT sources.John Millikin2018-02-241-1/+1
| | | | | This lets all values of `WELL_KNOWN_PROTOS` be treated the same with regard to Bazel's protobuf blacklisting.
* Bazel: Support building with Java 9David Ostrovsky2018-01-311-1/+15
| | | | | | | | | | | | | | | | | | Fixes: #4256. Bazel@HEAD supports Java 9. The current code has one single issue with Java 9 compliance: the usage of sun.misc package. We add jdk.unsupported module with --add-modules compiler option for now. Long term, the usage of non public API should be avoided. To build with Java 9, build custom bazel version and issue: $ bazel --host_javabase=/usr/lib64/jvm/java-9-openjdk build \ --javacopt='--release 9' \ --java_toolchain=@bazel_tools//tools/jdk:toolchain_jdk9 \ :protobuf_java
* Drop java 6 supportDavid Ostrovsky2018-01-251-2/+2
| | | | Fixes #4220.
* Merge pull request #2834 from aj-michael/masterJisi Liu2017-12-121-0/+1
|\ | | | | Make //:protobuf_python have correct __init__.py.
| * Make //:protobuf_python have correct __init__.py.Adam Michael2017-03-101-0/+1
| | | | | | | | | | Previously //:protobuf_python set no __init__.py so Bazel created an empty one. This change makes it use the __init__.py from the repository.
* | Ran update_file_lists.sh to update Bazel and CMake file listsAdam Cozzette2017-12-071-0/+1
| | | | | | | | | | This should fix Bazel builds, since those were missing a new file (implicit_weak_message.cc).
* | Remove unhelpful build warningsJustine Tunney2017-11-171-0/+2
| | | | | | | | | | | | | | | | -Wno-writable-strings removes 230 "ISO C++11 does not allow conversion from string literal to 'char *'" warnings from TensorFlow test / build output. These happen because pyext/ sources pass string literals to Python C API data structures, e.g. PyGetSetDef, which for some reason were designed to not have the const qualifier.
* | 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.