blob: 0bb3badf16f33cd2661fa65b2d01bb0b30a41b80 [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("apidiff_test") {
gopackages = [ "go.fuchsia.dev/fuchsia/tools/fidl/lib/apidiff" ]
deps = [ ":gopkg" ]
}
go_library("gopkg") {
name = "go.fuchsia.dev/fuchsia/tools/fidl/lib/apidiff"
sources = [
"apidiff.go",
"apidiff_test.go",
"classification.go",
"diff.go",
"diff_test.go",
"report.go",
"report_test.go",
]
deps = [
"//third_party/golibs:github.com/google/go-cmp",
"//third_party/golibs:gopkg.in/yaml.v2",
"//tools/fidl/lib/fidlgen",
"//tools/fidl/lib/summarize:gopkg",
]
# This library is FIDL internal only.
visibility = [ "//tools/fidl/*" ]
}
} # is_host
group("apidiff") {
deps = [ ":gopkg($host_toolchain)" ]
}
group("tests") {
testonly = true
deps = [ ":apidiff_test($host_toolchain)" ]
}