aboutsummaryrefslogtreecommitdiffhomepage
path: root/bazel
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-15 08:18:25 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-05-15 08:18:25 -0700
commiteb2c1bcd19219f562a7790acb0870fedd4de8aef (patch)
treefd943bbbf4a8d61ee5e6b8f2489a5ccaa86e3536 /bazel
parent3e95a38bdfb584f1a1ba97114d536704f127a5cf (diff)
Eliminate grpc_cc_libraries
Best practice for Bazel builds gives one rule per target, and producing multiple targets conflicts with this. Short term: define macros, and common libraries that can eliminate the duplication. Longer term: eliminate the existing plugin registration mechanism, and replace it with a C++ static initialization in appropriate files. This will allow grpc to be layered strictly atop grpc_unsecure (and similarly grpc++ atop grpc++_unsecure and grpc).
Diffstat (limited to 'bazel')
-rw-r--r--bazel/grpc_build_system.bzl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl
index 4a50cb51fe..c24338217e 100644
--- a/bazel/grpc_build_system.bzl
+++ b/bazel/grpc_build_system.bzl
@@ -53,7 +53,7 @@ def grpc_cc_library(name, srcs = [], public_hdrs = [], hdrs = [],
]
)
-def grpc_cc_libraries(name_list, additional_src_list = [], additional_dep_list = [], srcs = [], public_hdrs = [], hdrs = [], external_deps = [], deps = [], standalone = False, language="C++"):
+def deprecated_grpc_cc_libraries(name_list, additional_src_list = [], additional_dep_list = [], srcs = [], public_hdrs = [], hdrs = [], external_deps = [], deps = [], standalone = False, language="C++"):
names = len(name_list)
asl = additional_src_list + [[]]*(names - len(additional_src_list))
adl = additional_dep_list + [[]]*(names - len(additional_dep_list))