blob: 06fcc02d9823452eea6bb3baf3b340b159790d7c [file] [log] [blame] [edit]
# Copyright 2020 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("//tools/fidl/lib/fidlgentest/fidlgentest_go_test.gni")
go_library("fidlgen_cpp") {
deps = [ "//tools/fidl/lib/fidlgen" ]
sources = [
"bits.go",
"codegen_options.go",
"const.go",
"dep_graph.go",
"dep_graph_test.go",
"enum.go",
"enum_test.go",
"generator.go",
"handles.go",
"ir.go",
"ir_test.go",
"name_transforms.go",
"name_transforms_test.go",
"names.go",
"names_test.go",
"namespace.go",
"namespaced_enum.go",
"namespaced_enum_test.go",
"protocol.go",
"protocol_test.go",
"service.go",
"struct.go",
"table.go",
"template_funcs.go",
"testutils_test.go",
"union.go",
"zircon_names.go",
]
}
if (is_host) {
fidlgentest_go_test("fidlgen_cpp_ir_test") {
library = ":fidlgen_cpp"
deps = [ "//third_party/golibs:github.com/google/go-cmp" ]
}
}
group("tests") {
testonly = true
deps = [ ":fidlgen_cpp_ir_test($host_toolchain)" ]
}