blob: 39dfe3736bcf3435637a45b6664ba1ea28d2c2a5 [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_binary.gni")
import("//build/go/go_library.gni")
import("//build/go/go_test.gni")
import("//build/testing/host_test_data.gni")
go_library("gopkg") {
name = "go.fuchsia.dev/fuchsia/tools/mdlint/..."
sources = [
"core/recognizer.go",
"core/recognizer_test.go",
"core/registry.go",
"core/reporter.go",
"core/reporter_test.go",
"core/rules.go",
"core/tokenizer.go",
"core/tokenizer_test.go",
"main.go",
"rules/bad_lists.go",
"rules/casing_of_anchors.go",
"rules/mdhelpers.go",
"rules/mdhelpers_test.go",
"rules/no_extra_space_on_right.go",
"rules/verify_internal_links.go",
]
}
go_binary("mdlint") {
gopackage = "go.fuchsia.dev/fuchsia/tools/mdlint"
deps = [ ":gopkg" ]
}
go_test("mdlint_core_tests") {
gopackages = [ "go.fuchsia.dev/fuchsia/tools/mdlint/core" ]
deps = [
":gopkg",
"//third_party/golibs:github.com/google/go-cmp",
]
}
install_host_tools("host") {
deps = [ ":mdlint" ]
outputs = [ "mdlint" ]
}
group("tests") {
testonly = true
deps = [ ":mdlint_core_tests($host_toolchain)" ]
}