| # Copyright 2022 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("main") { |
| sources = [ |
| "config.go", |
| "driver.go", |
| "include.go", |
| "log.go", |
| "main.go", |
| "metrics.go", |
| ] |
| deps = [ |
| "//tools/check-licenses/directory", |
| "//tools/check-licenses/file", |
| "//tools/check-licenses/project", |
| "//tools/check-licenses/project/readme", |
| "//tools/check-licenses/result", |
| "//tools/check-licenses/util", |
| "//tools/lib/logger", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [] |
| } |
| |
| if (is_host) { |
| go_test("check-licenses_cmd_tests") { |
| library = ":main" |
| } |
| } |