diff options
author | Jakob Buchgraber <buchgr@google.com> | 2017-05-30 15:49:37 +0200 |
---|---|---|
committer | Jakob Buchgraber <buchgr@google.com> | 2017-05-30 15:59:48 +0200 |
commit | 84a8e95910f069dd03a19b0fc634f95bb0beac95 (patch) | |
tree | d3a5cd8e259799e36834b247194c2d1aa3163e16 /third_party/protobuf | |
parent | c7696b47a4a12b1e56e41246770cbd44ad1c9c3e (diff) |
Introduce third_party/googleapis
Add `https://github.com/googleapis/googleapis` as a third_party
dependency at commit `001f6702ac4cd72194a5120ff978fcfa740783d6`.
These protos are required for the upcoming open sourcing of the BES
protocol code.
Additionally, add (java_)proto_library() rules for the protobufs
required by the BES protocol.
Change-Id: Ie78a9941a62f2085a58ad859c91161885e6f390d
Diffstat (limited to 'third_party/protobuf')
-rw-r--r-- | third_party/protobuf/3.2.0/BUILD | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/third_party/protobuf/3.2.0/BUILD b/third_party/protobuf/3.2.0/BUILD index 61bc5b825b..614c5cb9ec 100644 --- a/third_party/protobuf/3.2.0/BUILD +++ b/third_party/protobuf/3.2.0/BUILD @@ -18,19 +18,20 @@ filegroup( "protobuf.bzl", "python/google/protobuf/**/*.py", "src/google/protobuf/**/*.proto", - ]) + [ - "//third_party/protobuf/3.2.0/util/python:srcs" ], + ) + [ + "//third_party/protobuf/3.2.0/util/python:srcs", + ], visibility = ["//visibility:public"], ) java_import( name = "protobuf_java_util", jars = ["libprotobuf_java_util.jar"], + visibility = ["//visibility:public"], exports = [ "//third_party:gson", ], - visibility = ["//visibility:public"], ) java_import( @@ -63,15 +64,21 @@ proto_library( proto_library( name = "well_known_types_api_proto", srcs = ["google/protobuf/api.proto"], - deps = [":well_known_types_source_context_proto", ":well_known_types_type_proto"], visibility = ["//visibility:public"], + deps = [ + ":well_known_types_source_context_proto", + ":well_known_types_type_proto", + ], ) proto_library( name = "well_known_types_type_proto", srcs = ["google/protobuf/type.proto"], - deps = [":well_known_types_any_proto", ":well_known_types_source_context_proto"], visibility = ["//visibility:public"], + deps = [ + ":well_known_types_any_proto", + ":well_known_types_source_context_proto", + ], ) proto_library( @@ -83,8 +90,8 @@ proto_library( proto_library( name = "well_known_types_compiler_plugin_proto", srcs = ["google/protobuf/compiler/plugin.proto"], - deps = [":well_known_types_descriptor_proto"], visibility = ["//visibility:public"], + deps = [":well_known_types_descriptor_proto"], ) proto_library( @@ -177,7 +184,10 @@ config_setting( # Android builds do not need to link in a separate pthread library. LINK_OPTS = select({ ":android": [], - "//conditions:default": ["-lpthread", "-lm"], + "//conditions:default": [ + "-lpthread", + "-lm", + ], }) load( @@ -626,11 +636,14 @@ cc_binary( cc_test( name = "win32_test", srcs = ["src/google/protobuf/stubs/io_win32_unittest.cc"], + tags = [ + "manual", + "windows", + ], deps = [ ":protobuf_lite", "//external:gtest_main", ], - tags = ["manual", "windows"], ) cc_test( |