|
|
|
@ -88,11 +88,19 @@ def grpc_cc_library( |
|
|
|
|
linkopts = if_not_windows(["-pthread"]) |
|
|
|
|
if use_cfstream: |
|
|
|
|
linkopts = linkopts + if_mac(["-framework CoreFoundation"]) |
|
|
|
|
# Temporary hack for GRPC_USE_ABSL { |
|
|
|
|
|
|
|
|
|
# This is a temporary solution to enable absl dependency only for |
|
|
|
|
# Bazel-build with grpc_use_absl enabled to abseilfy in-house classes |
|
|
|
|
# such as inlined_vector before absl is fully supported. |
|
|
|
|
# When https://github.com/grpc/grpc/pull/20184 is merged, it will |
|
|
|
|
# be removed. |
|
|
|
|
more_external_deps = [] |
|
|
|
|
if name == "inlined_vector": |
|
|
|
|
more_external_deps += ["absl/container:inlined_vector"] |
|
|
|
|
# Temporary hack for GRPC_USE_ABSL } |
|
|
|
|
more_external_deps += select({ |
|
|
|
|
"//:grpc_use_absl": ["@com_google_absl//absl/container:inlined_vector"], |
|
|
|
|
"//conditions:default": [], |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
native.cc_library( |
|
|
|
|
name = name, |
|
|
|
|
srcs = srcs, |
|
|
|
@ -114,7 +122,7 @@ def grpc_cc_library( |
|
|
|
|
"//conditions:default": [], |
|
|
|
|
}), |
|
|
|
|
hdrs = hdrs + public_hdrs, |
|
|
|
|
deps = deps + _get_external_deps(external_deps + more_external_deps), |
|
|
|
|
deps = deps + _get_external_deps(external_deps) + more_external_deps, |
|
|
|
|
copts = copts, |
|
|
|
|
visibility = visibility, |
|
|
|
|
testonly = testonly, |
|
|
|
|