| # 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/go_test.gni") |
| import("//build/host.gni") |
| |
| go_library("lib") { |
| name = "measure-tape" |
| |
| deps = [ "//garnet/go/src/fidl:fidl_lib" ] |
| } |
| |
| go_binary("measure-tape") { |
| gopackage = "measure-tape" |
| |
| deps = [ ":lib" ] |
| } |
| |
| go_test("unit-tests") { |
| gopackages = [ "measure-tape/measurer" ] |
| |
| deps = [ ":lib" ] |
| } |
| |
| install_host_tools("host") { |
| deps = [ ":measure-tape" ] |
| outputs = [ "measure-tape" ] |
| } |