From be92ffbf742de99d807e3de239a2f645db74a5bd Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Tue, 27 Oct 2015 15:11:38 -0700 Subject: add default_runtime attribute to cc|py rules. This adds implicit dependencies to the coressponding runtime libraries. --- BUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'BUILD') diff --git a/BUILD b/BUILD index 4f2bc287..f374e8a9 100644 --- a/BUILD +++ b/BUILD @@ -154,9 +154,9 @@ cc_proto_library( name = "cc_wkt_protos", srcs = WELL_KNOWN_PROTOS, include = "src", - cc_libs = [":protobuf"], internal_bootstrap_hack = 1, protoc = ":protoc", + default_runtime = ":protobuf", ) ################################################################################ @@ -334,6 +334,7 @@ cc_proto_library( srcs = LITE_TEST_PROTOS + TEST_PROTOS, include = "src", protoc = ":protoc", + default_runtime = ":protobuf", deps = [":cc_wkt_protos"], ) @@ -512,6 +513,7 @@ py_proto_library( protoc = ":protoc", py_extra_srcs = [":python_srcs"], py_libs = ["//external:six"], + default_runtime = "", visibility = ["//visibility:public"], ) @@ -532,6 +534,7 @@ py_proto_library( include = "src", protoc = ":protoc", deps = [":protobuf_python"], + default_runtime = "", ) py_proto_library( @@ -543,6 +546,7 @@ py_proto_library( include = "python", protoc = ":protoc", deps = [":python_common_test_protos"], + default_runtime = ":protobuf_python", ) py_library( -- cgit v1.2.3