blob: cb0fd346126b646cb2608b537310501ea028f0c1 [file] [log] [blame] [edit]
# Copyright 2021 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")
import("//build/host.gni")
import("//tools/fidl/lib/fidlgentest/fidlgentest_go_test.gni")
if (is_host) {
go_library("summarize_test_lib") {
testonly = true
sources = [
"elementslice_test.go",
"summary_test.go",
"symboltable_test.go",
"wraparoundtype_test.go",
]
deps = [ ":gopkg" ]
}
fidlgentest_go_test("summarize_test") {
gopackages = [ "go.fuchsia.dev/fuchsia/tools/fidl/lib/summarize" ]
deps = [
":summarize_test_lib",
"//third_party/golibs:github.com/google/go-cmp",
]
}
go_library("gopkg") {
name = "go.fuchsia.dev/fuchsia/tools/fidl/lib/summarize"
sources = [
"aliases.go",
"bits.go",
"consts.go",
"elementslice.go",
"elementstr.go",
"enums.go",
"library.go",
"properties.go",
"protocol.go",
"summary.go",
"symboltable.go",
"wraparoundtype.go",
]
deps = [ "//tools/fidl/lib/fidlgen" ]
# This library is FIDL internal only.
visibility = [ "//tools/fidl/*" ]
}
} # is_host
group("summarize") {
deps = [ ":gopkg($host_toolchain)" ]
}
group("tests") {
testonly = true
deps = [ ":summarize_test($host_toolchain)" ]
}