blob: 6bc9ee0ad40dc5010c0b0987d934b99d1935794f [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 = [
":constants",
"//third_party/golibs:golang.org/x/sys",
"//tools/lib/iomisc",
"//tools/lib/logger",
]
}
go_test("tests") {
library = ":serial"
output_name = "serial_tests"
deps = [
"//third_party/golibs:github.com/google/go-cmp",
"//third_party/golibs:golang.org/x/sync",
]
}
go_library("constants") {
source_dir = "constants"
sources = [ "constants.go" ]
}