blob: bff60e7d13b6ef858e84a35cc9145e5bd041560d [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 bin]
executable("bin") {
output_name = "fidl_echo_cpp_server"
sources = [ "main.cc" ]
deps = [
"//examples/fidl/fuchsia.examples:fuchsia.examples_cpp",
# This library is used to log messages.
"//sdk/lib/syslog/cpp",
# This library is used to publish capabilities, e.g. protocols,
# to the component's outgoing directory.
"//sdk/lib/component/outgoing/cpp",
# This library provides an the asynchronous event loop implementation.
"//zircon/system/ulib/async-loop:async-loop-cpp",
]
}
# [END bin]
# [START component]
fuchsia_component("echo-server") {
component_name = "echo_server"
manifest = "meta/server.cml"
deps = [ ":bin" ]
}
# [END component]
# [START package]
fuchsia_package("echo-cpp-server") {
package_name = "echo-cpp-server"
deps = [ ":echo-server" ]
}
# [END package]
group("server") {
testonly = true
deps = [ ":echo-cpp-server" ]
}