Yannic Bonenberger
d2d6ff51a8
[bazel] Load python rules from @rules_python
2019-08-06 16:50:32 -07:00
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.
2019-07-29 14:14:04 -07:00
Laszlo Csomor
ea61636cbc
Merge branch 'master' into expand-wildcards
2019-07-29 15:16:10 +02:00
Yannic Bonenberger
4979489451
Add test to verify BUILD- and cmake-files are in sync with src/Makefile.am
2019-07-24 10:23:55 -07:00
Yannic Bonenberger
6e8991981a
[bazel] Add fixes for --incompatible_load_{cc,java,proto}_rules_from_bzl
2019-07-24 10:10:22 -07:00
Laszlo Csomor
5e026abd05
Merge branch 'master' into expand-wildcards
2019-07-19 10:09:18 +02:00
Yannic Bonenberger
a03d332aca
[bazel] Use strip_import_prefix for wkp instead of copying them
2019-07-18 13:59:40 -07:00
Laszlo Csomor
416872ef2c
Merge branch 'master' into expand-wildcards
2019-07-18 12:11:06 +02:00
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
2019-07-15 16:35:19 -07:00
Laszlo Csomor
a118acc476
Merge branch 'master' into HEAD
2019-07-15 13:13:22 +02:00
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.
2019-07-01 14:15:32 -07:00
Liam Miller-Cushon
2b857d0078
Format with buildifier
2019-07-01 14:10:31 -07:00
Hao Nguyen
e1d8b31ba4
Remove map_test.util.cc from BUILD
2019-06-26 15:02:11 -07:00
Bo Yang
bc742640ef
Merge remote-tracking branch 'origin/3.8.x'
2019-06-21 04:01:45 +00:00
Hao Nguyen
e992abd1f8
Merge pull request #6177 from cgrushko/master
...
Add `protobuf_java_lite` Bazel target
2019-06-20 11:15:08 -07:00
Yun Peng
6e58040a71
Add "src/**/*.inc" to //:protobuf_headers
...
Otherwise, sandbox and remote execution will complain `google/protobuf/port_def.inc` doesn't exist.
2019-06-19 09:25:52 -07:00
John W. Bruce
21e4b1c336
Fix Alphabetization of BUILD
2019-06-10 20:52:51 -07:00
Carmi Grushko
5c25f41423
Add protobuf_java_lite
Bazel target
...
that builds the JavaLite runtime.
Contents based on java/lite/pom.xml.
2019-06-01 12:08:53 +03:00
Joshua Haberman
c659a4a4db
Fixed typo: conformance_test_runner should be a binary, not library.
2019-05-14 14:01:16 -07:00
Joshua Haberman
2996da4d81
Merge branch 'master' into conformance-build
2019-05-13 07:45:30 -07:00
Hao Nguyen
4cebf97a52
Update BUILD file to match the changes in cmake files for lite
2019-05-03 15:08:01 -07:00
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.
2019-04-16 09:49:59 -07:00
Nic McDonald
f313b9ccf7
comply with Bazel recommendations
2019-04-15 13:43:05 -07:00
Hao Nguyen
ef1e8e7172
Add module for JavaLite and fix builds
2019-04-09 06:48:01 -07:00
yejianwu
df4ec8a273
support specify C++ STL for android
2019-04-08 14:01:34 -07:00
Hao Nguyen
c163a2d1a4
Revert accidentally commit
2019-04-05 17:09:42 -07:00
Hao Nguyen
1eb049141e
Add module for JavaLite and fix builds
2019-04-05 16:55:34 -07:00
Phillipp Schoppmann
8e5b2f1b82
Update file list for protobuf_lite
2019-04-01 14:06:18 -07:00
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 .
2019-03-08 09:38:28 -08:00
Yilun Chong
9fd18ae9a5
fix BUILD for adding any_lite.cc
2019-02-26 13:55:31 -08:00
Yilun Chong
a2a0afb546
Down-integrate internal changes to github. ( #5575 )
...
* Down-integrate internal changes to github.
* Fix BUILD file and regenerate csharp descritpor
2019-01-13 17:40:58 -08:00
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
2018-12-27 13:52:23 -08:00
Yun Peng
073487b302
Exclude command_line_interface_unittest.cc in MSVC build
2018-12-14 12:53:36 +01:00
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
2018-12-11 11:58:26 -08:00
Adam Cozzette
4dd45935d7
Removed scc.cc
2018-11-09 11:40:27 -08:00
Josh Haberman
25feb59620
Added visibility.
2018-11-03 14:43:20 -07:00
Josh Haberman
6dec8cf96e
Added conformance tests to Bazel BUIDL file.
2018-11-03 12:59:45 -07:00
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
2018-11-01 12:52:18 -04:00
scentini
b30ddee2aa
use flag_values = {"@bazel_tools//tools/cpp:compiler": "x"} for compiler config_settings
2018-08-28 14:07:55 +02:00
Laszlo Csomor
414a625a79
Windows: expand path names on command line
...
Fixes https://github.com/google/protobuf/issues/3957
2018-08-14 16:03:46 +02:00
Feng Xiao
bde4eaf137
Update build files.
...
* Fixes https://github.com/google/protobuf/issues/5031
* Fixes https://github.com/google/protobuf/issues/5037
2018-08-13 14:41:27 -07:00
Feng Xiao
b1c5503022
Delete unused files. ( #4942 )
...
* Delete unused files.
2018-07-19 17:30:15 -07:00
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.
2018-07-11 13:20:01 -04:00
Adam Cozzette
2c30fa71e7
Merge pull request #3981 from fahhem/patch-3
...
Handle srcs in generated files by cd'ing in and out
2018-07-02 15:08:12 -07:00
mdepristo
42141fa2f7
Remove unclear comment.
2018-06-30 14:56:19 -07:00
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]"
2018-06-28 22:54:43 +00:00
Cory McLean
b7d3ec3aa9
Make proto_api target visible
2018-06-11 12:18:45 -04:00
Feng Xiao
a0e82dbe56
Merge pull request #4725 from ThomasColthurst/patch-2
...
Remove cycle in dependency graph
2018-06-09 23:25:56 -07:00
Loo Rong Jie
0456e269ee
Align Bazel on Windows with CMake's MSVC flags ( #4720 )
...
* Align Bazel on Windows with CMake's MSVC flags
2018-06-05 19:03:24 -07:00
Thomas Colthurst
ee8d3aa308
Remove cycle in dependency graph
2018-06-04 16:38:58 -04:00