blob: a9950794518850d16e13d45aff1e4d34b9d5b382 [file] [log] [blame]
# Copyright 2022 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.
# [START imports]
import("//build/components.gni")
# [END imports]
# [START executable]
executable("bin") {
output_name = "echo_server_cpp"
sources = [ "main.cc" ]
deps = [
"//examples/components/routing/fidl:echo_cpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/inspect/component/cpp",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
]
}
# [END executable]
# [START component]
# Unpackaged component "#meta/echo_server.cm"
fuchsia_component("echo_server_cmp") {
component_name = "echo_server"
manifest = "meta/echo_server.cml"
deps = [ ":bin" ]
}
# [END component]
# Subpackaged component "echo_server#meta/default.cm"
fuchsia_package_with_single_component("echo_server") {
component_name = "default"
manifest = "meta/echo_server.cml"
deps = [ ":bin" ]
}