mirror of https://github.com/grpc/grpc.git
Consolidate binder targets into a single target in top-level BUILD file (#27719)
* Move binder targets into a single target in top-level BUILD file * Regenerate projectspull/27758/head
parent
3bd0cd208e
commit
66d4e0ccb1
13 changed files with 785 additions and 434 deletions
@ -1,76 +0,0 @@ |
||||
# Copyright 2021 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
load("//bazel:grpc_build_system.bzl", "grpc_cc_library") |
||||
|
||||
licenses(["notice"]) |
||||
|
||||
package( |
||||
default_visibility = ["//visibility:public"], |
||||
features = [ |
||||
"layering_check", |
||||
], |
||||
) |
||||
|
||||
# TODO(mingcl): See if it is possible to add flags that warns about undefined symbol at link time |
||||
grpc_cc_library( |
||||
name = "grpc_transport_binder_client", |
||||
srcs = [ |
||||
"channel_create.cc", |
||||
"channel_create.h", |
||||
"jni_utils.cc", |
||||
], |
||||
hdrs = [ |
||||
"channel_create.h", |
||||
"jni_utils.h", |
||||
], |
||||
external_deps = [ |
||||
"absl/strings", |
||||
"absl/time", |
||||
], |
||||
deps = [ |
||||
":grpc_transport_binder_client_impl", |
||||
"//:gpr", |
||||
"//:gpr_base", |
||||
"//:gpr_platform", |
||||
"//:grpc", |
||||
"//:grpc++_base", |
||||
"//:grpc_base", |
||||
"//:grpc_codegen", |
||||
"//src/core/ext/transport/binder/security_policy:security_policy_interface", |
||||
"//src/core/ext/transport/binder/transport:binder_transport", |
||||
"//src/core/ext/transport/binder/utils:transport_stream_receiver", |
||||
"//src/core/ext/transport/binder/wire_format:binder_android", |
||||
"//src/core/ext/transport/binder/wire_format:wire_reader", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "grpc_transport_binder_client_impl", |
||||
srcs = ["channel_create_impl.cc"], |
||||
hdrs = ["channel_create_impl.h"], |
||||
external_deps = [], |
||||
deps = [ |
||||
"//:gpr", |
||||
"//:gpr_base", |
||||
"//:gpr_platform", |
||||
"//:grpc", |
||||
"//:grpc++_base", |
||||
"//:grpc_base", |
||||
"//:grpc_codegen", |
||||
"//src/core/ext/transport/binder/security_policy:security_policy_interface", |
||||
"//src/core/ext/transport/binder/transport:binder_transport", |
||||
"//src/core/ext/transport/binder/wire_format:binder", |
||||
], |
||||
) |
@ -1,62 +0,0 @@ |
||||
# Copyright 2021 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
load("//bazel:grpc_build_system.bzl", "grpc_cc_library") |
||||
|
||||
licenses(["notice"]) |
||||
|
||||
package( |
||||
default_visibility = ["//visibility:public"], |
||||
features = [ |
||||
"layering_check", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "security_policy_interface", |
||||
hdrs = [ |
||||
"security_policy.h", |
||||
], |
||||
deps = [ |
||||
"//:gpr_platform", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "internal_only_security_policy", |
||||
srcs = [ |
||||
"internal_only_security_policy.cc", |
||||
], |
||||
hdrs = [ |
||||
"internal_only_security_policy.h", |
||||
], |
||||
deps = [ |
||||
":security_policy_interface", |
||||
"//:gpr_platform", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "untrusted_security_policy", |
||||
srcs = [ |
||||
"untrusted_security_policy.cc", |
||||
], |
||||
hdrs = [ |
||||
"untrusted_security_policy.h", |
||||
], |
||||
deps = [ |
||||
":security_policy_interface", |
||||
"//:gpr_platform", |
||||
], |
||||
) |
@ -1,51 +0,0 @@ |
||||
# Copyright 2021 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
load("//bazel:grpc_build_system.bzl", "grpc_cc_library") |
||||
|
||||
licenses(["notice"]) |
||||
|
||||
package( |
||||
default_visibility = ["//visibility:public"], |
||||
features = [ |
||||
"layering_check", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "grpc_transport_binder_server", |
||||
srcs = [ |
||||
"binder_server.cc", |
||||
"binder_server_credentials.cc", |
||||
], |
||||
hdrs = [ |
||||
"binder_server.h", |
||||
"binder_server_credentials.h", |
||||
], |
||||
external_deps = [ |
||||
"absl/container:flat_hash_map", |
||||
"absl/memory", |
||||
"absl/status", |
||||
], |
||||
language = "c++", |
||||
deps = [ |
||||
"//:gpr_platform", |
||||
"//:grpc++_internals", |
||||
"//:grpc_base", |
||||
"//src/core/ext/transport/binder/security_policy:security_policy_interface", |
||||
"//src/core/ext/transport/binder/transport:binder_transport", |
||||
"//src/core/ext/transport/binder/wire_format:binder", |
||||
"//src/core/ext/transport/binder/wire_format:binder_android", |
||||
], |
||||
) |
@ -1,51 +0,0 @@ |
||||
# Copyright 2021 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
load("//bazel:grpc_build_system.bzl", "grpc_cc_library") |
||||
|
||||
licenses(["notice"]) |
||||
|
||||
package( |
||||
default_visibility = ["//visibility:public"], |
||||
features = [ |
||||
"layering_check", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "binder_transport", |
||||
srcs = [ |
||||
"binder_transport.cc", |
||||
], |
||||
hdrs = [ |
||||
"binder_stream.h", |
||||
"binder_transport.h", |
||||
], |
||||
external_deps = [ |
||||
"absl/container:flat_hash_map", |
||||
"absl/memory", |
||||
"absl/strings", |
||||
], |
||||
deps = [ |
||||
"//:gpr_base", |
||||
"//:gpr_platform", |
||||
"//:grpc_base", |
||||
"//:slice_refcount", |
||||
"//src/core/ext/transport/binder/security_policy:security_policy_interface", |
||||
"//src/core/ext/transport/binder/utils:transport_stream_receiver", |
||||
"//src/core/ext/transport/binder/wire_format:binder", |
||||
"//src/core/ext/transport/binder/wire_format:wire_reader", |
||||
"//src/core/ext/transport/binder/wire_format:wire_writer", |
||||
], |
||||
) |
@ -1,46 +0,0 @@ |
||||
# Copyright 2021 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
load("//bazel:grpc_build_system.bzl", "grpc_cc_library") |
||||
|
||||
licenses(["notice"]) |
||||
|
||||
package( |
||||
default_visibility = ["//visibility:public"], |
||||
features = [ |
||||
"layering_check", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "transport_stream_receiver", |
||||
srcs = [ |
||||
"transport_stream_receiver_impl.cc", |
||||
], |
||||
hdrs = [ |
||||
"transport_stream_receiver.h", |
||||
"transport_stream_receiver_impl.h", |
||||
], |
||||
external_deps = [ |
||||
"absl/status:statusor", |
||||
"absl/strings", |
||||
"absl/synchronization", |
||||
], |
||||
deps = [ |
||||
"//:gpr", |
||||
"//:gpr_base", |
||||
"//:gpr_platform", |
||||
"//src/core/ext/transport/binder/wire_format:transaction", |
||||
], |
||||
) |
@ -1,123 +0,0 @@ |
||||
# Copyright 2021 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
load("//bazel:grpc_build_system.bzl", "grpc_cc_library") |
||||
|
||||
licenses(["notice"]) |
||||
|
||||
package( |
||||
default_visibility = ["//visibility:public"], |
||||
features = [ |
||||
"layering_check", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "transaction", |
||||
srcs = [ |
||||
"transaction.cc", |
||||
], |
||||
hdrs = [ |
||||
"transaction.h", |
||||
], |
||||
external_deps = [ |
||||
"absl/base:core_headers", |
||||
"absl/strings", |
||||
], |
||||
deps = [ |
||||
"//:gpr", |
||||
"//:gpr_platform", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "binder", |
||||
srcs = [ |
||||
"binder_constants.cc", |
||||
], |
||||
hdrs = [ |
||||
"binder.h", |
||||
"binder_constants.h", |
||||
], |
||||
external_deps = [ |
||||
"absl/base:core_headers", |
||||
"absl/status", |
||||
"absl/strings", |
||||
], |
||||
deps = [ |
||||
"//:gpr", |
||||
"//:gpr_platform", |
||||
"//:orphanable", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "binder_android", |
||||
srcs = [ |
||||
"binder_android.cc", |
||||
], |
||||
hdrs = [ |
||||
"binder_android.h", |
||||
], |
||||
external_deps = [ |
||||
"absl/synchronization", |
||||
"absl/memory", |
||||
], |
||||
deps = [ |
||||
":binder", |
||||
":wire_reader", |
||||
"//:gpr_platform", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "wire_writer", |
||||
srcs = ["wire_writer.cc"], |
||||
hdrs = ["wire_writer.h"], |
||||
external_deps = [ |
||||
"absl/container:flat_hash_map", |
||||
"absl/strings", |
||||
], |
||||
deps = [ |
||||
":binder", |
||||
":transaction", |
||||
"//:gpr", |
||||
"//:gpr_base", |
||||
"//:gpr_platform", |
||||
], |
||||
) |
||||
|
||||
grpc_cc_library( |
||||
name = "wire_reader", |
||||
srcs = ["wire_reader_impl.cc"], |
||||
hdrs = [ |
||||
"wire_reader.h", |
||||
"wire_reader_impl.h", |
||||
], |
||||
external_deps = [ |
||||
"absl/container:flat_hash_map", |
||||
"absl/synchronization", |
||||
"absl/memory", |
||||
"absl/status:statusor", |
||||
], |
||||
deps = [ |
||||
":binder", |
||||
":wire_writer", |
||||
"//:gpr", |
||||
"//:gpr_platform", |
||||
"//:orphanable", |
||||
"//src/core/ext/transport/binder/security_policy:security_policy_interface", |
||||
"//src/core/ext/transport/binder/utils:transport_stream_receiver", |
||||
], |
||||
) |
Loading…
Reference in new issue