| # 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. |
| |
| import("//build/go/go_binary.gni") |
| import("//build/go/go_library.gni") |
| import("//build/go/toolchain.gni") |
| import("//build/package.gni") |
| |
| go_binary("bin") { |
| output_name = "fidl_echo_go_client" |
| gopackage = "echo_client_go" |
| deps = [ ":lib" ] |
| } |
| |
| go_library("lib") { |
| name = "echo_client_go" |
| deps = [ |
| "//examples/fidl/fuchsia.examples:fuchsia.examples($go_toolchain)", |
| "//sdk/fidl/fuchsia.sys($go_toolchain)", |
| "//src/lib/component", |
| ] |
| sources = [ "main.go" ] |
| } |
| |
| package("client") { |
| package_name = "echo-go-client" |
| binaries = [ |
| { |
| name = "fidl_echo_go_client" |
| dest = "fidl_echo_go_client" |
| }, |
| ] |
| meta = [ |
| { |
| path = "client.cmx" |
| dest = "echo-client.cmx" |
| }, |
| ] |
| deps = [ ":bin" ] |
| } |