blob: be6b15ff1a5184d4f92fd3736ddedcf5b5445dbe [file] [log] [blame]
# 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) {
fidlgentest_go_test("summarize_test") {
library = ":gopkg"
deps = [ "//third_party/golibs:github.com/google/go-cmp" ]
}
go_library("gopkg") {
sources = [
"aliases.go",
"bits.go",
"consts.go",
"elementslice.go",
"elementslice_test.go",
"elementstr.go",
"enums.go",
"library.go",
"properties.go",
"protocol.go",
"summary.go",
"summary_test.go",
"symboltable.go",
"symboltable_test.go",
"wraparoundtype.go",
"wraparoundtype_test.go",
]
deps = [ "//tools/fidl/lib/fidlgen" ]
visibility = [
# Producing API coverage reports.
"//sdk/ctf/plasa/*",
# FIDL internal use.
"//tools/fidl/*",
]
}
} # is_host
group("summarize") {
deps = [ ":gopkg($host_toolchain)" ]
}
group("tests") {
testonly = true
deps = [ ":summarize_test($host_toolchain)" ]
}