| # Copyright 2020 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] |
| |
| # Declare an executable for the server. This produces a binary with the |
| # specified output name that can run on Fuchsia. |
| # [START bin] |
| executable("bin") { |
| output_name = "fidl_echo_hlcpp_server" |
| sources = [ "main.cc" ] |
| deps = [ |
| "//examples/fidl/fuchsia.examples:fuchsia.examples_hlcpp", |
| "//sdk/lib/sys/cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| # [END bin] |
| |
| # [START rest] |
| # 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-hlcpp-server") { |
| package_name = "echo-hlcpp-server" |
| deps = [ ":echo-server" ] |
| } |
| # [END rest] |