Rafi Kamal
58d4420e2d
Down Integrate Internal Changes
5 years ago
Adam Cozzette
f4ceaecf68
Updated deprecation macros to annotate deprecated code
5 years ago
Yannic Bonenberger
d2d6ff51a8
[bazel] Load python rules from @rules_python
5 years ago
Yannic Bonenberger
bf0c69e130
[bazel] Add fixes for --incompatible_load_{cc,java,proto}_rules_from_bzl (Part 2)
...
This change adds the required loads to examples and zlib.
For full compatibility with --incompatible_load_{cc,java,proto}_rules_from_bzl,
we will need to roll gtest to a newer version.
5 years ago
Yannic Bonenberger
4979489451
Add test to verify BUILD- and cmake-files are in sync with src/Makefile.am
5 years ago
Yannic Bonenberger
6e8991981a
[bazel] Add fixes for --incompatible_load_{cc,java,proto}_rules_from_bzl
5 years ago
Yannic Bonenberger
a03d332aca
[bazel] Use strip_import_prefix for wkp instead of copying them
5 years ago
Adam Liddell
a74c43bbd9
Fix usage of six in //:protobuf_python rule and add import ( #6310 )
...
* Fix reference to six in //:protobuf_python rule
* Add six to protobuf_deps.bzl
* Use six archive directly as repo @six
5 years ago
Liam Miller-Cushon
7b28278c7d
Use proto_library in proto_lang_toolchain.blacklisted_protos
...
Support for using proto_library in this attribute was added in:
a5ee2c4d97
Legacy support for using .proto files will be removed in a future
version of Bazel.
6 years ago
Liam Miller-Cushon
2b857d0078
Format with buildifier
6 years ago
Hao Nguyen
e1d8b31ba4
Remove map_test.util.cc from BUILD
6 years ago
Yun Peng
6e58040a71
Add "src/**/*.inc" to //:protobuf_headers
...
Otherwise, sandbox and remote execution will complain `google/protobuf/port_def.inc` doesn't exist.
6 years ago
John W. Bruce
21e4b1c336
Fix Alphabetization of BUILD
6 years ago
Carmi Grushko
5c25f41423
Add `protobuf_java_lite` Bazel target
...
that builds the JavaLite runtime.
Contents based on java/lite/pom.xml.
6 years ago
Joshua Haberman
c659a4a4db
Fixed typo: conformance_test_runner should be a binary, not library.
6 years ago
Joshua Haberman
78ca77ac87
Added conformance tests to Bazel BUILD file ( #6126 )
6 years ago
Hao Nguyen
4cebf97a52
Update BUILD file to match the changes in cmake files for lite
6 years ago
Keith Smiley
1c5e8cbb8f
Remove -Wall from default build options
...
All bazel crosstools automatically pass -Wall to compiles. The order of
operations is:
- bazel crosstool flags
- `--host_copt` flags and other variations like `--host_cxxopt`
- the `copts` defined on the rule
Because of this when protobuf produces warnings, there's no way to
disable them from the consumer side if they are re-enabled later by
another `-Wall` flag.
6 years ago
Nic McDonald
f313b9ccf7
comply with Bazel recommendations
6 years ago
Hao Nguyen
ef1e8e7172
Add module for JavaLite and fix builds
6 years ago
yejianwu
df4ec8a273
support specify C++ STL for android
6 years ago
Hao Nguyen
c163a2d1a4
Revert accidentally commit
6 years ago
Hao Nguyen
1eb049141e
Add module for JavaLite and fix builds
6 years ago
Phillipp Schoppmann
8e5b2f1b82
Update file list for protobuf_lite
6 years ago
David Ostrovsky
4b9a5df4e8
Bazel: Add dependency to error_prone_annotations
...
Recently dependency to error_prone_annotations was added to the code,
but only Maven build tool chain was updated.
Closes #5795 .
6 years ago
David Ostrovsky
35c9a5fef3
Bazel: Add dependency to error_prone_annotations
...
Recently dependency to error_prone_annotations was added to the code,
but only Maven build tool chain was updated.
Closes #5795 .
6 years ago
Yilun Chong
9fd18ae9a5
fix BUILD for adding any_lite.cc
6 years ago
Yilun Chong
a2a0afb546
Down-integrate internal changes to github. ( #5575 )
...
* Down-integrate internal changes to github.
* Fix BUILD file and regenerate csharp descritpor
6 years ago
Keith Moyer
595cb359c0
Rely on no-writable-strings synonym
...
The -Wno-writable-strings warning flag is Clang-specific. GCC's
equivalent is -Wno-write-strings, which Clang also supports as a
synonym. So, -Wno-write strings is more compatible and there is no need
to specify both.
https://clang.llvm.org/docs/DiagnosticsReference.html#wwrite-strings
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
6 years ago
Cody Schroeder
21c3801369
Add Bazel config for zlib support ( #5389 )
...
* Add Bazel config for optional zlib support
* Add hard dependency on zlib
* Remove unused config_setting
6 years ago
Yun Peng
073487b302
Exclude command_line_interface_unittest.cc in MSVC build
6 years ago
Cody Schroeder
802d543173
Add Bazel config for zlib support ( #5389 )
...
* Add Bazel config for optional zlib support
* Add hard dependency on zlib
* Remove unused config_setting
6 years ago
Adam Cozzette
4dd45935d7
Removed scc.cc
6 years ago
Josh Haberman
25feb59620
Added visibility.
6 years ago
Josh Haberman
6dec8cf96e
Added conformance tests to Bazel BUIDL file.
6 years ago
Thomas Van Lenten
18aa296144
Collapse :protobuf_objc and :objectivec targets.
...
Not sure the history for why there were two objc_library targets, but
given the one has an issue about not working, merge them into a single
target and an alias.
- Use the alias for :objectivec since that naming doesn't seem to follow
the other targets *_library targets here.
- Update :protobuf_objc to be use for the working target and just inline
the sources/headers lists so there is less indirection in the file.
Fixes #5284
6 years ago
scentini
b30ddee2aa
use flag_values = {"@bazel_tools//tools/cpp:compiler": "x"} for compiler config_settings
6 years ago
Laszlo Csomor
414a625a79
Windows: expand path names on command line
...
Fixes https://github.com/google/protobuf/issues/3957
6 years ago
Feng Xiao
bde4eaf137
Update build files.
...
* Fixes https://github.com/google/protobuf/issues/5031
* Fixes https://github.com/google/protobuf/issues/5037
6 years ago
Feng Xiao
b1c5503022
Delete unused files. ( #4942 )
...
* Delete unused files.
6 years ago
Feng Xiao
b3e4e3abe0
Remove js_embed binary. ( #4709 )
...
* Remove js_embed binary.
7 years ago
Benjamin Barenblat
048f5c26a7
objectivec: Quash -Wself-assign and -Wvla ( #4897 )
...
* 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.
7 years ago
mdepristo
42141fa2f7
Remove unclear comment.
7 years ago
depristo
2506cf5cf4
Remove write-strings warning from COPTs.
...
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]"
7 years ago
Cory McLean
b7d3ec3aa9
Make proto_api target visible
7 years ago
Loo Rong Jie
0456e269ee
Align Bazel on Windows with CMake's MSVC flags ( #4720 )
...
* Align Bazel on Windows with CMake's MSVC flags
7 years ago
Thomas Colthurst
ee8d3aa308
Remove cycle in dependency graph
7 years ago
Feng Xiao
143851ed25
Remove js_embed binary. ( #4709 )
...
* Remove js_embed binary.
7 years ago
Thomas Colthurst
7c6514245b
Introduce Proto C API; based on cl/198113115 by amauryfa
7 years ago
Jan Tattermusch
ccc56a3c1e
fix syntax error in BUILD file
7 years ago