| # Copyright 2019 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") |
| |
| go_library("makeroot_lib") { |
| name = "makeroot" |
| sources = [ |
| "makeroot.go", |
| "makeroot_test.go", |
| ] |
| } |
| |
| go_binary("makeroot") { |
| gopackage = "makeroot" |
| deps = [ ":makeroot_lib" ] |
| use_prebuilt_go = true |
| } |
| |
| go_test("makeroot_test") { |
| library = ":makeroot_lib" |
| output_name = "makeroot_test" |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":makeroot_test($host_toolchain)" ] |
| } |