blob: 291c2fe1e020f6c5c379076b529b12276ac5503b [file]
# Copyright 2026 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("//build/bazel/rules/cc:fx_cc_binary.bzl", "fx_cc_binary")
load(
"//build/bazel/rules/components:fx_component.bzl",
"fx_component",
"fx_component_manifest",
)
load(
"//build/bazel/rules/packages:fx_packaged_binary.bzl",
"fx_packaged_binary",
)
package(default_applicable_licenses = ["//:license"])
fx_cc_binary(
name = "bin",
srcs = ["main.cc"],
gn_output_name = "fidl_echo_cpp_client_shared",
deps = [
"//examples/fidl/fuchsia.examples:fuchsia.examples_cpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/fdio",
"//sdk/lib/fidl",
],
)
fx_packaged_binary(
name = "bin_packaged",
binary = ":bin",
binary_name = "fidl_echo_cpp_client_shared",
)
fx_component_manifest(
name = "echo-client_manifest",
component_name = "echo_client",
includes = ["//sdk/lib/syslog:client.shard"],
manifest = "meta/client.cml",
)
fx_component(
name = "echo-client",
compiled_manifest = ":echo-client_manifest",
visibility = ["//examples/fidl/echo-realm:__pkg__"],
deps = [":bin_packaged"],
)