|  | # Copyright 2021 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. | 
|  |  | 
|  | import("//build/components.gni") | 
|  |  | 
|  | executable("bin") { | 
|  | output_name = "fidl_echo_cpp_client_shared" | 
|  | sources = [ "main.cc" ] | 
|  |  | 
|  | deps = [ | 
|  | "//examples/fidl/fuchsia.examples:fuchsia.examples_cpp", | 
|  | "//sdk/lib/fdio", | 
|  | "//sdk/lib/fidl", | 
|  | "//sdk/lib/sys/component/cpp", | 
|  | "//zircon/system/ulib/async-loop:async-loop-cpp", | 
|  | "//zircon/system/ulib/async-loop:async-loop-default", | 
|  | ] | 
|  | } | 
|  |  | 
|  | fuchsia_component("echo-client") { | 
|  | component_name = "echo_client" | 
|  | manifest = "meta/client.cml" | 
|  | deps = [ ":bin" ] | 
|  | } | 
|  |  | 
|  | fuchsia_package("echo-cpp-client-shared") { | 
|  | deps = [ | 
|  | ":echo-client", | 
|  | "//examples/fidl/cpp/server:echo-server", | 
|  | "//examples/fidl/echo-realm:echo_realm", | 
|  | ] | 
|  | } | 
|  |  | 
|  | group("client_thread_safety") { | 
|  | testonly = true | 
|  | deps = [ ":echo-cpp-client-shared" ] | 
|  | } |