| # Copyright 2017 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/host.gni") |
| |
| go_library("lib") { |
| name = "tally" |
| |
| sources = [ "main.go" ] |
| |
| deps = [ "//third_party/golibs:github.com/dustin/go-humanize" ] |
| } |
| |
| go_binary("bin") { |
| output_name = "traceutil-generate-tally" |
| gopackage = "tally" |
| |
| deps = [ ":lib" ] |
| } |
| |
| install_host_tools("tally") { |
| deps = [ ":bin" ] |
| outputs = [ "traceutil-generate-tally" ] |
| } |