blob: 2b6b5441a4233287b8e4d3eb708849dfa5156d38 [file] [log] [blame] [edit]
# 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")
if (is_host) {
go_library("makeroot_lib") {
name = "makeroot"
sources = [
"makeroot.go",
"makeroot_test.go",
]
}
go_binary("makeroot") {
gopackage = "makeroot"
deps = [ ":makeroot_lib" ]
}
go_test("makeroot_test") {
library = ":makeroot_lib"
output_name = "makeroot_test"
}
group("tests") {
testonly = true
deps = [ ":makeroot_test($host_toolchain)" ]
}
}