blob: b8855f07fa2ed465253fe09b9c611fdf7b65141e [file] [log] [blame]
# 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_library.gni")
import("//build/go/go_test.gni")
go_library("serial") {
sources = [
"serial.go",
"serial_darwin.go",
"serial_linux.go",
"serial_test.go",
"server.go",
"server_test.go",
]
deps = [
"//third_party/golibs:golang.org/x/sys",
"//tools/lib/iomisc",
"//tools/lib/logger",
]
}
go_test("tests") {
output_name = "serial_tests"
gopackages = [ "go.fuchsia.dev/fuchsia/tools/serial" ]
deps = [
":serial",
"//third_party/golibs:github.com/google/go-cmp",
"//third_party/golibs:golang.org/x/sync",
]
}