blob: a8e51888a024ed56f4cf5009d7683d7676277f46 [file] [log] [blame]
# Copyright 2018 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_c_server"
sources = [ "echo_server.c" ]
deps = [
"//sdk/lib/fdio",
"//sdk/lib/svc",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
# Declare a component for the server, which consists of the manifest and the
# binary that the component will run.
fuchsia_component("echo-server") {
component_name = "echo_server"
manifest = "meta/server.cml"
deps = [ ":bin" ]
}
# Declare a package that contains a single component, our server.
fuchsia_package("echo-c-server") {
deps = [ ":echo-server" ]
}