blob: 26123b364538f65465080426b93ef01bd617fbe3 [file] [log] [blame] [edit]
# Copyright 2019 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")
assert(is_host)
go_binary("cppdocgen") {
gopackage = "go.fuchsia.dev/fuchsia/tools/cppdocgen/cmd"
deps = [ ":main" ]
}
go_library("main") {
source_dir = "cmd"
sources = [ "main.go" ]
deps = [
"clangdoc",
"docgen",
"//third_party/golibs:gopkg.in/yaml.v2",
]
}
group("tests") {
testonly = true
deps = [
"docgen:test",
# TODO(brettw) enable this end-to-end test when we can be sure that the build can reliably
# run it (this means that the compilation database is reliably generated):
# https://bugs.chromium.org/p/gn/issues/detail?id=111
# "e2e_test",
]
}